| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.DigitalTwins.Models |
| | 11 | | { |
| | 12 | | /// <summary> The result returned from a database check name availability request. </summary> |
| | 13 | | internal partial class CheckNameRequest |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of CheckNameRequest. </summary> |
| | 16 | | /// <param name="name"> Resource name. </param> |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> |
| 4 | 18 | | public CheckNameRequest(string name) |
| | 19 | | { |
| 4 | 20 | | if (name == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(name)); |
| | 23 | | } |
| | 24 | |
|
| 4 | 25 | | Name = name; |
| 4 | 26 | | Type = "Microsoft.DigitalTwins/digitalTwinsInstances"; |
| 4 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> Resource name. </summary> |
| 4 | 30 | | public string Name { get; } |
| | 31 | | /// <summary> The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances. </summary> |
| 4 | 32 | | public string Type { get; } |
| | 33 | | } |
| | 34 | | } |