| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Graph.RBAC.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | public partial class AppRole |
| | 19 | | { |
| | 20 | | /// <summary> |
| | 21 | | /// Initializes a new instance of the AppRole class. |
| | 22 | | /// </summary> |
| 240 | 23 | | public AppRole() |
| | 24 | | { |
| | 25 | | CustomInit(); |
| 240 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the AppRole class. |
| | 30 | | /// </summary> |
| | 31 | | /// <param name="id">Unique role identifier inside the appRoles |
| | 32 | | /// collection.</param> |
| | 33 | | /// <param name="allowedMemberTypes">Specifies whether this app role |
| | 34 | | /// definition can be assigned to users and groups by setting to |
| | 35 | | /// 'User', or to other applications (that are accessing this |
| | 36 | | /// application in daemon service scenarios) by setting to |
| | 37 | | /// 'Application', or to both. </param> |
| | 38 | | /// <param name="description">Permission help text that appears in the |
| | 39 | | /// admin app assignment and consent experiences.</param> |
| | 40 | | /// <param name="displayName">Display name for the permission that |
| | 41 | | /// appears in the admin consent and app assignment |
| | 42 | | /// experiences.</param> |
| | 43 | | /// <param name="isEnabled">When creating or updating a role |
| | 44 | | /// definition, this must be set to true (which is the default). To |
| | 45 | | /// delete a role, this must first be set to false. At that point, in a |
| | 46 | | /// subsequent call, this role may be removed.</param> |
| | 47 | | /// <param name="value">Specifies the value of the roles claim that the |
| | 48 | | /// application should expect in the authentication and access |
| | 49 | | /// tokens.</param> |
| 0 | 50 | | public AppRole(string id = default(string), IList<string> allowedMemberTypes = default(IList<string>), string de |
| | 51 | | { |
| 0 | 52 | | Id = id; |
| 0 | 53 | | AllowedMemberTypes = allowedMemberTypes; |
| 0 | 54 | | Description = description; |
| 0 | 55 | | DisplayName = displayName; |
| 0 | 56 | | IsEnabled = isEnabled; |
| 0 | 57 | | Value = value; |
| | 58 | | CustomInit(); |
| 0 | 59 | | } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// An initialization method that performs custom operations like setting defaults |
| | 63 | | /// </summary> |
| | 64 | | partial void CustomInit(); |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets unique role identifier inside the appRoles collection. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "id")] |
| 0 | 70 | | public string Id { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets specifies whether this app role definition can be |
| | 74 | | /// assigned to users and groups by setting to 'User', or to other |
| | 75 | | /// applications (that are accessing this application in daemon service |
| | 76 | | /// scenarios) by setting to 'Application', or to both. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "allowedMemberTypes")] |
| 480 | 79 | | public IList<string> AllowedMemberTypes { get; set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets or sets permission help text that appears in the admin app |
| | 83 | | /// assignment and consent experiences. |
| | 84 | | /// </summary> |
| | 85 | | [JsonProperty(PropertyName = "description")] |
| 0 | 86 | | public string Description { get; set; } |
| | 87 | |
|
| | 88 | | /// <summary> |
| | 89 | | /// Gets or sets display name for the permission that appears in the |
| | 90 | | /// admin consent and app assignment experiences. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "displayName")] |
| 0 | 93 | | public string DisplayName { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets or sets when creating or updating a role definition, this must |
| | 97 | | /// be set to true (which is the default). To delete a role, this must |
| | 98 | | /// first be set to false. At that point, in a subsequent call, this |
| | 99 | | /// role may be removed. |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "isEnabled")] |
| 0 | 102 | | public bool? IsEnabled { get; set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets or sets specifies the value of the roles claim that the |
| | 106 | | /// application should expect in the authentication and access tokens. |
| | 107 | | /// </summary> |
| | 108 | | [JsonProperty(PropertyName = "value")] |
| 0 | 109 | | public string Value { get; set; } |
| | 110 | |
|
| | 111 | | } |
| | 112 | | } |