Dela via


ResourceManagerModelFactory.AzureRoleDefinition Method

Definition

Initializes a new instance of AzureRoleDefinition.

public static Azure.ResourceManager.Resources.Models.AzureRoleDefinition AzureRoleDefinition (string id = default, string name = default, bool? isServiceRole = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.Permission> permissions = default, System.Collections.Generic.IEnumerable<string> scopes = default);
static member AzureRoleDefinition : string * string * Nullable<bool> * seq<Azure.ResourceManager.Resources.Models.Permission> * seq<string> -> Azure.ResourceManager.Resources.Models.AzureRoleDefinition
Public Shared Function AzureRoleDefinition (Optional id As String = Nothing, Optional name As String = Nothing, Optional isServiceRole As Nullable(Of Boolean) = Nothing, Optional permissions As IEnumerable(Of Permission) = Nothing, Optional scopes As IEnumerable(Of String) = Nothing) As AzureRoleDefinition

Parameters

id
String

The role definition ID.

name
String

The role definition name.

isServiceRole
Nullable<Boolean>

If this is a service role.

permissions
IEnumerable<Permission>

Role definition permissions.

scopes
IEnumerable<String>

Role definition assignable scopes.

Returns

A new AzureRoleDefinition instance for mocking.

Applies to