|
| 1 | +// ------------------------------------------------------------------------------ |
| 2 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 3 | +// ------------------------------------------------------------------------------ |
| 4 | + |
| 5 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 6 | +// <auto-generated/> |
| 7 | + |
| 8 | +// Template Source: Templates\CSharp\Model\EntityType.cs.tt |
| 9 | + |
| 10 | +namespace Microsoft.Graph |
| 11 | +{ |
| 12 | + using System; |
| 13 | + using System.Collections.Generic; |
| 14 | + using System.IO; |
| 15 | + using System.Runtime.Serialization; |
| 16 | + using Newtonsoft.Json; |
| 17 | + |
| 18 | + /// <summary> |
| 19 | + /// The type App Role Assignment. |
| 20 | + /// </summary> |
| 21 | + [JsonObject(MemberSerialization = MemberSerialization.OptIn)] |
| 22 | + public partial class AppRoleAssignment : DirectoryObject |
| 23 | + { |
| 24 | + |
| 25 | + ///<summary> |
| 26 | + /// The AppRoleAssignment constructor |
| 27 | + ///</summary> |
| 28 | + public AppRoleAssignment() |
| 29 | + { |
| 30 | + this.ODataType = "microsoft.graph.appRoleAssignment"; |
| 31 | + } |
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// Gets or sets app role id. |
| 35 | + /// The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. Does not support $filter. |
| 36 | + /// </summary> |
| 37 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "appRoleId", Required = Newtonsoft.Json.Required.Default)] |
| 38 | + public Guid? AppRoleId { get; set; } |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// Gets or sets created date time. |
| 42 | + /// </summary> |
| 43 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdDateTime", Required = Newtonsoft.Json.Required.Default)] |
| 44 | + public DateTimeOffset? CreatedDateTime { get; set; } |
| 45 | + |
| 46 | + /// <summary> |
| 47 | + /// Gets or sets principal display name. |
| 48 | + /// The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith). |
| 49 | + /// </summary> |
| 50 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalDisplayName", Required = Newtonsoft.Json.Required.Default)] |
| 51 | + public string PrincipalDisplayName { get; set; } |
| 52 | + |
| 53 | + /// <summary> |
| 54 | + /// Gets or sets principal id. |
| 55 | + /// The unique identifier (id) for the user, group or service principal being granted the app role. Required on create. Does not support $filter. |
| 56 | + /// </summary> |
| 57 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalId", Required = Newtonsoft.Json.Required.Default)] |
| 58 | + public Guid? PrincipalId { get; set; } |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// Gets or sets principal type. |
| 62 | + /// The type of the assigned principal. This can either be 'User', 'Group' or 'ServicePrincipal'. Read-only. Does not support $filter. |
| 63 | + /// </summary> |
| 64 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalType", Required = Newtonsoft.Json.Required.Default)] |
| 65 | + public string PrincipalType { get; set; } |
| 66 | + |
| 67 | + /// <summary> |
| 68 | + /// Gets or sets resource display name. |
| 69 | + /// The display name of the resource app's service principal to which the assignment is made. Does not support $filter. |
| 70 | + /// </summary> |
| 71 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceDisplayName", Required = Newtonsoft.Json.Required.Default)] |
| 72 | + public string ResourceDisplayName { get; set; } |
| 73 | + |
| 74 | + /// <summary> |
| 75 | + /// Gets or sets resource id. |
| 76 | + /// The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only). |
| 77 | + /// </summary> |
| 78 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceId", Required = Newtonsoft.Json.Required.Default)] |
| 79 | + public Guid? ResourceId { get; set; } |
| 80 | + |
| 81 | + } |
| 82 | +} |
| 83 | + |
0 commit comments