Skip to content

Commit

Permalink
GA for serverlessendpoints and marketplacesubscription api (Azure#29041)
Browse files Browse the repository at this point in the history
* 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
3 people authored and Francisco-Gamino committed Jun 5, 2024
1 parent e905eeb commit d6ad92d
Show file tree
Hide file tree
Showing 13 changed files with 1,862 additions and 62 deletions.
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
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
}
}
}
}
}
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": {}
}
}
Loading

0 comments on commit d6ad92d

Please sign in to comment.