diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/machineLearningServices.json index c8b8156e476b..733bff52b38f 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/machineLearningServices.json @@ -5838,7 +5838,9 @@ "ManagedIdentity", "UsernamePassword", "None", - "SAS" + "SAS", + "ServicePrincipal", + "AccessKey" ], "type": "string", "description": "Authentication type of the connection target", @@ -5848,17 +5850,8 @@ } }, "ConnectionCategory": { - "enum": [ - "PythonFeed", - "ContainerRegistry", - "Git" - ], "type": "string", - "description": "Category of the connection", - "x-ms-enum": { - "name": "ConnectionCategory", - "modelAsString": true - } + "description": "Category of the connection" }, "WorkspaceConnectionUsernamePassword": { "type": "object", @@ -5935,6 +5928,65 @@ "additionalProperties": false, "x-ms-discriminator-value": "UsernamePassword" }, + "WorkspaceConnectionAccessKey": { + "type": "object", + "properties": { + "accessKeyId": { + "type": "string" + }, + "secretAccessKey": { + "type": "string", + "x-ms-secret": true + } + }, + "additionalProperties": false + }, + "AccessKeyAuthTypeWorkspaceConnectionProperties": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/WorkspaceConnectionPropertiesV2" + } + ], + "properties": { + "credentials": { + "$ref": "#/definitions/WorkspaceConnectionAccessKey" + } + }, + "additionalProperties": false, + "x-ms-discriminator-value": "AccessKey" + }, + "WorkspaceConnectionServicePrincipal": { + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string", + "x-ms-secret": true + }, + "tenantId": { + "type": "string" + } + }, + "additionalProperties": false + }, + "ServicePrincipalAuthTypeWorkspaceConnectionProperties": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/WorkspaceConnectionPropertiesV2" + } + ], + "properties": { + "credentials": { + "$ref": "#/definitions/WorkspaceConnectionServicePrincipal" + } + }, + "additionalProperties": false, + "x-ms-discriminator-value": "ServicePrincipal" + }, "WorkspaceConnectionPropertiesV2": { "required": [ "authType"