forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from wonner/llc-accesscontrol
Synapse LLC for AccessControl
- Loading branch information
Showing
4 changed files
with
556 additions
and
2 deletions.
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.