-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Notebooks swagger spec #9841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notebooks swagger spec #9841
Changes from 3 commits
7f34441
f82fed0
e9231f7
1b285a8
06a71b9
680b593
c651216
cdfd2be
596b8ec
4f1d479
0a147d8
c654296
d9613b0
18dd012
deccbaf
ef17764
dcb4432
ab5da3d
6c92c35
4c6bd6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceName": "testResource", | ||
| "resourceGroupName": "testRP", | ||
| "subscriptionId": "91e9f7ac-9c2c-4cd2-af61-1c5b57ec6c51", | ||
| "resourceReuest": { | ||
| "location": "southcentralus", | ||
| "properties": { | ||
| }, | ||
| "hostname": "Azure Notebooks" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "resourceId": "551f86620f6d4349b928a9024d9b9f51", | ||
| "name": "fsda", | ||
| "primaryAccessKey": "152aa045c2df4ae7b320739bbff092850423f69444654deca123c526155feae3", | ||
| "secondaryAccessKey": "d16fd33d0ff04827b8b65e6491cb8f0bfd074ba26f064479b2e805176435841d", | ||
| "hostname": "Azure Notebooks", | ||
| "createdAt": "2020-01-31T18:21:27.9889522Z", | ||
| "updatedAt": "2020-01-31T18:21:27.9890151Z" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceName": "testResource", | ||
| "resourceGroupName": "testRP", | ||
| "subscriptionId": "91e9f7ac-9c2c-4cd2-af61-1c5b57ec6c51" | ||
| }, | ||
| "responses": { | ||
| "200": {} | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceName": "testResource", | ||
| "resourceGroupName": "testRP", | ||
| "subscriptionId": "91e9f7ac-9c2c-4cd2-af61-1c5b57ec6c51" | ||
| }, | ||
|
||
| "responses": { | ||
| "200": {} | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,227 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2019-10-11-preview", | ||
| "title": "NotebookResourceManagementClient", | ||
| "description": "Azure Notebooks Resource Management Client" | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Notebooks/NotebookProxy/{resourceName}": { | ||
| "get": { | ||
| "tags": [ "NotebookResource" ], | ||
| "operationId": "GetNotebookResouce", | ||
| "consumes": [], | ||
| "produces": [ "application/json" ], | ||
| "parameters": [ | ||
| { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { "200" : { "description": "Success" } } | ||
|
||
| }, | ||
| "put": { | ||
| "tags": [ "NotebookResource" ], | ||
| "operationId": "CreateOrUpdateNotebookResource", | ||
| "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], | ||
| "produces": [], | ||
| "parameters": [ | ||
| { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceRequest", | ||
| "in": "body", | ||
| "required": false, | ||
| "schema": { "$ref": "#/definitions/NotebookResource" } | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
somu84 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "description": "Success" | ||
| }, | ||
| "201": { | ||
| "description": "Success" | ||
| } | ||
| } | ||
| }, | ||
| "delete": { | ||
| "tags": [ "NotebookResource" ], | ||
| "operationId": "DeleteNotebookResource", | ||
| "consumes": [], | ||
| "produces": [], | ||
| "parameters": [ | ||
| { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Success" | ||
| }, | ||
| "204": { | ||
| "description": "Success" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Notebooks/NotebookProxies/{resourceName}/updatePrivateLinkId/{privateLinkId}": { | ||
|
||
| "post": { | ||
| "tags": [ "NotebookResource" ], | ||
| "operationId": "PostPrivateLinkIdNotebookResource", | ||
| "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], | ||
| "produces": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], | ||
| "parameters": [ | ||
| { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "privateLinkId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { "200": { "description": "Success" } } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Notebooks/NotebookProxies/{resourceName}/removePrivateLinkId/{privateLinkId}": { | ||
| "post": { | ||
| "tags": [ "NotebookResource" ], | ||
| "operationId": "RemovePrivateLinkIdNotebookResource", | ||
| "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], | ||
| "produces": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], | ||
| "parameters": [ | ||
| { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "resourceName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { "200": { "description": "Success" } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "NotebookResource": { | ||
| "type": "object", | ||
| "properties": { | ||
| "location": { "type": "string" }, | ||
| "properties": { "$ref": "#/definitions/NotebookResourceProperties" }, | ||
| "hostname": { "type": "string" } | ||
|
||
| } | ||
| }, | ||
| "NotebookResourceProperties": { | ||
| "type": "object", | ||
| "properties": {} | ||
| }, | ||
| "AzureSubscription": { | ||
| "type": "object", | ||
| "properties": { | ||
| "state": { | ||
| "format": "int32", | ||
| "enum": [ 0, 1, 2, 3, 4 ], | ||
| "type": "integer" | ||
| }, | ||
| "registrationDate": { | ||
| "format": "date-time", | ||
| "type": "string" | ||
| }, | ||
| "properties": { "$ref": "#/definitions/AzureSubscriptionProperties" } | ||
| } | ||
| }, | ||
| "AzureSubscriptionProperties": { | ||
| "type": "object", | ||
| "properties": { | ||
| "tenantId": { "type": "string" }, | ||
| "locationPlacementId": { "type": "string" }, | ||
| "quotaId": { "type": "string" }, | ||
| "registeredFeatures": { | ||
| "uniqueItems": false, | ||
| "type": "array", | ||
| "items": { "$ref": "#/definitions/RegisteredFeature" } | ||
| } | ||
| } | ||
| }, | ||
| "RegisteredFeature": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { "type": "string" }, | ||
| "state": { "type": "string" } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to pass the properties in PUT
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have linked a prior PR that has been approved.
This file was added as part of that. Can we please merge that PR to master?