Skip to content

Commit 34b54c5

Browse files
authored
Adding PersonalComputeInstanceSettings in ComputeInstance swagger (#10553)
* Adding PersonalComputeInstanceSettings * Fixed validations
1 parent ee2ca2f commit 34b54c5

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-02-18-preview/examples/createComputeInstance.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"applicationSharingPolicy": "Personal",
1616
"sshSettings": {
1717
"sshPublicAccess": "Disabled"
18+
},
19+
"computeInstanceAuthorizationType": "personal",
20+
"personalComputeInstanceSettings": {
21+
"assignedUser": {
22+
"objectId": "00000000-0000-0000-0000-000000000000",
23+
"tenantId": "00000000-0000-0000-0000-000000000000"
24+
}
1825
}
1926
}
2027
}

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-02-18-preview/examples/getComputeInstance.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
"adminUserName": "azureuser",
2828
"sshPort": 22
2929
},
30+
"computeInstanceAuthorizationType": "personal",
31+
"personalComputeInstanceSettings": {
32+
"assignedUser": {
33+
"objectId": "00000000-0000-0000-0000-000000000000",
34+
"tenantId": "00000000-0000-0000-0000-000000000000"
35+
}
36+
},
3037
"createdBy": {
3138
"userName": "[email protected]",
3239
"userOrgId": "00000000-0000-0000-0000-000000000000",

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-02-18-preview/machineLearningServices.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,24 @@
25322532
"description": "The current state of this ComputeInstance.",
25332533
"$ref": "#/definitions/ComputeInstanceState",
25342534
"readOnly": true
2535+
},
2536+
"computeInstanceAuthorizationType": {
2537+
"type": "string",
2538+
"title": "Compute Instance Authorization type.",
2539+
"description": "The Compute Instance Authorization type. Available values are personal (default).",
2540+
"default": "personal",
2541+
"enum": [
2542+
"personal"
2543+
],
2544+
"x-ms-enum": {
2545+
"name": "ComputeInstanceAuthorizationType",
2546+
"modelAsString": true
2547+
}
2548+
},
2549+
"personalComputeInstanceSettings": {
2550+
"title": "Personal Compute Instance settings.",
2551+
"description": "Settings for a personal compute instance.",
2552+
"$ref": "#/definitions/PersonalComputeInstanceSettings"
25352553
}
25362554
}
25372555
}
@@ -3602,6 +3620,35 @@
36023620
"description": "Uniquely identifies the user within his/her organization."
36033621
}
36043622
}
3623+
},
3624+
"PersonalComputeInstanceSettings": {
3625+
"type": "object",
3626+
"properties": {
3627+
"assignedUser": {
3628+
"$ref": "#/definitions/AssignedUser",
3629+
"title": "Assigned User.",
3630+
"description": "A user explicitly assigned to a personal compute instance."
3631+
}
3632+
},
3633+
"description": "Settings for a personal compute instance."
3634+
},
3635+
"AssignedUser": {
3636+
"type": "object",
3637+
"description": "A user that can be assigned to a compute instance.",
3638+
"properties": {
3639+
"objectId": {
3640+
"type": "string",
3641+
"description": "User’s AAD Object Id."
3642+
},
3643+
"tenantId": {
3644+
"type": "string",
3645+
"description": "User’s AAD Tenant Id."
3646+
}
3647+
},
3648+
"required": [
3649+
"objectId",
3650+
"tenantId"
3651+
]
36053652
}
36063653
}
36073654
}

0 commit comments

Comments
 (0)