Skip to content

Commit

Permalink
Merge pull request #1 from wonner/llc-accesscontrol
Browse files Browse the repository at this point in the history
Synapse LLC for AccessControl
  • Loading branch information
annelo-msft authored Aug 11, 2021
2 parents 034a174 + a8900ba commit da8dcc2
Show file tree
Hide file tree
Showing 4 changed files with 556 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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; }
}
}
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; }
}
}
Loading

0 comments on commit da8dcc2

Please sign in to comment.