ResourceNameAvailability Class

Definition

Information regarding availability of a resource name.

public class ResourceNameAvailability : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AppService.Models.ResourceNameAvailability>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AppService.Models.ResourceNameAvailability>
type ResourceNameAvailability = class
    interface IJsonModel<ResourceNameAvailability>
    interface IPersistableModel<ResourceNameAvailability>
Public Class ResourceNameAvailability
Implements IJsonModel(Of ResourceNameAvailability), IPersistableModel(Of ResourceNameAvailability)
Inheritance
ResourceNameAvailability
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<ResourceNameAvailability>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ResourceNameAvailability>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ResourceNameAvailability>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ResourceNameAvailability>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ResourceNameAvailability>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to