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
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET