-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
SynapseRoleDefinition.cs
58 lines (52 loc) · 2.46 KB
/
SynapseRoleDefinition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Analytics.Synapse.AccessControl.Models
{
/// <summary> Synapse role definition details. </summary>
public partial class SynapseRoleDefinition
{
/// <summary> Initializes a new instance of SynapseRoleDefinition. </summary>
internal SynapseRoleDefinition()
{
Permissions = new ChangeTrackingList<SynapseRbacPermission>();
Scopes = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of SynapseRoleDefinition. </summary>
/// <param name="id"> Role Definition ID. </param>
/// <param name="name"> Name of the Synapse role. </param>
/// <param name="isBuiltIn"> Is a built-in role or not. </param>
/// <param name="description"> Description for the Synapse role. </param>
/// <param name="permissions"> Permissions for the Synapse role. </param>
/// <param name="scopes"> Allowed scopes for the Synapse role. </param>
/// <param name="availabilityStatus"> Availability of the Synapse role. </param>
internal SynapseRoleDefinition(Guid? id, string name, bool? isBuiltIn, string description, IReadOnlyList<SynapseRbacPermission> permissions, IReadOnlyList<string> scopes, string availabilityStatus)
{
Id = id;
Name = name;
IsBuiltIn = isBuiltIn;
Description = description;
Permissions = permissions;
Scopes = scopes;
AvailabilityStatus = availabilityStatus;
}
/// <summary> Role Definition ID. </summary>
public Guid? Id { get; }
/// <summary> Name of the Synapse role. </summary>
public string Name { get; }
/// <summary> Is a built-in role or not. </summary>
public bool? IsBuiltIn { get; }
/// <summary> Description for the Synapse role. </summary>
public string Description { get; }
/// <summary> Permissions for the Synapse role. </summary>
public IReadOnlyList<SynapseRbacPermission> Permissions { get; }
/// <summary> Allowed scopes for the Synapse role. </summary>
public IReadOnlyList<string> Scopes { get; }
/// <summary> Availability of the Synapse role. </summary>
public string AvailabilityStatus { get; }
}
}