Share via


ManagementGroupNameAvailabilityResult Class

Definition

Describes the result of the request to check management group name availability.

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

Properties

Message

Required if nameAvailable == false. Localized. 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 is already in use, and direct them to select a different name.

NameAvailable

Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.

Reason

Required if nameAvailable == false. 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.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ManagementGroupNameAvailabilityResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ManagementGroupNameAvailabilityResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ManagementGroupNameAvailabilityResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ManagementGroupNameAvailabilityResult>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ManagementGroupNameAvailabilityResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to