ArmSqlModelFactory.SqlNameAvailabilityResponse Method

Definition

Initializes a new instance of SqlNameAvailabilityResponse.

public static Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse SqlNameAvailabilityResponse (string name = default, bool? isAvailable = default, Azure.ResourceManager.Sql.Models.SqlNameUnavailableReason? reason = default, string message = default);
static member SqlNameAvailabilityResponse : string * Nullable<bool> * Nullable<Azure.ResourceManager.Sql.Models.SqlNameUnavailableReason> * string -> Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse
Public Shared Function SqlNameAvailabilityResponse (Optional name As String = Nothing, Optional isAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of SqlNameUnavailableReason) = Nothing, Optional message As String = Nothing) As SqlNameAvailabilityResponse

Parameters

name
String

The name whose availability was checked.

isAvailable
Nullable<Boolean>

True if the name is available, otherwise false.

reason
Nullable<SqlNameUnavailableReason>

The reason code explaining why the name is unavailable. Will be undefined if the name is available.

message
String

A message explaining why the name is unavailable. Will be undefined if the name is available.

Returns

A new SqlNameAvailabilityResponse instance for mocking.

Applies to