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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET