| | | 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.Management.Search.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Output of check name availability API. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class CheckNameAvailabilityOutput |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the CheckNameAvailabilityOutput |
| | | 23 | | /// class. |
| | | 24 | | /// </summary> |
| | 0 | 25 | | public CheckNameAvailabilityOutput() |
| | | 26 | | { |
| | | 27 | | CustomInit(); |
| | 0 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the CheckNameAvailabilityOutput |
| | | 32 | | /// class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="isNameAvailable">A value indicating whether the name |
| | | 35 | | /// is available.</param> |
| | | 36 | | /// <param name="reason">The reason why the name is not available. |
| | | 37 | | /// 'Invalid' indicates the name provided does not match the naming |
| | | 38 | | /// requirements (incorrect length, unsupported characters, etc.). |
| | | 39 | | /// 'AlreadyExists' indicates that the name is already in use and is |
| | | 40 | | /// therefore unavailable. Possible values include: 'Invalid', |
| | | 41 | | /// 'AlreadyExists'</param> |
| | | 42 | | /// <param name="message">A message that explains why the name is |
| | | 43 | | /// invalid and provides resource naming requirements. Available only |
| | | 44 | | /// if 'Invalid' is returned in the 'reason' property.</param> |
| | 0 | 45 | | public CheckNameAvailabilityOutput(bool? isNameAvailable = default(bool?), string reason = default(string), stri |
| | | 46 | | { |
| | 0 | 47 | | IsNameAvailable = isNameAvailable; |
| | 0 | 48 | | Reason = reason; |
| | 0 | 49 | | Message = message; |
| | | 50 | | CustomInit(); |
| | 0 | 51 | | } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// An initialization method that performs custom operations like setting defaults |
| | | 55 | | /// </summary> |
| | | 56 | | partial void CustomInit(); |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Gets a value indicating whether the name is available. |
| | | 60 | | /// </summary> |
| | | 61 | | [JsonProperty(PropertyName = "nameAvailable")] |
| | 0 | 62 | | public bool? IsNameAvailable { get; private set; } |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Gets the reason why the name is not available. 'Invalid' indicates |
| | | 66 | | /// the name provided does not match the naming requirements (incorrect |
| | | 67 | | /// length, unsupported characters, etc.). 'AlreadyExists' indicates |
| | | 68 | | /// that the name is already in use and is therefore unavailable. |
| | | 69 | | /// Possible values include: 'Invalid', 'AlreadyExists' |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "reason")] |
| | 0 | 72 | | public string Reason { get; private set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Gets a message that explains why the name is invalid and provides |
| | | 76 | | /// resource naming requirements. Available only if 'Invalid' is |
| | | 77 | | /// returned in the 'reason' property. |
| | | 78 | | /// </summary> |
| | | 79 | | [JsonProperty(PropertyName = "message")] |
| | 0 | 80 | | public string Message { get; private set; } |
| | | 81 | | |
| | | 82 | | } |
| | | 83 | | } |