Share via


SearchServiceNameAvailabilityResult Class

Definition

Output of check name availability API.

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

Properties

IsNameAvailable

A value indicating whether the name is available.

Message

A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property.

Reason

The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable.

Explicit Interface Implementations

IJsonModel<SearchServiceNameAvailabilityResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SearchServiceNameAvailabilityResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SearchServiceNameAvailabilityResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SearchServiceNameAvailabilityResult>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SearchServiceNameAvailabilityResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to