forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GA for serverlessendpoints and marketplacesubscription api (Azure#29041)
* add spec for serverlessendpoints and marketplacesubscription * reset spec * add contentsafety and status spec * remaining properties * add serverlessEndpoints and marketplaceSubscriptions APIs * add examples * prettier * move getStatus.json example to correct folder * gate fixes * prettier * remove getStatus API * ARM -> Azure description change * add modelId description * more description changes * test change * Revert "test change" This reverts commit 28e8c40. * decorate EndpointProvisioningState definition as readOnly * suppress AvoidAdditionalProperties for ServerlessInferenceEndpoint.headers * extend suppression to dependent definitions * revert "extend suppression to dependent definitions" This reverts commit e9de06d. * Revert "decorate EndpointProvisioningState definition as readOnly" This reverts commit 43c449a. * ProvisioningStateMustBeReadOnly suppression * attempt suppression of upleveled definitions/paths * Revert "attempt suppression of upleveled definitions/paths" This reverts commit 1d3610d. --------- Co-authored-by: Teddy Todorov <thtodoro@microsoft.com> Co-authored-by: Wenbin Meng <wmeng@ntdev.microsoft.com>
- Loading branch information
1 parent
e905eeb
commit d6ad92d
Showing
13 changed files
with
1,862 additions
and
62 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
...Services/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/createOrUpdate.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,68 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "test-rg", | ||
"workspaceName": "my-aml-workspace", | ||
"name": "string", | ||
"api-version": "2024-04-01", | ||
"body": { | ||
"properties": { | ||
"modelId": "string" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"modelId": "string", | ||
"marketplacePlan": { | ||
"publisherId": "string", | ||
"offerId": "string", | ||
"planId": "string" | ||
}, | ||
"marketplaceSubscriptionStatus": "Suspended", | ||
"provisioningState": "Failed" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-01-01T12:34:56.999+00:08", | ||
"createdBy": "string", | ||
"createdByType": "Key", | ||
"lastModifiedAt": "2020-01-01T12:34:56.999+00:08", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "ManagedIdentity" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"modelId": "string", | ||
"marketplacePlan": { | ||
"publisherId": "string", | ||
"offerId": "string", | ||
"planId": "string" | ||
}, | ||
"marketplaceSubscriptionStatus": "Suspended", | ||
"provisioningState": "Failed" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-01-01T12:34:56.999+00:08", | ||
"createdBy": "string", | ||
"createdByType": "ManagedIdentity", | ||
"lastModifiedAt": "2020-01-01T12:34:56.999+00:08", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "ManagedIdentity" | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...LearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/delete.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,18 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "test-rg", | ||
"workspaceName": "my-aml-workspace", | ||
"name": "string", | ||
"api-version": "2024-04-01" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...", | ||
"Location": "https://management.azure.com/subscriptions/...pathToOperationResult..." | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...ineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/get.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,37 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "test-rg", | ||
"workspaceName": "my-aml-workspace", | ||
"name": "string", | ||
"api-version": "2024-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"modelId": "string", | ||
"marketplacePlan": { | ||
"publisherId": "string", | ||
"offerId": "string", | ||
"planId": "string" | ||
}, | ||
"marketplaceSubscriptionStatus": "Subscribed", | ||
"provisioningState": "Canceled" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-01-01T12:34:56.999+00:08", | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2020-01-01T12:34:56.999+00:08", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "ManagedIdentity" | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...neLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/list.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,42 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "test-rg", | ||
"workspaceName": "my-aml-workspace", | ||
"api-version": "2024-04-01", | ||
"$skipToken": "string" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"modelId": "string", | ||
"marketplacePlan": { | ||
"publisherId": "string", | ||
"offerId": "string", | ||
"planId": "string" | ||
}, | ||
"marketplaceSubscriptionStatus": "Suspended", | ||
"provisioningState": "Creating" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-01-01T12:34:56.999+00:06", | ||
"createdBy": "string", | ||
"createdByType": "ManagedIdentity", | ||
"lastModifiedAt": "2020-01-01T12:34:56.999+00:06", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Key" | ||
} | ||
} | ||
], | ||
"nextLink": "string" | ||
} | ||
} | ||
} | ||
} |
148 changes: 148 additions & 0 deletions
148
...rningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/createOrUpdate.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,148 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "test-rg", | ||
"workspaceName": "my-aml-workspace", | ||
"name": "string", | ||
"api-version": "2024-04-01", | ||
"body": { | ||
"properties": { | ||
"modelSettings": { | ||
"modelId": "string" | ||
}, | ||
"authMode": "Key", | ||
"contentSafety": { | ||
"contentSafetyStatus": "Enabled" | ||
} | ||
}, | ||
"tags": {}, | ||
"location": "string", | ||
"kind": "string", | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"userAssignedIdentities": { | ||
"string": {} | ||
} | ||
}, | ||
"sku": { | ||
"name": "string", | ||
"tier": "Standard", | ||
"size": "string", | ||
"family": "string", | ||
"capacity": 1 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"modelSettings": { | ||
"modelId": "string" | ||
}, | ||
"authMode": "Key", | ||
"inferenceEndpoint": { | ||
"uri": "https://www.contoso.com/example", | ||
"headers": { | ||
"string": "string" | ||
} | ||
}, | ||
"provisioningState": "Updating", | ||
"endpointState": "Deleting", | ||
"marketplaceSubscriptionId": "string", | ||
"contentSafety": { | ||
"contentSafetyStatus": "Disabled" | ||
} | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-01-01T12:34:56.999+00:14", | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"lastModifiedAt": "2020-01-01T12:34:56.999+00:14", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Key" | ||
}, | ||
"tags": {}, | ||
"location": "string", | ||
"kind": "string", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"principalId": "00000000-1111-2222-3333-444444444444", | ||
"tenantId": "00000000-1111-2222-3333-444444444444", | ||
"userAssignedIdentities": { | ||
"string": { | ||
"principalId": "00000000-1111-2222-3333-444444444444", | ||
"clientId": "00000000-1111-2222-3333-444444444444" | ||
} | ||
} | ||
}, | ||
"sku": { | ||
"name": "string", | ||
"tier": "Free", | ||
"size": "string", | ||
"family": "string", | ||
"capacity": 1 | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"modelSettings": { | ||
"modelId": "string" | ||
}, | ||
"authMode": "Key", | ||
"inferenceEndpoint": { | ||
"uri": "https://www.contoso.com/example", | ||
"headers": { | ||
"string": "string" | ||
} | ||
}, | ||
"provisioningState": "Failed", | ||
"endpointState": "Deleting", | ||
"marketplaceSubscriptionId": "string", | ||
"contentSafety": { | ||
"contentSafetyStatus": "Disabled" | ||
} | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-01-01T12:34:56.999+00:14", | ||
"createdBy": "string", | ||
"createdByType": "ManagedIdentity", | ||
"lastModifiedAt": "2020-01-01T12:34:56.999+00:14", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Key" | ||
}, | ||
"tags": {}, | ||
"location": "string", | ||
"kind": "string", | ||
"identity": { | ||
"type": "SystemAssigned,UserAssigned", | ||
"principalId": "00000000-1111-2222-3333-444444444444", | ||
"tenantId": "00000000-1111-2222-3333-444444444444", | ||
"userAssignedIdentities": { | ||
"string": { | ||
"principalId": "00000000-1111-2222-3333-444444444444", | ||
"clientId": "00000000-1111-2222-3333-444444444444" | ||
} | ||
} | ||
}, | ||
"sku": { | ||
"name": "string", | ||
"tier": "Standard", | ||
"size": "string", | ||
"family": "string", | ||
"capacity": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...chineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/delete.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,18 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "test-rg", | ||
"workspaceName": "my-aml-workspace", | ||
"name": "string", | ||
"api-version": "2024-04-01" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...", | ||
"Location": "https://management.azure.com/subscriptions/...pathToOperationResult..." | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.