| | | 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 | | /// <summary> |
| | | 19 | | /// Active Directory group information. |
| | | 20 | | /// </summary> |
| | | 21 | | [Newtonsoft.Json.JsonObject("Group")] |
| | | 22 | | public partial class ADGroup : DirectoryObject |
| | | 23 | | { |
| | | 24 | | /// <summary> |
| | | 25 | | /// Initializes a new instance of the ADGroup class. |
| | | 26 | | /// </summary> |
| | 610 | 27 | | public ADGroup() |
| | | 28 | | { |
| | | 29 | | CustomInit(); |
| | 610 | 30 | | } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Initializes a new instance of the ADGroup class. |
| | | 34 | | /// </summary> |
| | | 35 | | /// <param name="additionalProperties">Unmatched properties from the |
| | | 36 | | /// message are deserialized this collection</param> |
| | | 37 | | /// <param name="objectId">The object ID.</param> |
| | | 38 | | /// <param name="deletionTimestamp">The time at which the directory |
| | | 39 | | /// object was deleted.</param> |
| | | 40 | | /// <param name="displayName">The display name of the group.</param> |
| | | 41 | | /// <param name="mailEnabled">Whether the group is mail-enabled. Must |
| | | 42 | | /// be false. This is because only pure security groups can be created |
| | | 43 | | /// using the Graph API.</param> |
| | | 44 | | /// <param name="mailNickname">The mail alias for the group. </param> |
| | | 45 | | /// <param name="securityEnabled">Whether the group is |
| | | 46 | | /// security-enable.</param> |
| | | 47 | | /// <param name="mail">The primary email address of the group.</param> |
| | | 48 | | public ADGroup(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string o |
| | 0 | 49 | | : base(additionalProperties, objectId, deletionTimestamp) |
| | | 50 | | { |
| | 0 | 51 | | DisplayName = displayName; |
| | 0 | 52 | | MailEnabled = mailEnabled; |
| | 0 | 53 | | MailNickname = mailNickname; |
| | 0 | 54 | | SecurityEnabled = securityEnabled; |
| | 0 | 55 | | Mail = mail; |
| | | 56 | | CustomInit(); |
| | 0 | 57 | | } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// An initialization method that performs custom operations like setting defaults |
| | | 61 | | /// </summary> |
| | | 62 | | partial void CustomInit(); |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Gets or sets the display name of the group. |
| | | 66 | | /// </summary> |
| | | 67 | | [JsonProperty(PropertyName = "displayName")] |
| | 612 | 68 | | public string DisplayName { get; set; } |
| | | 69 | | |
| | | 70 | | /// <summary> |
| | | 71 | | /// Gets or sets whether the group is mail-enabled. Must be false. This |
| | | 72 | | /// is because only pure security groups can be created using the Graph |
| | | 73 | | /// API. |
| | | 74 | | /// </summary> |
| | | 75 | | [JsonProperty(PropertyName = "mailEnabled")] |
| | 0 | 76 | | public bool? MailEnabled { get; set; } |
| | | 77 | | |
| | | 78 | | /// <summary> |
| | | 79 | | /// Gets or sets the mail alias for the group. |
| | | 80 | | /// </summary> |
| | | 81 | | [JsonProperty(PropertyName = "mailNickname")] |
| | 0 | 82 | | public string MailNickname { get; set; } |
| | | 83 | | |
| | | 84 | | /// <summary> |
| | | 85 | | /// Gets or sets whether the group is security-enable. |
| | | 86 | | /// </summary> |
| | | 87 | | [JsonProperty(PropertyName = "securityEnabled")] |
| | 810 | 88 | | public bool? SecurityEnabled { get; set; } |
| | | 89 | | |
| | | 90 | | /// <summary> |
| | | 91 | | /// Gets or sets the primary email address of the group. |
| | | 92 | | /// </summary> |
| | | 93 | | [JsonProperty(PropertyName = "mail")] |
| | 0 | 94 | | public string Mail { get; set; } |
| | | 95 | | |
| | | 96 | | } |
| | | 97 | | } |