| | 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 | | /// Request parameters for updating an existing work or school account |
| | 20 | | /// user. |
| | 21 | | /// </summary> |
| | 22 | | public partial class UserUpdateParameters : UserBase |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the UserUpdateParameters class. |
| | 26 | | /// </summary> |
| 0 | 27 | | public UserUpdateParameters() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the UserUpdateParameters class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="additionalProperties">Unmatched properties from the |
| | 36 | | /// message are deserialized this collection</param> |
| | 37 | | /// <param name="immutableId">This must be specified if you are using a |
| | 38 | | /// federated domain for the user's userPrincipalName (UPN) property |
| | 39 | | /// when creating a new user account. It is used to associate an |
| | 40 | | /// on-premises Active Directory user account with their Azure AD user |
| | 41 | | /// object.</param> |
| | 42 | | /// <param name="usageLocation">A two letter country code (ISO standard |
| | 43 | | /// 3166). Required for users that will be assigned licenses due to |
| | 44 | | /// legal requirement to check for availability of services in |
| | 45 | | /// countries. Examples include: "US", "JP", and "GB".</param> |
| | 46 | | /// <param name="givenName">The given name for the user.</param> |
| | 47 | | /// <param name="surname">The user's surname (family name or last |
| | 48 | | /// name).</param> |
| | 49 | | /// <param name="userType">A string value that can be used to classify |
| | 50 | | /// user types in your directory, such as 'Member' and 'Guest'. |
| | 51 | | /// Possible values include: 'Member', 'Guest'</param> |
| | 52 | | /// <param name="accountEnabled">Whether the account is |
| | 53 | | /// enabled.</param> |
| | 54 | | /// <param name="displayName">The display name of the user.</param> |
| | 55 | | /// <param name="passwordProfile">The password profile of the |
| | 56 | | /// user.</param> |
| | 57 | | /// <param name="userPrincipalName">The user principal name |
| | 58 | | /// (someuser@contoso.com). It must contain one of the verified domains |
| | 59 | | /// for the tenant.</param> |
| | 60 | | /// <param name="mailNickname">The mail alias for the user.</param> |
| | 61 | | public UserUpdateParameters(IDictionary<string, object> additionalProperties = default(IDictionary<string, objec |
| 0 | 62 | | : base(additionalProperties, immutableId, usageLocation, givenName, surname, userType) |
| | 63 | | { |
| 0 | 64 | | AccountEnabled = accountEnabled; |
| 0 | 65 | | DisplayName = displayName; |
| 0 | 66 | | PasswordProfile = passwordProfile; |
| 0 | 67 | | UserPrincipalName = userPrincipalName; |
| 0 | 68 | | MailNickname = mailNickname; |
| | 69 | | CustomInit(); |
| 0 | 70 | | } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// An initialization method that performs custom operations like setting defaults |
| | 74 | | /// </summary> |
| | 75 | | partial void CustomInit(); |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets whether the account is enabled. |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "accountEnabled")] |
| 0 | 81 | | public bool? AccountEnabled { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets the display name of the user. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "displayName")] |
| 0 | 87 | | public string DisplayName { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the password profile of the user. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "passwordProfile")] |
| 0 | 93 | | public PasswordProfile PasswordProfile { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets or sets the user principal name (someuser@contoso.com). It |
| | 97 | | /// must contain one of the verified domains for the tenant. |
| | 98 | | /// </summary> |
| | 99 | | [JsonProperty(PropertyName = "userPrincipalName")] |
| 0 | 100 | | public string UserPrincipalName { get; set; } |
| | 101 | |
|
| | 102 | | /// <summary> |
| | 103 | | /// Gets or sets the mail alias for the user. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "mailNickname")] |
| 0 | 106 | | public string MailNickname { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Validate the object. |
| | 110 | | /// </summary> |
| | 111 | | /// <exception cref="Rest.ValidationException"> |
| | 112 | | /// Thrown if validation fails |
| | 113 | | /// </exception> |
| | 114 | | public virtual void Validate() |
| | 115 | | { |
| 0 | 116 | | if (PasswordProfile != null) |
| | 117 | | { |
| 0 | 118 | | PasswordProfile.Validate(); |
| | 119 | | } |
| 0 | 120 | | } |
| | 121 | | } |
| | 122 | | } |