From 2818e5f4132995093c588f09e9bf3b2b628bd199 Mon Sep 17 00:00:00 2001 From: Suba Selvameena Karunamoorthy Date: Thu, 4 Mar 2021 14:49:31 -0800 Subject: [PATCH] fix small swagger bugs --- .../2021-04-01/machineLearningServices.json | 37 +++++++++++++++++-- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-04-01/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-04-01/machineLearningServices.json index d8b23a9c743b..bf7f2656a81b 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-04-01/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-04-01/machineLearningServices.json @@ -2373,6 +2373,22 @@ "primaryUserAssignedIdentity": { "description": "The user assigned identity resource id that represents the workspace identity.", "type": "string" + }, + "subscriptionState": { + "readOnly":true, + "$ref": "#/definitions/SubscriptionState" + }, + "subscriptionStatusChangeTimeStampUtc": { + "type": "string", + "readOnly": true, + "format": "date-time", + "title": "Subscription state change time.", + "description": "The time at which the subscription state changed." + }, + "tenantId": { + "description": "The tenant id associated with this workspace.", + "type": "string", + "readOnly": true } } }, @@ -4102,6 +4118,22 @@ "modelAsString": true } }, + "SubscriptionState": { + "type": "string", + "description": "The state AzureML workspace's subscription", + "enum": [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ], + "x-ms-enum": { + "name": "SubscriptionState", + "modelAsString": false + } + }, "MachineLearningServiceError": { "type": "object", "description": "Wrapper for error response to follow ARM guidelines.", @@ -4569,10 +4601,7 @@ "description": "The ArmId of the user assigned identity that will be used to access the customer managed key vault", "type": "string" } - }, - "required": [ - "userAssignedIdentity" - ] + } }, "ServiceResource": { "type": "object",