Share via


AccessControlModelFactory.SynapseRoleDefinition Method

Definition

Initializes a new instance of SynapseRoleDefinition.

public static Azure.Analytics.Synapse.AccessControl.Models.SynapseRoleDefinition SynapseRoleDefinition (Guid? id = default, string name = default, bool? isBuiltIn = default, string description = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Synapse.AccessControl.Models.SynapseRbacPermission> permissions = default, System.Collections.Generic.IEnumerable<string> scopes = default, string availabilityStatus = default);
static member SynapseRoleDefinition : Nullable<Guid> * string * Nullable<bool> * string * seq<Azure.Analytics.Synapse.AccessControl.Models.SynapseRbacPermission> * seq<string> * string -> Azure.Analytics.Synapse.AccessControl.Models.SynapseRoleDefinition
Public Shared Function SynapseRoleDefinition (Optional id As Nullable(Of Guid) = Nothing, Optional name As String = Nothing, Optional isBuiltIn As Nullable(Of Boolean) = Nothing, Optional description As String = Nothing, Optional permissions As IEnumerable(Of SynapseRbacPermission) = Nothing, Optional scopes As IEnumerable(Of String) = Nothing, Optional availabilityStatus As String = Nothing) As SynapseRoleDefinition

Parameters

id
Nullable<Guid>

Role Definition ID.

name
String

Name of the Synapse role.

isBuiltIn
Nullable<Boolean>

Is a built-in role or not.

description
String

Description for the Synapse role.

permissions
IEnumerable<SynapseRbacPermission>

Permissions for the Synapse role.

scopes
IEnumerable<String>

Allowed scopes for the Synapse role.

availabilityStatus
String

Availability of the Synapse role.

Returns

A new SynapseRoleDefinition instance for mocking.

Applies to