| | 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 user information. |
| | 20 | | /// </summary> |
| | 21 | | public partial class User : DirectoryObject |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the User class. |
| | 25 | | /// </summary> |
| 812 | 26 | | public User() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 812 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the User class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="additionalProperties">Unmatched properties from the |
| | 35 | | /// message are deserialized this collection</param> |
| | 36 | | /// <param name="objectId">The object ID.</param> |
| | 37 | | /// <param name="deletionTimestamp">The time at which the directory |
| | 38 | | /// object was deleted.</param> |
| | 39 | | /// <param name="immutableId">This must be specified if you are using a |
| | 40 | | /// federated domain for the user's userPrincipalName (UPN) property |
| | 41 | | /// when creating a new user account. It is used to associate an |
| | 42 | | /// on-premises Active Directory user account with their Azure AD user |
| | 43 | | /// object.</param> |
| | 44 | | /// <param name="usageLocation">A two letter country code (ISO standard |
| | 45 | | /// 3166). Required for users that will be assigned licenses due to |
| | 46 | | /// legal requirement to check for availability of services in |
| | 47 | | /// countries. Examples include: "US", "JP", and "GB".</param> |
| | 48 | | /// <param name="givenName">The given name for the user.</param> |
| | 49 | | /// <param name="surname">The user's surname (family name or last |
| | 50 | | /// name).</param> |
| | 51 | | /// <param name="userType">A string value that can be used to classify |
| | 52 | | /// user types in your directory, such as 'Member' and 'Guest'. |
| | 53 | | /// Possible values include: 'Member', 'Guest'</param> |
| | 54 | | /// <param name="accountEnabled">Whether the account is |
| | 55 | | /// enabled.</param> |
| | 56 | | /// <param name="displayName">The display name of the user.</param> |
| | 57 | | /// <param name="userPrincipalName">The principal name of the |
| | 58 | | /// user.</param> |
| | 59 | | /// <param name="mailNickname">The mail alias for the user.</param> |
| | 60 | | /// <param name="mail">The primary email address of the user.</param> |
| | 61 | | /// <param name="signInNames">The sign-in names of the user.</param> |
| | 62 | | public User(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string obje |
| 0 | 63 | | : base(additionalProperties, objectId, deletionTimestamp) |
| | 64 | | { |
| 0 | 65 | | ImmutableId = immutableId; |
| 0 | 66 | | UsageLocation = usageLocation; |
| 0 | 67 | | GivenName = givenName; |
| 0 | 68 | | Surname = surname; |
| 0 | 69 | | UserType = userType; |
| 0 | 70 | | AccountEnabled = accountEnabled; |
| 0 | 71 | | DisplayName = displayName; |
| 0 | 72 | | UserPrincipalName = userPrincipalName; |
| 0 | 73 | | MailNickname = mailNickname; |
| 0 | 74 | | Mail = mail; |
| 0 | 75 | | SignInNames = signInNames; |
| | 76 | | CustomInit(); |
| 0 | 77 | | } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// An initialization method that performs custom operations like setting defaults |
| | 81 | | /// </summary> |
| | 82 | | partial void CustomInit(); |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets this must be specified if you are using a federated |
| | 86 | | /// domain for the user's userPrincipalName (UPN) property when |
| | 87 | | /// creating a new user account. It is used to associate an on-premises |
| | 88 | | /// Active Directory user account with their Azure AD user object. |
| | 89 | | /// </summary> |
| | 90 | | [JsonProperty(PropertyName = "immutableId")] |
| 0 | 91 | | public string ImmutableId { get; set; } |
| | 92 | |
|
| | 93 | | /// <summary> |
| | 94 | | /// Gets or sets a two letter country code (ISO standard 3166). |
| | 95 | | /// Required for users that will be assigned licenses due to legal |
| | 96 | | /// requirement to check for availability of services in countries. |
| | 97 | | /// Examples include: "US", "JP", and "GB". |
| | 98 | | /// </summary> |
| | 99 | | [JsonProperty(PropertyName = "usageLocation")] |
| 0 | 100 | | public string UsageLocation { get; set; } |
| | 101 | |
|
| | 102 | | /// <summary> |
| | 103 | | /// Gets or sets the given name for the user. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "givenName")] |
| 0 | 106 | | public string GivenName { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Gets or sets the user's surname (family name or last name). |
| | 110 | | /// </summary> |
| | 111 | | [JsonProperty(PropertyName = "surname")] |
| 0 | 112 | | public string Surname { get; set; } |
| | 113 | |
|
| | 114 | | /// <summary> |
| | 115 | | /// Gets or sets a string value that can be used to classify user types |
| | 116 | | /// in your directory, such as 'Member' and 'Guest'. Possible values |
| | 117 | | /// include: 'Member', 'Guest' |
| | 118 | | /// </summary> |
| | 119 | | [JsonProperty(PropertyName = "userType")] |
| 0 | 120 | | public string UserType { get; set; } |
| | 121 | |
|
| | 122 | | /// <summary> |
| | 123 | | /// Gets or sets whether the account is enabled. |
| | 124 | | /// </summary> |
| | 125 | | [JsonProperty(PropertyName = "accountEnabled")] |
| 0 | 126 | | public bool? AccountEnabled { get; set; } |
| | 127 | |
|
| | 128 | | /// <summary> |
| | 129 | | /// Gets or sets the display name of the user. |
| | 130 | | /// </summary> |
| | 131 | | [JsonProperty(PropertyName = "displayName")] |
| 816 | 132 | | public string DisplayName { get; set; } |
| | 133 | |
|
| | 134 | | /// <summary> |
| | 135 | | /// Gets or sets the principal name of the user. |
| | 136 | | /// </summary> |
| | 137 | | [JsonProperty(PropertyName = "userPrincipalName")] |
| 1018 | 138 | | public string UserPrincipalName { get; set; } |
| | 139 | |
|
| | 140 | | /// <summary> |
| | 141 | | /// Gets or sets the mail alias for the user. |
| | 142 | | /// </summary> |
| | 143 | | [JsonProperty(PropertyName = "mailNickname")] |
| 0 | 144 | | public string MailNickname { get; set; } |
| | 145 | |
|
| | 146 | | /// <summary> |
| | 147 | | /// Gets or sets the primary email address of the user. |
| | 148 | | /// </summary> |
| | 149 | | [JsonProperty(PropertyName = "mail")] |
| 0 | 150 | | public string Mail { get; set; } |
| | 151 | |
|
| | 152 | | /// <summary> |
| | 153 | | /// Gets or sets the sign-in names of the user. |
| | 154 | | /// </summary> |
| | 155 | | [JsonProperty(PropertyName = "signInNames")] |
| 0 | 156 | | public IList<SignInName> SignInNames { get; set; } |
| | 157 | |
|
| | 158 | | } |
| | 159 | | } |