Share via


AppServiceNameAvailabilityResult Class

Definition

Information regarding availability of a resource name.

public class AppServiceNameAvailabilityResult : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityResult>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityResult>
type AppServiceNameAvailabilityResult = class
    interface IJsonModel<AppServiceNameAvailabilityResult>
    interface IPersistableModel<AppServiceNameAvailabilityResult>
Public Class AppServiceNameAvailabilityResult
Implements IJsonModel(Of AppServiceNameAvailabilityResult), IPersistableModel(Of AppServiceNameAvailabilityResult)
Inheritance
AppServiceNameAvailabilityResult
Implements

Properties

IsNameAvailable

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

Message

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.

Reason

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AppServiceNameAvailabilityResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AppServiceNameAvailabilityResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AppServiceNameAvailabilityResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AppServiceNameAvailabilityResult>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AppServiceNameAvailabilityResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to