| | 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.AppConfiguration.Models |
| | 11 | | { |
| | 12 | | /// <summary> Parameters used for checking whether a resource name is available. </summary> |
| | 13 | | public partial class CheckNameAvailabilityParameters |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of CheckNameAvailabilityParameters. </summary> |
| | 16 | | /// <param name="name"> The name to check for availability. </param> |
| 0 | 17 | | public CheckNameAvailabilityParameters(string name) |
| | 18 | | { |
| 0 | 19 | | if (name == null) |
| | 20 | | { |
| 0 | 21 | | throw new ArgumentNullException(nameof(name)); |
| | 22 | | } |
| | 23 | |
|
| 0 | 24 | | Name = name; |
| 0 | 25 | | Type = "Microsoft.AppConfiguration/configurationStores"; |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of CheckNameAvailabilityParameters. </summary> |
| | 29 | | /// <param name="name"> The name to check for availability. </param> |
| | 30 | | /// <param name="type"> The resource type to check for name availability. </param> |
| 4 | 31 | | internal CheckNameAvailabilityParameters(string name, string type) |
| | 32 | | { |
| 4 | 33 | | Name = name; |
| 4 | 34 | | Type = type; |
| 4 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> The name to check for availability. </summary> |
| 4 | 38 | | public string Name { get; } |
| | 39 | | /// <summary> The resource type to check for name availability. </summary> |
| 4 | 40 | | public string Type { get; } |
| | 41 | | } |
| | 42 | | } |