| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | | using Azure.Core; |
| | 10 | |
|
| | 11 | | namespace Azure.Security.KeyVault.Administration.Models |
| | 12 | | { |
| | 13 | | /// <summary> Role definition. </summary> |
| | 14 | | public partial class RoleDefinition |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of RoleDefinition. </summary> |
| 0 | 17 | | internal RoleDefinition() |
| | 18 | | { |
| 0 | 19 | | Permissions = new ChangeTrackingList<KeyVaultPermission>(); |
| 0 | 20 | | AssignableScopes = new ChangeTrackingList<string>(); |
| 0 | 21 | | } |
| | 22 | |
|
| | 23 | | /// <summary> Initializes a new instance of RoleDefinition. </summary> |
| | 24 | | /// <param name="id"> The role definition ID. </param> |
| | 25 | | /// <param name="name"> The role definition name. </param> |
| | 26 | | /// <param name="type"> The role definition type. </param> |
| | 27 | | /// <param name="roleName"> The role name. </param> |
| | 28 | | /// <param name="description"> The role definition description. </param> |
| | 29 | | /// <param name="roleType"> The role type. </param> |
| | 30 | | /// <param name="permissions"> Role definition permissions. </param> |
| | 31 | | /// <param name="assignableScopes"> Role definition assignable scopes. </param> |
| 204 | 32 | | internal RoleDefinition(string id, string name, string type, string roleName, string description, string roleTyp |
| | 33 | | { |
| 204 | 34 | | Id = id; |
| 204 | 35 | | Name = name; |
| 204 | 36 | | Type = type; |
| 204 | 37 | | RoleName = roleName; |
| 204 | 38 | | Description = description; |
| 204 | 39 | | RoleType = roleType; |
| 204 | 40 | | Permissions = permissions; |
| 204 | 41 | | AssignableScopes = assignableScopes; |
| 204 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> The role definition ID. </summary> |
| 38 | 45 | | public string Id { get; } |
| | 46 | | /// <summary> The role definition name. </summary> |
| 4 | 47 | | public string Name { get; } |
| | 48 | | /// <summary> The role definition type. </summary> |
| 4 | 49 | | public string Type { get; } |
| | 50 | | /// <summary> The role name. </summary> |
| 82 | 51 | | public string RoleName { get; } |
| | 52 | | /// <summary> The role definition description. </summary> |
| 16 | 53 | | public string Description { get; } |
| | 54 | | /// <summary> The role type. </summary> |
| 4 | 55 | | public string RoleType { get; } |
| | 56 | | /// <summary> Role definition permissions. </summary> |
| 4 | 57 | | public IReadOnlyList<KeyVaultPermission> Permissions { get; } |
| | 58 | | /// <summary> Role definition assignable scopes. </summary> |
| 4 | 59 | | public IReadOnlyList<string> AssignableScopes { get; } |
| | 60 | | } |
| | 61 | | } |