-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added filtering, sorting and location to Dev Box creation flow (#226)
* Added locations * Initial test changes * Moved to Management Service * Housekeeping * Fixed sorting * Changed function type and name * Merge conflict fix * Added display name --------- Co-authored-by: Huzaifa Danish <modanish@microsoft.com>
- Loading branch information
1 parent
d0b1f36
commit 0b0a391
Showing
4 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/AzureExtension/DevBox/Helpers/AbilitiesJSONToCSClasses.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
namespace DevHomeAzureExtension.DevBox.Helpers; | ||
|
||
// Example of a task JSON response that will be deserialized into the BaseClass class | ||
// { | ||
// "abilitiesAsAdmin": [], | ||
// "abilitiesAsDeveloper": [ | ||
// "ReadDevBoxes", | ||
// "WriteDevBoxes", | ||
// ... | ||
// ] | ||
// } | ||
// | ||
|
||
/// <summary> | ||
/// Represents the class for the abilities JSON response. | ||
/// </summary> | ||
public class AbilitiesJSONToCSClasses | ||
{ | ||
public class BaseClass | ||
{ | ||
public List<string> AbilitiesAsAdmin { get; set; } = new(); | ||
|
||
public List<string> AbilitiesAsDeveloper { get; set; } = new(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters