MySql.NameAvailabilityTest Method

Definition

Overloads

NameAvailabilityTest(String, INameAvailabilityRequest, Func<HttpResponseMessage, Task<INameAvailability>,Task>, Func<HttpResponseMessage,Task<ICloudError>, Task>, IEventListener, ISendAsync)

Check the availability of name for resource

public System.Threading.Tasks.Task NameAvailabilityTest(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudError>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender);
member this.NameAvailabilityTest : string * Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudError>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function NameAvailabilityTest (subscriptionId As String, body As INameAvailabilityRequest, onOk As Func(Of HttpResponseMessage, Task(Of INameAvailability), Task), onDefault As Func(Of HttpResponseMessage, Task(Of ICloudError), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

subscriptionId
String

The ID of the target subscription.

body
INameAvailabilityRequest

The required parameters for checking if resource name is available.

onOk
Func<HttpResponseMessage,Task<INameAvailability>,Task>

a delegate that is called when the remote service returns 200 (OK).

onDefault
Func<HttpResponseMessage,Task<ICloudError>,Task>

a delegate that is called when the remote service returns default (any response code not handled elsewhere).

eventListener
IEventListener

an IEventListener instance that will receive events.

sender
ISendAsync

an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request.

Returns

A Task that will be complete when handling of the response is completed.

Applies to

NameAvailabilityTest(String, String, INameAvailabilityRequest, Func<HttpResponseMessage,Task<INameAvailability>,Task>, Func<HttpResponseMessage, Task<ICloudError>,Task>, IEventListener, ISendAsync, SerializationMode)

Check the availability of name for server

public System.Threading.Tasks.Task NameAvailabilityTest(string subscriptionId, string locationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.INameAvailabilityRequest body, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.INameAvailability>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.ICloudError>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeCreateOrUpdate);
member this.NameAvailabilityTest : string * string * Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.INameAvailabilityRequest * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.INameAvailability>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.ICloudError>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync * Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode -> System.Threading.Tasks.Task
Public Function NameAvailabilityTest (subscriptionId As String, locationName As String, body As INameAvailabilityRequest, onOk As Func(Of HttpResponseMessage, Task(Of INameAvailability), Task), onDefault As Func(Of HttpResponseMessage, Task(Of ICloudError), Task), eventListener As IEventListener, sender As ISendAsync, Optional serializationMode As SerializationMode = Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeCreateOrUpdate) As Task

Parameters

subscriptionId
String

The ID of the target subscription.

locationName
String

The name of the location.

body
INameAvailabilityRequest

The required parameters for checking if server name is available.

onOk
Func<HttpResponseMessage,Task<INameAvailability>,Task>

a delegate that is called when the remote service returns 200 (OK).

onDefault
Func<HttpResponseMessage,Task<ICloudError>,Task>

a delegate that is called when the remote service returns default (any response code not handled elsewhere).

eventListener
IEventListener

an IEventListener instance that will receive events.

sender
ISendAsync

an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request.

serializationMode
SerializationMode

Allows the caller to choose the depth of the serialization. See SerializationMode.

Returns

A Task that will be complete when handling of the response is completed.

Applies to