| | 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 Microsoft.Rest; |
| | 14 | | using Newtonsoft.Json; |
| | 15 | | using System.Collections; |
| | 16 | | using System.Collections.Generic; |
| | 17 | | using System.Linq; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Request parameters for a PasswordCredentials update operation. |
| | 21 | | /// </summary> |
| | 22 | | public partial class PasswordCredentialsUpdateParameters |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the |
| | 26 | | /// PasswordCredentialsUpdateParameters class. |
| | 27 | | /// </summary> |
| 0 | 28 | | public PasswordCredentialsUpdateParameters() |
| | 29 | | { |
| | 30 | | CustomInit(); |
| 0 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the |
| | 35 | | /// PasswordCredentialsUpdateParameters class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="value">A collection of PasswordCredentials.</param> |
| 0 | 38 | | public PasswordCredentialsUpdateParameters(IList<PasswordCredential> value) |
| | 39 | | { |
| 0 | 40 | | Value = value; |
| | 41 | | CustomInit(); |
| 0 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets or sets a collection of PasswordCredentials. |
| | 51 | | /// </summary> |
| | 52 | | [JsonProperty(PropertyName = "value")] |
| 0 | 53 | | public IList<PasswordCredential> Value { get; set; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Validate the object. |
| | 57 | | /// </summary> |
| | 58 | | /// <exception cref="ValidationException"> |
| | 59 | | /// Thrown if validation fails |
| | 60 | | /// </exception> |
| | 61 | | public virtual void Validate() |
| | 62 | | { |
| 0 | 63 | | if (Value == null) |
| | 64 | | { |
| 0 | 65 | | throw new ValidationException(ValidationRules.CannotBeNull, "Value"); |
| | 66 | | } |
| 0 | 67 | | } |
| | 68 | | } |
| | 69 | | } |