ArmAppServiceModelFactory.DnlResourceNameAvailabilityResult Method

Definition

Initializes a new instance of DnlResourceNameAvailabilityResult.

public static Azure.ResourceManager.AppService.Models.DnlResourceNameAvailabilityResult DnlResourceNameAvailabilityResult(string hostName = default, bool? nameAvailable = default, Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason? reason = default, string message = default);
static member DnlResourceNameAvailabilityResult : string * Nullable<bool> * Nullable<Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason> * string -> Azure.ResourceManager.AppService.Models.DnlResourceNameAvailabilityResult
Public Shared Function DnlResourceNameAvailabilityResult (Optional hostName As String = Nothing, Optional nameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of AppServiceNameUnavailableReason) = Nothing, Optional message As String = Nothing) As DnlResourceNameAvailabilityResult

Parameters

hostName
String

Serialized Name: DnlResourceNameAvailability.hostName.

nameAvailable
Nullable<Boolean>

<code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. Serialized Name: DnlResourceNameAvailability.nameAvailable

reason
Nullable<AppServiceNameUnavailableReason>

<code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. Serialized Name: DnlResourceNameAvailability.reason

message
String

If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. Serialized Name: DnlResourceNameAvailability.message

Returns

A new DnlResourceNameAvailabilityResult instance for mocking.

Applies to