WebhooksInner.beginCreateAsync Method

Definition

Overloads

beginCreateAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

Creates a webhook for a container registry with the specified parameters.

beginCreateAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters, final ServiceCallback<WebhookInner> serviceCallback)

Creates a webhook for a container registry with the specified parameters.

beginCreateAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

Creates a webhook for a container registry with the specified parameters.

public Observable<WebhookInner> beginCreateAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

Parameters

resourceGroupName
String

The name of the resource group to which the container registry belongs.

registryName
String

The name of the container registry.

webhookName
String

The name of the webhook.

webhookCreateParameters
WebhookCreateParameters

The parameters for creating a webhook.

Returns

Observable<WebhookInner>

the observable to the WebhookInner object

Exceptions

IllegalArgumentException

thrown if parameters fail the validation

beginCreateAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters, final ServiceCallback<WebhookInner> serviceCallback)

Creates a webhook for a container registry with the specified parameters.

public ServiceFuture<WebhookInner> beginCreateAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters, final ServiceCallback<WebhookInner> serviceCallback)

Parameters

resourceGroupName
String

The name of the resource group to which the container registry belongs.

registryName
String

The name of the container registry.

webhookName
String

The name of the webhook.

webhookCreateParameters
WebhookCreateParameters

The parameters for creating a webhook.

serviceCallback
final ServiceCallback<WebhookInner>

the async ServiceCallback to handle successful and failed responses.

Returns

ServiceFuture<WebhookInner>

the ServiceFuture object

Exceptions

IllegalArgumentException

thrown if parameters fail the validation

Applies to