-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
2020-09-01-preview Inference Endpoints and Deployments #10420
Closed
fullmetalcloud
wants to merge
53
commits into
Azure:master
from
fullmetalcloud:2020-09-01-preview-inference-specs
Closed
Changes from 46 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
8ea0ed4
copied 2020-05-15-preview and made as 2020-09-01-preview
msft-edguevar bf9cf5a
updated readme.md for 2020-09-01-preview
msft-edguevar abc60de
added new sub resources and examples - inferenceEndpoints and its sub…
msft-edguevar 0e3a444
added inference.json ref in readme.md
msft-edguevar b8155f4
changed Sku to InferenceSku to avoid conflict with machineLearningSer…
msft-edguevar 0ad00d4
changed x-ms-enum for sku tier to avoid conflict
msft-edguevar 752645a
testing 2020-05-15-preview file
msft-edguevar 57116f3
added operations in inference.json, corrected previous test, deleted …
msft-edguevar e3f1bfc
deleted operations
msft-edguevar 99bca51
added systemData, not an issue to add here
msft-edguevar 8c194d0
deleted SystemData field, fixed LinkedWorkspace list operation
msft-edguevar 6e6ca4b
listLinkedWorkspaces example updated
msft-edguevar 44c6543
adding systemData
msft-edguevar cdc044c
referenced common-types instead of declaring in inference.json
msft-edguevar 0f2911d
Apply suggestions from code review
fullmetalcloud 086109b
changed parameters to reference in machineLearningServices.json rathe…
msft-edguevar a7ccb5c
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
msft-edguevar 39005c3
Merge branch '2020-09-01-preview-inference-specs' of https://github.c…
msft-edguevar c02bf3e
changed references and names to avoid naming conflicts
msft-edguevar 28a2bf6
fix on deployment properties and listWorkspaces example
msft-edguevar e0b6aa0
linter and prettier fixes
msft-edguevar eff99f3
changed ErrorResponse to MachineLearningServiceError to meet ARM stan…
msft-edguevar 84c3c62
added tags to update for deployments
msft-edguevar 3b5f2db
added patch for inferenceEndpoints to update tags
msft-edguevar 971bd8e
Update specification/machinelearningservices/resource-manager/Microso…
fullmetalcloud a924eb6
changed authMode enum to AMLTokenAuth
msft-edguevar 515e712
fixed endpoint examples for authMode change
msft-edguevar 21ddcbc
added new mutable properties for deployment update
msft-edguevar b7b1820
fixed examples
msft-edguevar 8792900
example corrections
msft-edguevar 86fc0e6
fixed examples
msft-edguevar 2ca3029
deleted nextLink required field
msft-edguevar 8022671
Update specification/machinelearningservices/resource-manager/Microso…
fullmetalcloud 475aebf
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
msft-edguevar 142108c
Merge branch '2020-09-01-preview-inference-specs' of https://github.c…
msft-edguevar 9acdd58
moved identity as Endpoint exclusive and fixed examples
msft-edguevar 0bc23b4
nit from codeAssetId to codeAssetIds
msft-edguevar 8ff97e4
added properties to request and fixed examples
msft-edguevar 64d5a1c
deleted readOnly in properties field in request
msft-edguevar 7b905a3
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
msft-edguevar 129fda3
save all
msft-edguevar c8bc569
changed sku naming
msft-edguevar 0cc095c
deleted unnecessary /skus and added polling headers for delete
msft-edguevar 7a6d38c
added deploymentWeights to endpoint and adjusted examples
msft-edguevar faa6261
deleted patch for endpoints
msft-edguevar 320b223
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
msft-edguevar 43ac0c4
deleted patch, readjusted examples due to new changes, made endpoint …
msft-edguevar 387af23
validation fixes
msft-edguevar ccf20c8
deleted properties from examples
msft-edguevar 9df1731
changed Sku definition in machinelearningservices to amlSku to fix co…
msft-edguevar 5bfe883
changed amlSku to Sku and Reosurce to amlResource to avoid conflicts
msft-edguevar b6fbcfc
fixed createorupdatedeployment example
msft-edguevar 72b403b
added patch and fixed examples
msft-edguevar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...ingServices/preview/2020-09-01-preview/examples/checkInferenceEndpointDeploymentName.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,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"locationName": "eastus2euap", | ||
"api-version": "2020-09-01-preview", | ||
"properties": { | ||
"name": "testendpointdeployment" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "None", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...chineLearningServices/preview/2020-09-01-preview/examples/checkInferenceEndpointName.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,21 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"locationName": "eastus2euap", | ||
"api-version": "2020-09-01-preview", | ||
"properties": { | ||
"name": "testendpoint" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "None", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...MachineLearningServices/preview/2020-09-01-preview/examples/createOrUpdateDeployment.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,62 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"deploymentName": "testdeployment", | ||
"api-version": "2020-09-01-preview", | ||
"properties": { | ||
"modelIds": [ | ||
"modelURL" | ||
], | ||
"sku": "ML_Standard_D3_v2", | ||
"weight": 100, | ||
"scaleSettings": { | ||
"minimum": 1, | ||
"maximum": 5, | ||
"default": 2 | ||
}, | ||
"environmentConfigId": "EnvConfigURL", | ||
"codeAssetIds": [ | ||
"CodeAssetURL" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/inferenceEndpoints/testendpoint/deployments/testdeployment", | ||
"name": "testdeployment", | ||
"location": "westus2euap", | ||
"type": "Microsoft.MachineLearningServices/workspaces/inferenceEndpoints/deployments", | ||
"sku": { | ||
"name": "ML_Standard_D3_v2", | ||
"tier": "Basic", | ||
"capacity": 5 | ||
}, | ||
"properties": { | ||
"modelIds": [ | ||
"modelURL" | ||
], | ||
"scaleSettings": { | ||
"minimum": 1, | ||
"maximum": 5, | ||
"default": 2 | ||
}, | ||
"weight": 100, | ||
"provisioningState": "Succeeded", | ||
"environmentConfigId": "EnvConfigURL", | ||
"codeAssetIds": [ | ||
"CodeAssetURL" | ||
] | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..." | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...LearningServices/preview/2020-09-01-preview/examples/createOrUpdateInferenceEndpoint.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,40 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"api-version": "2020-09-01-preview", | ||
"properties": { | ||
"description": "This is a test endpoint", | ||
"tags": {}, | ||
"properties": {} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/inferenceEndpoints/testendpoint", | ||
"type": "Microsoft.MachineLearningServices/workspaces/inferenceEndpoints", | ||
"name": "testendpoint", | ||
"identity": {}, | ||
"location": "westus2euap", | ||
"tags": {}, | ||
"properties": { | ||
"description": "This is a test endpoint", | ||
"properties": {}, | ||
"provisioningState": "Succeeded", | ||
"error": null, | ||
"authMode": "AMLTokenAuth", | ||
"uri": "", | ||
"deploymentWeights": {} | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..." | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...crosoft.MachineLearningServices/preview/2020-09-01-preview/examples/deleteDeployment.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"deploymentName": "testdeployment", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...", | ||
"Location": "https://management.azure.com/subscriptions/...pathToOperationResult..." | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
....MachineLearningServices/preview/2020-09-01-preview/examples/deleteInferenceEndpoint.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,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...", | ||
"Location": "https://management.azure.com/subscriptions/...pathToOperationResult..." | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
.../Microsoft.MachineLearningServices/preview/2020-09-01-preview/examples/getDeployment.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,41 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"deploymentName": "testdeployment", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/inferenceEndpoints/testendpoint/deployments/testdeployment", | ||
"name": "testdeployment", | ||
"location": "westus2euap", | ||
"type": "Microsoft.MachineLearningServices/workspaces/inferenceEndpoints/deployments", | ||
"sku": { | ||
"name": "ML_Standard_D3_v2", | ||
"tier": "Basic", | ||
"capacity": 5 | ||
}, | ||
"properties": { | ||
"modelIds": [ | ||
"modelURL" | ||
], | ||
"scaleSettings": { | ||
"minimum": 1, | ||
"maximum": 5, | ||
"default": 2 | ||
}, | ||
"weight": 100, | ||
"provisioningState": "Succeeded", | ||
"environmentConfigId": "EnvConfigURL", | ||
"codeAssetIds": [ | ||
"CodeAssetURL" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...oft.MachineLearningServices/preview/2020-09-01-preview/examples/getDeploymentSkuInfo.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"deploymentName": "testdeployment", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"sku": { | ||
"name": "ML_Standard_D3_v2", | ||
"tier": "Basic" | ||
}, | ||
"capacity": { | ||
"minimum": 1, | ||
"maximum": 5, | ||
"default": 2, | ||
"scaleType": "automatic" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...Microsoft.MachineLearningServices/preview/2020-09-01-preview/examples/getDeployments.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,72 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/inferenceEndpoints/testendpoint/deployments/testdeployment", | ||
"name": "testdeployment", | ||
"location": "westus2euap", | ||
"type": "Microsoft.MachineLearningServices/workspaces/inferenceEndpoints/deployments", | ||
"sku": { | ||
"name": "Standard_DS3_V2", | ||
"tier": "Basic", | ||
"capacity": 5 | ||
}, | ||
"properties": { | ||
"modelIds": [ | ||
"modelURL" | ||
], | ||
"scaleSettings": { | ||
"minimum": 1, | ||
"maximum": 5, | ||
"default": 2 | ||
}, | ||
"weight": 50, | ||
"provisioningState": "Succeeded", | ||
"environmentConfigId": "EnvConfigURL", | ||
"codeAssetIds": [ | ||
"CodeAssetURL" | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/inferenceEndpoints/testendpoint/deployments/testdeployment2", | ||
"name": "testdeployment2", | ||
"location": "westus2euap", | ||
"type": "Microsoft.MachineLearningServices/workspaces/inferenceEndpoints/deployments", | ||
"sku": { | ||
"name": "ML_Standard_D3_v2", | ||
"tier": "Basic", | ||
"capacity": 2 | ||
}, | ||
"properties": { | ||
"modelIds": [ | ||
"modelURL" | ||
], | ||
"scaleSettings": { | ||
"minimum": 1, | ||
"maximum": 4, | ||
"default": 2 | ||
}, | ||
"weight": 50, | ||
"provisioningState": "Succeeded", | ||
"environmentConfigId": "EnvConfigURL", | ||
"codeAssetIds": [ | ||
"CodeAssetURL" | ||
] | ||
} | ||
} | ||
], | ||
"nextLink": "nextLink" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...oft.MachineLearningServices/preview/2020-09-01-preview/examples/getInferenceEndpoint.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"resourceGroupName": "testrg123", | ||
"workspaceName": "workspaces123", | ||
"inferenceEndpointName": "testendpoint", | ||
"api-version": "2020-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/inferenceEndpoints/testendpoint", | ||
"name": "testendpoint", | ||
"identity": "", | ||
"location": "westus2euap", | ||
"type": "Microsoft.MachineLearningServices/workspaces/inferenceEndpoints", | ||
"tags": {}, | ||
"properties": { | ||
"description": "This is a test endpoint", | ||
"properties": {}, | ||
"provisioningState": "Succeeded", | ||
"error": null, | ||
"authMode": "AMLTokenAuth", | ||
"uri": "", | ||
"deploymentWeights": {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can add an example of the content of this map? |
||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
do need this? can we remove in first iteration?