KeyVaultAdministrationModelFactory.KeyVaultRoleDefinition 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 KeyVaultRoleDefinition.
public static Azure.Security.KeyVault.Administration.KeyVaultRoleDefinition KeyVaultRoleDefinition (string id = default, string name = default, Azure.Security.KeyVault.Administration.KeyVaultRoleDefinitionType? type = default, string roleName = default, string description = default, Azure.Security.KeyVault.Administration.KeyVaultRoleType? roleType = default, System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Administration.KeyVaultPermission> permissions = default, System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Administration.KeyVaultRoleScope> assignableScopes = default);
static member KeyVaultRoleDefinition : string * string * Nullable<Azure.Security.KeyVault.Administration.KeyVaultRoleDefinitionType> * string * string * Nullable<Azure.Security.KeyVault.Administration.KeyVaultRoleType> * seq<Azure.Security.KeyVault.Administration.KeyVaultPermission> * seq<Azure.Security.KeyVault.Administration.KeyVaultRoleScope> -> Azure.Security.KeyVault.Administration.KeyVaultRoleDefinition
Public Shared Function KeyVaultRoleDefinition (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As Nullable(Of KeyVaultRoleDefinitionType) = Nothing, Optional roleName As String = Nothing, Optional description As String = Nothing, Optional roleType As Nullable(Of KeyVaultRoleType) = Nothing, Optional permissions As IEnumerable(Of KeyVaultPermission) = Nothing, Optional assignableScopes As IEnumerable(Of KeyVaultRoleScope) = Nothing) As KeyVaultRoleDefinition
Parameters
- id
- String
The role definition ID.
- name
- String
The role definition name.
The role definition type.
- roleName
- String
The role name.
- description
- String
The role definition description.
- roleType
- Nullable<KeyVaultRoleType>
The role type.
- permissions
- IEnumerable<KeyVaultPermission>
Role definition permissions.
- assignableScopes
- IEnumerable<KeyVaultRoleScope>
Role definition assignable scopes.
Returns
A new KeyVaultRoleDefinition instance for mocking.