forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synapse LLC for AccessControl #1
Merged
annelo-msft
merged 2 commits into
annelo-msft:users/annelo/synapse-rbac-llc
from
wonner:llc-accesscontrol
Aug 11, 2021
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/SynapseAccessControlClient.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Models/SynapsePermission.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,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Azure.Analytics.Synapse.AccessControl | ||
{ | ||
public class SynapsePermission | ||
{ | ||
public SynapsePermission(IList<string> actions, IList<string> notActions, IList<string> dataActions, IList<string> notDataActions) | ||
{ | ||
Actions = actions; | ||
NotActions = notActions; | ||
DataActions = dataActions; | ||
NotDataActions = notDataActions; | ||
} | ||
|
||
public IList<string> Actions { get; } | ||
|
||
public IList<string> NotActions { get; } | ||
// TODO: change the below type from 'string' to 'SynapseDataAction', populate the list of actions | ||
public IList<string> DataActions { get; } | ||
|
||
public IList<string> NotDataActions { get; } | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Models/SynapseRoleDefinition.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,36 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Azure.Analytics.Synapse.AccessControl | ||
{ | ||
public class SynapseRoleDefinition | ||
{ | ||
public SynapseRoleDefinition(string id, string name,string description, IList<SynapsePermission> permissions, IList<SynapseRoleScope> assignableScopes) | ||
{ | ||
Id = id; | ||
Name = name; | ||
Description = description; | ||
Permissions = permissions; | ||
AssignableScopes = assignableScopes; | ||
} | ||
|
||
public string Id { get; } | ||
|
||
public string Name { get; } | ||
|
||
public string Description { get; set; } | ||
|
||
public IList<SynapsePermission> Permissions { get; } | ||
|
||
public IList<SynapseRoleScope> AssignableScopes { get; } | ||
|
||
// TODO: solve the missing properties | ||
//public SynapseRoleDefinitionType? Type { get; } | ||
|
||
//public string RoleName { get; set; } | ||
|
||
//public SynapseRoleType? RoleType { get; set; } | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for including these comments! Would you mind adding to them that the reason is to be consistent with the ARM and KeyVault RBAC APIs, just so that doesn't get forgotten?