Skip to content

Commit

Permalink
Notebooks swagger spec (#9841)
Browse files Browse the repository at this point in the history
* Notebooks swagger spec

* New line at the end of file

* Remove new line at the end

* PR feedback

* Fix CI errors'

* Add custom words

* Add readme

* Renamed examples folder

* Add operations API

* Fix prettier

* Fix parameter name

* Linter fixes

* Fix examples

* Fix CI errors

* Fix CI error

* CI fixes

* CI fixes

* CI fixes'

* CI fixes

Co-authored-by: Somesh Chatterjee <soch@microsoft.com>
  • Loading branch information
somu84 and somu84 committed Aug 3, 2020
1 parent 1103769 commit cb01675
Show file tree
Hide file tree
Showing 12 changed files with 1,162 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ autoscaling
Avro
avrodeflate
AZFW
AZNB
azns
azpkg
azureaccounts
Expand Down Expand Up @@ -1024,6 +1025,7 @@ nopublicipaddresses
northcentralus
northeurope
nostore
notebookapis
notificationchannels
notificationhubs
notstarted
Expand Down Expand Up @@ -1573,6 +1575,7 @@ testall
testallroutes
testnew
testnewroute
testpl
testresultfile
textanalytics
TFIDF
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"resourceName": "testResource",
"resourceGroupName": "testRP",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"properties": {
"hostname": "Azure Notebooks"
}
}
},
"responses": {
"201": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP/providers/Microsoft.Notebooks/NotebookProxies/testResource",
"name": "testResource",
"type": "Microsoft.Notebooks/NotebookProxies",
"properties": {
"resourceId": "acc07b62291e4a4a800f71ff252e0654",
"hostname": "Azure Notebooks"
}
}
},
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP/providers/Microsoft.Notebooks/NotebookProxies/testResource",
"name": "testResource",
"type": "Microsoft.Notebooks/NotebookProxies",
"properties": {
"resourceId": "acc07b62291e4a4a800f71ff252e0654",
"hostname": "Azure Notebooks"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"resourceName": "testResource",
"resourceGroupName": "testRP",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"properties": {
"hostname": "Azure Notebooks"
}
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP/providers/Microsoft.Notebooks/NotebookProxies/testResource",
"name": "testResource",
"type": "Microsoft.Notebooks/NotebookProxies",
"properties": {
"resourceId": "acc07b62291e4a4a800f71ff252e0654",
"hostname": "Azure Notebooks"
}
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"resourceName": "testResource",
"resourceGroupName": "testRP",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"properties": {
"hostname": "Azure Notebooks"
}
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP/providers/Microsoft.Notebooks/NotebookProxies/testResource",
"name": "testResource",
"type": "Microsoft.Notebooks/NotebookProxies",
"properties": {
"resourceId": "acc07b62291e4a4a800f71ff252e0654",
"hostname": "Azure Notebooks"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"resourceName": "testResource",
"resourceGroupName": "testRP",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"properties": {
"hostname": "Azure Notebooks"
}
}
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP/providers/Microsoft.Notebooks/NotebookProxies/testResource",
"name": "testResource",
"type": "Microsoft.Notebooks/NotebookProxies",
"properties": {
"resourceId": "acc07b62291e4a4a800f71ff252e0654",
"hostname": "Azure Notebooks"
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP/providers/Microsoft.Notebooks/NotebookProxies/testResource2",
"name": "testResource2",
"type": "Microsoft.Notebooks/NotebookProxies",
"properties": {
"resourceId": "bcc07b62291e4a4a800f71ff252e0654",
"hostname": "Azure Notebooks"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"resourceName": "testResource",
"resourceGroupName": "testRP",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"resourceId": "acc07b62291e4a4a800f71ff252e0654",
"primaryAccessKey": "42c43f86f937487dbc84256fab515bf2d80754b249154ded8ede0f5ded3733be",
"secondaryAccessKey": "1cef8965a0224bd896d27f87a7cabf1687e99f6412cd4c2ca25e5908d2105f79",
"hostname": "Azure Notebooks"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"resourceName": "testPL1-1",
"resourceGroupName": "testRP",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"privateLinkId": "testPL1-proxy.dc9bcc9d-dbd2-48ba-bbbb-bcbdaed437ae",
"parameters": {
"properties": {
"hostname": "Azure Notebooks"
},
"connectionDetails": [
{
"id": "f6124779c97049738cc02655385b62ab_1111",
"privateIpAddress": "10.10.10.1",
"linkIdentifier": 1111,
"groupId": "f6124779c97049738cc02655385b62ab",
"memberName": "f6124779c97049738cc02655385b62ab_member"
}
]
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"parameters": {
"resourceName": "testPL1-1",
"resourceGroupName": "testRP",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"privateLinkId": "testPL1-proxy.dc9bcc9d-dbd2-48ba-bbbb-bcbdaed437ae",
"parameters": {
"properties": {
"hostname": "Azure Notebooks",
"connectionDetails": [
{
"id": "f6124779c97049738cc02655385b62ab_1111",
"privateIpAddress": "10.10.10.1",
"linkIdentifier": 1111,
"groupId": "f6124779c97049738cc02655385b62ab",
"memberName": "f6124779c97049738cc02655385b62ab_member"
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRp/providers/Microsoft.Network/privateEndpoints/testPL1-1",
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000//resourceGroups/testRp/providers/Microsoft.Network/privateEndpoints/testPL1-1/privateLinkServiceProxies/testPL1-proxy.dc9bcc9d-dbd2-48ba-bbbb-bcbdaed437ae",
"groupConnectivityInformation": [
{
"groupId": "f6124779c97049738cc02655385b62ab",
"memberName": "f6124779c97049738cc02655385b62ab_member",
"customerVisibleFqdns": [
"testpl1.notebooks-test.azure.net"
],
"internalFqdn": "privatelink.notebookapis-dev2.azure.com"
}
]
}
],
"connectionDetails": [
{
"id": "f6124779c97049738cc02655385b62ab_1111",
"privateIpAddress": "10.10.10.1",
"linkIdentifier": 1111,
"groupId": "f6124779c97049738cc02655385b62ab",
"memberName": "f6124779c97049738cc02655385b62ab_member"
}
]
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRp/providers/Microsoft.Network/privateEndpoints/testPL1-1",
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000//resourceGroups/testRp/providers/Microsoft.Network/privateEndpoints/testPL1-1/privateLinkServiceProxies/testPL1-proxy.dc9bcc9d-dbd2-48ba-bbbb-bcbdaed437ae",
"groupConnectivityInformation": [
{
"groupId": "f6124779c97049738cc02655385b62ab",
"memberName": "f6124779c97049738cc02655385b62ab_member",
"customerVisibleFqdns": [
"testpl1.notebooks-test.azure.net"
],
"internalFqdn": "privatelink.notebookapis-dev2.azure.com"
}
]
}
],
"connectionDetails": [
{
"id": "f6124779c97049738cc02655385b62ab_1111",
"privateIpAddress": "10.10.10.1",
"linkIdentifier": 1111,
"groupId": "f6124779c97049738cc02655385b62ab",
"memberName": "f6124779c97049738cc02655385b62ab_member"
}
]
}
}
}
}
Loading

0 comments on commit cb01675

Please sign in to comment.