Compartilhar via


ArmAppServiceModelFactory.ResourceNameAvailability Method

Definition

Initializes a new instance of ResourceNameAvailability.

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

Parameters

isNameAvailable
Nullable<Boolean>

<code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both.

reason
Nullable<InAvailabilityReasonType>

<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.

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.

Returns

A new ResourceNameAvailability instance for mocking.

Applies to