ResourceManagerModelFactory.AzureRoleDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- permissions
- IEnumerable<Permission>
Role definition permissions.
- scopes
- IEnumerable<String>
Role definition assignable scopes.
Returns
A new AzureRoleDefinition instance for mocking.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET