Skip to content

Commit

Permalink
Adding PersonalComputeInstanceSettings in ComputeInstance swagger (#1…
Browse files Browse the repository at this point in the history
…0553)

* Adding PersonalComputeInstanceSettings

* Fixed validations
  • Loading branch information
ramagott authored Aug 24, 2020
1 parent ee2ca2f commit 34b54c5
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
"applicationSharingPolicy": "Personal",
"sshSettings": {
"sshPublicAccess": "Disabled"
},
"computeInstanceAuthorizationType": "personal",
"personalComputeInstanceSettings": {
"assignedUser": {
"objectId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
"adminUserName": "azureuser",
"sshPort": 22
},
"computeInstanceAuthorizationType": "personal",
"personalComputeInstanceSettings": {
"assignedUser": {
"objectId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000"
}
},
"createdBy": {
"userName": "foobar@microsoft.com",
"userOrgId": "00000000-0000-0000-0000-000000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2532,6 +2532,24 @@
"description": "The current state of this ComputeInstance.",
"$ref": "#/definitions/ComputeInstanceState",
"readOnly": true
},
"computeInstanceAuthorizationType": {
"type": "string",
"title": "Compute Instance Authorization type.",
"description": "The Compute Instance Authorization type. Available values are personal (default).",
"default": "personal",
"enum": [
"personal"
],
"x-ms-enum": {
"name": "ComputeInstanceAuthorizationType",
"modelAsString": true
}
},
"personalComputeInstanceSettings": {
"title": "Personal Compute Instance settings.",
"description": "Settings for a personal compute instance.",
"$ref": "#/definitions/PersonalComputeInstanceSettings"
}
}
}
Expand Down Expand Up @@ -3602,6 +3620,35 @@
"description": "Uniquely identifies the user within his/her organization."
}
}
},
"PersonalComputeInstanceSettings": {
"type": "object",
"properties": {
"assignedUser": {
"$ref": "#/definitions/AssignedUser",
"title": "Assigned User.",
"description": "A user explicitly assigned to a personal compute instance."
}
},
"description": "Settings for a personal compute instance."
},
"AssignedUser": {
"type": "object",
"description": "A user that can be assigned to a compute instance.",
"properties": {
"objectId": {
"type": "string",
"description": "User’s AAD Object Id."
},
"tenantId": {
"type": "string",
"description": "User’s AAD Tenant Id."
}
},
"required": [
"objectId",
"tenantId"
]
}
}
}

0 comments on commit 34b54c5

Please sign in to comment.