Share via


ApiManagementServiceNameAvailabilityResult Class

Definition

Response of the CheckNameAvailability operation.

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

Properties

IsNameAvailable

True if the name is available and can be used to create a new API Management service; otherwise false.

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 <resourceName> is already in use, and direct them to select a different name.

Reason

Invalid indicates the name provided does not match the resource provider’s naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable.

Explicit Interface Implementations

IJsonModel<ApiManagementServiceNameAvailabilityResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ApiManagementServiceNameAvailabilityResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ApiManagementServiceNameAvailabilityResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ApiManagementServiceNameAvailabilityResult>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ApiManagementServiceNameAvailabilityResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to