forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ComputeInstance to preview swagger (Azure#10654)
* Adding ComputeInstance to preview swagger * Adding examples for few operations * Adding POBO changes
- Loading branch information
Showing
7 changed files
with
629 additions
and
0 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
...ft.MachineLearningServices/preview/2020-09-01-preview/examples/createComputeInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"computeName": "compute123", | ||
"api-version": "2020-09-01-preview", | ||
"parameters": { | ||
"location": "eastus", | ||
"properties": { | ||
"computeType": "ComputeInstance", | ||
"properties": { | ||
"vmSize": "STANDARD_NC6", | ||
"subnet": "test-subnet-resource-id", | ||
"applicationSharingPolicy": "Personal", | ||
"sshSettings": { | ||
"sshPublicAccess": "Disabled" | ||
}, | ||
"computeInstanceAuthorizationType": "personal", | ||
"personalComputeInstanceSettings": { | ||
"assignedUser": { | ||
"objectId": "00000000-0000-0000-0000-000000000000", | ||
"tenantId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123", | ||
"type": "Microsoft.MachineLearningServices/workspaces/computes", | ||
"name": "compute123", | ||
"location": "eastus", | ||
"properties": { | ||
"computeType": "ComputeInstance", | ||
"provisioningState": "Creating" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123", | ||
"type": "Microsoft.MachineLearningServices/workspaces/computes", | ||
"name": "compute123", | ||
"location": "eastus", | ||
"properties": { | ||
"computeType": "ComputeInstance", | ||
"provisioningState": "Creating" | ||
} | ||
}, | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..." | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...ineLearningServices/preview/2020-09-01-preview/examples/createComputeInstanceMinimal.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"computeName": "compute123", | ||
"api-version": "2020-09-01-preview", | ||
"parameters": { | ||
"location": "eastus", | ||
"properties": { | ||
"computeType": "ComputeInstance", | ||
"properties": { | ||
"vmSize": "STANDARD_NC6" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123", | ||
"type": "Microsoft.MachineLearningServices/workspaces/computes", | ||
"name": "compute123", | ||
"location": "eastus", | ||
"properties": { | ||
"computeType": "ComputeInstance", | ||
"provisioningState": "Creating" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123", | ||
"type": "Microsoft.MachineLearningServices/workspaces/computes", | ||
"name": "compute123", | ||
"location": "eastus", | ||
"properties": { | ||
"computeType": "ComputeInstance", | ||
"provisioningState": "Creating" | ||
} | ||
}, | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..." | ||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...osoft.MachineLearningServices/preview/2020-09-01-preview/examples/getComputeInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"computeName": "compute123", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123", | ||
"type": "Microsoft.MachineLearningServices/workspaces/computes", | ||
"name": "compute123", | ||
"location": "eastus2", | ||
"properties": { | ||
"description": "some compute", | ||
"computeType": "ComputeInstance", | ||
"createdOn": "2017-09-26T22:28:08.327Z", | ||
"provisioningState": "Succeeded", | ||
"properties": { | ||
"vmSize": "STANDARD_NC6", | ||
"subnet": "test-subnet-resource-id", | ||
"applicationSharingPolicy": "Shared", | ||
"sshSettings": { | ||
"sshPublicAccess": "Enabled", | ||
"adminUserName": "azureuser", | ||
"sshPort": 22 | ||
}, | ||
"computeInstanceAuthorizationType": "personal", | ||
"personalComputeInstanceSettings": { | ||
"assignedUser": { | ||
"objectId": "00000000-0000-0000-0000-000000000000", | ||
"tenantId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
}, | ||
"createdBy": { | ||
"userName": "foobar@microsoft.com", | ||
"userOrgId": "00000000-0000-0000-0000-000000000000", | ||
"userId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"connectivityEndpoints": { | ||
"publicIpAddress": "10.0.0.1", | ||
"privateIpAddress": "10.0.0.1" | ||
}, | ||
"applications": [ | ||
{ | ||
"displayName": "Jupyter", | ||
"endpointUri": "https://compute123.eastus2.azureml.net/jupyter" | ||
} | ||
], | ||
"errors": null, | ||
"state": "Running" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...t.MachineLearningServices/preview/2020-09-01-preview/examples/restartComputeInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"computeName": "compute123", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...oft.MachineLearningServices/preview/2020-09-01-preview/examples/startComputeInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"computeName": "compute123", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...soft.MachineLearningServices/preview/2020-09-01-preview/examples/stopComputeInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"computeName": "compute123", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
Oops, something went wrong.