| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | namespace Azure.ResourceManager.DigitalTwins.Models |
| | 9 | | { |
| | 10 | | /// <summary> The result returned from a check name availability request. </summary> |
| | 11 | | public partial class CheckNameResult |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of CheckNameResult. </summary> |
| 0 | 14 | | internal CheckNameResult() |
| | 15 | | { |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | /// <summary> Initializes a new instance of CheckNameResult. </summary> |
| | 19 | | /// <param name="nameAvailable"> Specifies a Boolean value that indicates if the name is available. </param> |
| | 20 | | /// <param name="name"> The name that was checked. </param> |
| | 21 | | /// <param name="message"> Message indicating an unavailable name due to a conflict, or a description of the nam |
| | 22 | | /// <param name="reason"> Message providing the reason why the given name is invalid. </param> |
| 4 | 23 | | internal CheckNameResult(bool? nameAvailable, string name, string message, Reason? reason) |
| | 24 | | { |
| 4 | 25 | | NameAvailable = nameAvailable; |
| 4 | 26 | | Name = name; |
| 4 | 27 | | Message = message; |
| 4 | 28 | | Reason = reason; |
| 4 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> Specifies a Boolean value that indicates if the name is available. </summary> |
| 0 | 32 | | public bool? NameAvailable { get; } |
| | 33 | | /// <summary> The name that was checked. </summary> |
| 0 | 34 | | public string Name { get; } |
| | 35 | | /// <summary> Message indicating an unavailable name due to a conflict, or a description of the naming rules tha |
| 0 | 36 | | public string Message { get; } |
| | 37 | | /// <summary> Message providing the reason why the given name is invalid. </summary> |
| 0 | 38 | | public Reason? Reason { get; } |
| | 39 | | } |
| | 40 | | } |