Skip to content

Commit

Permalink
Changed machinelearning swagger for new AMLCompute type (#4344)
Browse files Browse the repository at this point in the history
* Adding new GA version 2018-12-01

* Changed machinelearning swagger for new AMLCompute for 1RP changes

* Added Supported VMSize List API

* replacing tabs with spaces

* removing batchai reference from examples

* renaming example files from batchai to amlcompute

* missed adding renamed files in previous commit

* Added remaining examples

* removed tabs

* adding more swagger improvements

* removing resource id

* added usage api swagger changes

* CR feedbacks

* CR feedbacks, examples corrected

* autorest fixes

* Adding patchAMLCompute.json

* build fix for patch operation

* AML GA Swagger updates: Changed machinelearning swagger for new AMLCompute type for GA version

* updated api version to 2018-11-19

* CR feedbacks readonly

* adding missing computes

* removing deprecated api

* version change

* changing version

* make patch compute long running operation

* Add underlyingResourceAction and isAttachedCompute in
machineLearningServices.json

* Update deleteCompute.json sample

* add enum and x-ms-enum for UnderlyingResourceAction

* Update Delete/Detach casing just to be safe (although case doesn't matter)

* Fixing AmlCompute

* renaming files

* renaming

* adding properties for aks vnet support

* patch swagger update

* Added useraccount settings and list remote login info API for aml compute

* remove unused param

* list nodes

* swagger build fixes

* updated swagger for listnodes response simplification

* rename to user account credentials

* Changing vmPriority and allocationState to match MLC and other conventions
  • Loading branch information
msoni3 authored and anuchandy committed Dec 4, 2018
1 parent 805e188 commit a5166b0
Show file tree
Hide file tree
Showing 25 changed files with 3,180 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"location": "eastus",
"api-version": "2018-11-19"
},
"responses": {
"200": {
"body": {
"value": [
{
"currentValue": 5,
"limit": 20,
"name": {
"localizedValue": "Clusters",
"value": "Clusters"
},
"unit": "Count"
},
{
"currentValue": 49,
"limit": 600,
"name": {
"localizedValue": "Total Cluster Dedicated Regional vCPUs",
"value": "Total Cluster Dedicated Regional vCPUs"
},
"unit": "Count"
},
{
"currentValue": 1,
"limit": 600,
"name": {
"localizedValue": "Standard D Family Cluster Dedicated vCPUs",
"value": "Standard D Family Cluster Dedicated vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 600,
"name": {
"localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs",
"value": "Standard Dv2 Family Cluster Dedicated vCPUs"
},
"unit": "Count"
},
{
"currentValue": 48,
"limit": 600,
"name": {
"localizedValue": "Standard NC Family Cluster Dedicated vCPUs",
"value": "Standard NC Family Cluster Dedicated vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 0,
"name": {
"localizedValue": "Standard NCv2 Family Cluster Dedicated vCPUs",
"value": "Standard NCv2 Family Cluster Dedicated vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 0,
"name": {
"localizedValue": "Standard NCv3 Family Cluster Dedicated vCPUs",
"value": "Standard NCv3 Family Cluster Dedicated vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 0,
"name": {
"localizedValue": "Standard ND Family Cluster Dedicated vCPUs",
"value": "Standard ND Family Cluster Dedicated vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 600,
"name": {
"localizedValue": "Standard NV Family Cluster Dedicated vCPUs",
"value": "Standard NV Family Cluster Dedicated vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 150,
"name": {
"localizedValue": "Total Cluster Low Priority Regional vCPUs",
"value": "Total Cluster LowPriority Regional vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 150,
"name": {
"localizedValue": "Standard D Family Cluster Low Priority vCPUs",
"value": "Standard D Family Cluster LowPriority vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 150,
"name": {
"localizedValue": "Standard Dv2 Family Cluster Low Priority vCPUs",
"value": "Standard Dv2 Family Cluster LowPriority vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 150,
"name": {
"localizedValue": "Standard NC Family Cluster Low Priority vCPUs",
"value": "Standard NC Family Cluster LowPriority vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 0,
"name": {
"localizedValue": "Standard NCv2 Family Cluster Low Priority vCPUs",
"value": "Standard NCv2 Family Cluster LowPriority vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 0,
"name": {
"localizedValue": "Standard NCv3 Family Cluster Low Priority vCPUs",
"value": "Standard NCv3 Family Cluster LowPriority vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 0,
"name": {
"localizedValue": "Standard ND Family Cluster Low Priority vCPUs",
"value": "Standard ND Family Cluster LowPriority vCPUs"
},
"unit": "Count"
},
{
"currentValue": 0,
"limit": 150,
"name": {
"localizedValue": "Standard NV Family Cluster Low Priority vCPUs",
"value": "Standard NV Family Cluster LowPriority vCPUs"
},
"unit": "Count"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "testrg123",
"workspaceName": "workspaces123",
"computeName": "compute123",
"api-version": "2018-11-19"
},
"responses": {
"200": {
"body": {
"computeType": "AmlCompute",
"nodes": [
{
"nodeId": "tvm-3601533753_1-20170719t162906z",
"ipAddress": "13.84.190.124",
"port": 50000
},
{
"nodeId": "tvm-3601533753_2-20170719t162906z",
"ipAddress": "13.84.190.124",
"port": 50001
}
],
"nextLink": "nextLink",
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "testrg123",
"workspaceName": "workspaces123",
"computeName": "compute123",
"api-version": "2018-11-19",
"parameters": {
"location": "eastus",
"properties": {
"computeType": "AKS"
}
}
},
"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": "AKS",
"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": "AKS",
"provisioningState": "Creating"
}
},
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "testrg123",
"workspaceName": "workspaces123",
"computeName": "compute123",
"api-version": "2018-11-19",
"parameters": {
"location": "eastus",
"properties": {
"computeType": "AmlCompute",
"properties": {
"vmSize": "STANDARD_NC6",
"vmPriority": "Dedicated",
"scaleSettings": {
"maxNodeCount": 1,
"minNodeCount": 0,
"nodeIdleTimeBeforeScaleDown": "PT5M"
}
}
}
}
},
"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": "AmlCompute",
"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": "AmlCompute",
"provisioningState": "Creating"
}
},
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "testrg123",
"workspaceName": "workspaces123",
"computeName": "compute123",
"api-version": "2018-11-19",
"parameters": {
"location": "eastus",
"properties": {
"computeType": "DataFactory"
}
}
},
"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": "DataFactory",
"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": "DataFactory",
"provisioningState": "Creating"
}
},
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
}
}
}
}
Loading

0 comments on commit a5166b0

Please sign in to comment.