Skip to content

Commit 4d23a61

Browse files
[Hub Generated] Review request for Microsoft.Notebooks to add version preview/2019-10-11-preview (#15642)
* Add new API with examples, add a few new response for current API endpoints * change file name back * remove nullable parameter * change operation name of patch * add description to allowPublicNetworkResource * change example from string to boolean * Change publicnetworkaccess from boolean to string+ * change name * change example to string * change property name Co-authored-by: Geoffrey Troyer <[email protected]>
1 parent 0a68678 commit 4d23a61

File tree

4 files changed

+104
-2
lines changed

4 files changed

+104
-2
lines changed

specification/notebooks/resource-manager/Microsoft.Notebooks/preview/2019-10-11-preview/examples/NBResourcePEDelete.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
}
2121
},
2222
"responses": {
23-
"200": {}
23+
"200": {},
24+
"204": {}
2425
}
2526
}

specification/notebooks/resource-manager/Microsoft.Notebooks/preview/2019-10-11-preview/examples/NBResourcePEUpdate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
}
7878
]
7979
}
80-
}
80+
},
81+
"404": {}
8182
}
8283
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"resourceName": "testResource",
4+
"resourceGroupName": "testRP",
5+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
6+
"parameters": {
7+
"properties": {
8+
"publicNetworkAccess": "Enabled"
9+
}
10+
}
11+
},
12+
"responses": {
13+
"200": {},
14+
"404": {}
15+
}
16+
}

specification/notebooks/resource-manager/Microsoft.Notebooks/preview/2019-10-11-preview/notebooks.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,59 @@
208208
}
209209
}
210210
}
211+
},
212+
"patch": {
213+
"tags": [
214+
"NotebookProxy"
215+
],
216+
"operationId": "NotebookProxies_Update",
217+
"x-ms-examples": {
218+
"Update Notebook Proxy": {
219+
"$ref": "./examples/NBResourcePatch.json"
220+
}
221+
},
222+
"consumes": [
223+
"application/json"
224+
],
225+
"produces": [
226+
"application/json"
227+
],
228+
"summary": "Patch NotebookProxy resource.",
229+
"description": "Patch NotebookProxy resource with specified configuration.",
230+
"parameters": [
231+
{
232+
"$ref": "#/parameters/SubscriptionIdParameter"
233+
},
234+
{
235+
"$ref": "#/parameters/ResourceGroupNameParameter"
236+
},
237+
{
238+
"$ref": "#/parameters/ResourceNameParameter"
239+
},
240+
{
241+
"name": "parameters",
242+
"description": "The properties of the NotebookProxy to be created or updated.",
243+
"in": "body",
244+
"required": true,
245+
"schema": {
246+
"$ref": "#/definitions/MutableNotebookProxy"
247+
}
248+
}
249+
],
250+
"responses": {
251+
"200": {
252+
"description": "OK"
253+
},
254+
"404": {
255+
"description": "NotFound"
256+
},
257+
"default": {
258+
"description": "Error response describing why the operation failed.",
259+
"schema": {
260+
"$ref": "#/definitions/CloudError"
261+
}
262+
}
263+
}
211264
}
212265
},
213266
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Notebooks/notebookProxies": {
@@ -400,6 +453,9 @@
400453
"$ref": "#/definitions/NotebookPEResponse"
401454
}
402455
},
456+
"404": {
457+
"description": "Not found"
458+
},
403459
"default": {
404460
"description": "Error response describing why the operation failed.",
405461
"schema": {
@@ -461,6 +517,9 @@
461517
"200": {
462518
"description": "Success"
463519
},
520+
"204": {
521+
"description": "No Content"
522+
},
464523
"default": {
465524
"description": "Error response describing why the operation failed.",
466525
"schema": {
@@ -512,6 +571,31 @@
512571
"publicDns": {
513572
"description": "The public DNS name",
514573
"type": "string"
574+
},
575+
"publicNetworkAccess": {
576+
"description": "Allow public network access on a V-Net locked notebook resource",
577+
"type": "string"
578+
}
579+
}
580+
},
581+
"MutableNotebookProxy": {
582+
"description": "The mutable properties on a NotebookProxy resource ",
583+
"type": "object",
584+
"properties": {
585+
"properties": {
586+
"$ref": "#/definitions/MutableNotebookResource",
587+
"description": "The mutable properties of NotebookProxy resource.",
588+
"x-ms-client-flatten": true
589+
}
590+
}
591+
},
592+
"MutableNotebookResource": {
593+
"description": "Properties of NotebookProxy resource",
594+
"type": "object",
595+
"properties": {
596+
"publicNetworkAccess": {
597+
"description": "A flag that allows public network access to a private link locked notebook resource.",
598+
"type": "string"
515599
}
516600
}
517601
},

0 commit comments

Comments
 (0)