WebhooksInner Class

  • java.lang.Object
    • com.microsoft.azure.management.containerregistry.implementation.WebhooksInner

public class WebhooksInner

An instance of this class provides access to all the operations defined in Webhooks.

Constructor Summary

Constructor Description
WebhooksInner(Retrofit retrofit, ContainerRegistryManagementClientImpl client)

Initializes an instance of WebhooksInner.

Method Summary

Modifier and Type Method and Description
WebhookInner beginCreate(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

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

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

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

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

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

Observable<ServiceResponse<WebhookInner>> beginCreateWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

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

void beginDelete(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Observable<Void> beginDeleteAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback<Void> serviceCallback)

Deletes a webhook from a container registry.

Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

WebhookInner beginUpdate(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Observable<WebhookInner> beginUpdateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

ServiceFuture<WebhookInner> beginUpdateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters, final ServiceCallback<WebhookInner> serviceCallback)

Updates a webhook with the specified parameters.

Observable<ServiceResponse<WebhookInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

WebhookInner create(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

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

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

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

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

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

Observable<ServiceResponse<WebhookInner>> createWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

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

void delete(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Observable<Void> deleteAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

ServiceFuture<Void> deleteAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback<Void> serviceCallback)

Deletes a webhook from a container registry.

Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

WebhookInner get(String resourceGroupName, String registryName, String webhookName)

Gets the properties of the specified webhook.

Observable<WebhookInner> getAsync(String resourceGroupName, String registryName, String webhookName)

Gets the properties of the specified webhook.

ServiceFuture<WebhookInner> getAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback<WebhookInner> serviceCallback)

Gets the properties of the specified webhook.

CallbackConfigInner getCallbackConfig(String resourceGroupName, String registryName, String webhookName)

Gets the configuration of service URI and custom headers for the webhook.

Observable<CallbackConfigInner> getCallbackConfigAsync(String resourceGroupName, String registryName, String webhookName)

Gets the configuration of service URI and custom headers for the webhook.

ServiceFuture<CallbackConfigInner> getCallbackConfigAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback<CallbackConfigInner> serviceCallback)

Gets the configuration of service URI and custom headers for the webhook.

Observable<ServiceResponse<CallbackConfigInner>> getCallbackConfigWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Gets the configuration of service URI and custom headers for the webhook.

Observable<ServiceResponse<WebhookInner>> getWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Gets the properties of the specified webhook.

PagedList<WebhookInner> list(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

Observable<Page<WebhookInner>> listAsync(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

ServiceFuture<List<WebhookInner>> listAsync(final String resourceGroupName, final String registryName, final ListOperationCallback<WebhookInner> serviceCallback)

Lists all the webhooks for the specified container registry.

PagedList<EventInner> listEvents(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

Observable<Page<EventInner>> listEventsAsync(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

ServiceFuture<List<EventInner>> listEventsAsync(final String resourceGroupName, final String registryName, final String webhookName, final ListOperationCallback<EventInner> serviceCallback)

Lists recent events for the specified webhook.

PagedList<EventInner> listEventsNext(final String nextPageLink)

Lists recent events for the specified webhook.

Observable<Page<EventInner>> listEventsNextAsync(final String nextPageLink)

Lists recent events for the specified webhook.

ServiceFuture<List<EventInner>> listEventsNextAsync(final String nextPageLink, final ServiceFuture<List<EventInner>> serviceFuture, final ListOperationCallback<EventInner> serviceCallback)

Lists recent events for the specified webhook.

Observable<ServiceResponse<Page<EventInner>>> listEventsNextSinglePageAsync(final String nextPageLink)

Lists recent events for the specified webhook.

ServiceResponse<PageImpl<EventInner>> *

Observable<ServiceResponse<Page<EventInner>>> listEventsNextWithServiceResponseAsync(final String nextPageLink)

Lists recent events for the specified webhook.

Observable<ServiceResponse<Page<EventInner>>> listEventsSinglePageAsync(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

ServiceResponse<PageImpl<EventInner>> *

Observable<ServiceResponse<Page<EventInner>>> listEventsWithServiceResponseAsync(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

PagedList<WebhookInner> listNext(final String nextPageLink)

Lists all the webhooks for the specified container registry.

Observable<Page<WebhookInner>> listNextAsync(final String nextPageLink)

Lists all the webhooks for the specified container registry.

ServiceFuture<List<WebhookInner>> listNextAsync(final String nextPageLink, final ServiceFuture<List<WebhookInner>> serviceFuture, final ListOperationCallback<WebhookInner> serviceCallback)

Lists all the webhooks for the specified container registry.

Observable<ServiceResponse<Page<WebhookInner>>> listNextSinglePageAsync(final String nextPageLink)

Lists all the webhooks for the specified container registry.

ServiceResponse<PageImpl<WebhookInner>> *

Observable<ServiceResponse<Page<WebhookInner>>> listNextWithServiceResponseAsync(final String nextPageLink)

Lists all the webhooks for the specified container registry.

Observable<ServiceResponse<Page<WebhookInner>>> listSinglePageAsync(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

ServiceResponse<PageImpl<WebhookInner>> *

Observable<ServiceResponse<Page<WebhookInner>>> listWithServiceResponseAsync(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

EventInfoInner ping(String resourceGroupName, String registryName, String webhookName)

Triggers a ping event to be sent to the webhook.

Observable<EventInfoInner> pingAsync(String resourceGroupName, String registryName, String webhookName)

Triggers a ping event to be sent to the webhook.

ServiceFuture<EventInfoInner> pingAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback<EventInfoInner> serviceCallback)

Triggers a ping event to be sent to the webhook.

Observable<ServiceResponse<EventInfoInner>> pingWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Triggers a ping event to be sent to the webhook.

WebhookInner update(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Observable<WebhookInner> updateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

ServiceFuture<WebhookInner> updateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters, final ServiceCallback<WebhookInner> serviceCallback)

Updates a webhook with the specified parameters.

Observable<ServiceResponse<WebhookInner>> updateWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Constructor Details

WebhooksInner

public WebhooksInner(Retrofit retrofit, ContainerRegistryManagementClientImpl client)

Initializes an instance of WebhooksInner.

Parameters:

retrofit - the Retrofit instance built from a Retrofit Builder.
client - the instance of the service client containing this operation class.

Method Details

beginCreate

public WebhookInner beginCreate(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.

Returns:

the WebhookInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

beginCreateAsync

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

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.

Returns:

the observable to the WebhookInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginCreateAsync

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

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginCreateWithServiceResponseAsync

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

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.

Returns:

the observable to the WebhookInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginDelete

public void beginDelete(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

beginDeleteAsync

public Observable beginDeleteAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginDeleteAsync

public ServiceFuture beginDeleteAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback serviceCallback)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginDeleteWithServiceResponseAsync

public Observable<>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginUpdate

public WebhookInner beginUpdate(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.

Returns:

the WebhookInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

beginUpdateAsync

public Observable beginUpdateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.

Returns:

the observable to the WebhookInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginUpdateAsync

public ServiceFuture beginUpdateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters, final ServiceCallback serviceCallback)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginUpdateWithServiceResponseAsync

public Observable<>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.

Returns:

the observable to the WebhookInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

create

public WebhookInner create(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.

Returns:

the WebhookInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

createAsync

public Observable createAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters)

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

public ServiceFuture createAsync(String resourceGroupName, String registryName, String webhookName, WebhookCreateParameters webhookCreateParameters, final ServiceCallback serviceCallback)

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createWithServiceResponseAsync

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

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

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookCreateParameters - The parameters for creating a webhook.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

deleteAsync

public Observable deleteAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback serviceCallback)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteWithServiceResponseAsync

public Observable<>> deleteWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Deletes a webhook from a container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public WebhookInner get(String resourceGroupName, String registryName, String webhookName)

Gets the properties of the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the WebhookInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getAsync

public Observable getAsync(String resourceGroupName, String registryName, String webhookName)

Gets the properties of the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the WebhookInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback serviceCallback)

Gets the properties of the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getCallbackConfig

public CallbackConfigInner getCallbackConfig(String resourceGroupName, String registryName, String webhookName)

Gets the configuration of service URI and custom headers for the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the CallbackConfigInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getCallbackConfigAsync

public Observable getCallbackConfigAsync(String resourceGroupName, String registryName, String webhookName)

Gets the configuration of service URI and custom headers for the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the CallbackConfigInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getCallbackConfigAsync

public ServiceFuture getCallbackConfigAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback serviceCallback)

Gets the configuration of service URI and custom headers for the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getCallbackConfigWithServiceResponseAsync

public Observable<>> getCallbackConfigWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Gets the configuration of service URI and custom headers for the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the CallbackConfigInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable<>> getWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Gets the properties of the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the WebhookInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public PagedList list(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

Parameters:

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

Returns:

the PagedList<WebhookInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listAsync

public Observable<>> listAsync(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

Parameters:

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

Returns:

the observable to the PagedList<WebhookInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public ServiceFuture<>> listAsync(final String resourceGroupName, final String registryName, final ListOperationCallback serviceCallback)

Lists all the webhooks for the specified container registry.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEvents

public PagedList listEvents(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the PagedList<EventInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listEventsAsync

public Observable<>> listEventsAsync(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the PagedList<EventInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEventsAsync

public ServiceFuture<>> listEventsAsync(final String resourceGroupName, final String registryName, final String webhookName, final ListOperationCallback serviceCallback)

Lists recent events for the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEventsNext

public PagedList listEventsNext(final String nextPageLink)

Lists recent events for the specified webhook.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<EventInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listEventsNextAsync

public Observable<>> listEventsNextAsync(final String nextPageLink)

Lists recent events for the specified webhook.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<EventInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEventsNextAsync

public ServiceFuture<>> listEventsNextAsync(final String nextPageLink, final ServiceFuture<>> serviceFuture, final ListOperationCallback serviceCallback)

Lists recent events for the specified webhook.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.
serviceFuture - the ServiceFuture object tracking the Retrofit calls
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEventsNextSinglePageAsync

public Observable<><>>> listEventsNextSinglePageAsync(final String nextPageLink)

Lists recent events for the specified webhook.

ServiceResponse<PageImpl<EventInner>> *

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<EventInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEventsNextWithServiceResponseAsync

public Observable<><>>> listEventsNextWithServiceResponseAsync(final String nextPageLink)

Lists recent events for the specified webhook.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<EventInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEventsSinglePageAsync

public Observable<><>>> listEventsSinglePageAsync(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

ServiceResponse<PageImpl<EventInner>> *

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs. ServiceResponse<PageImpl<EventInner>> *
registryName - The name of the container registry. ServiceResponse<PageImpl<EventInner>> *
webhookName - The name of the webhook.

Returns:

the PagedList<EventInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listEventsWithServiceResponseAsync

public Observable<><>>> listEventsWithServiceResponseAsync(final String resourceGroupName, final String registryName, final String webhookName)

Lists recent events for the specified webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the PagedList<EventInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNext

public PagedList listNext(final String nextPageLink)

Lists all the webhooks for the specified container registry.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<WebhookInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listNextAsync

public Observable<>> listNextAsync(final String nextPageLink)

Lists all the webhooks for the specified container registry.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<WebhookInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextAsync

public ServiceFuture<>> listNextAsync(final String nextPageLink, final ServiceFuture<>> serviceFuture, final ListOperationCallback serviceCallback)

Lists all the webhooks for the specified container registry.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.
serviceFuture - the ServiceFuture object tracking the Retrofit calls
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextSinglePageAsync

public Observable<><>>> listNextSinglePageAsync(final String nextPageLink)

Lists all the webhooks for the specified container registry.

ServiceResponse<PageImpl<WebhookInner>> *

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<WebhookInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextWithServiceResponseAsync

public Observable<><>>> listNextWithServiceResponseAsync(final String nextPageLink)

Lists all the webhooks for the specified container registry.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<WebhookInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listSinglePageAsync

public Observable<><>>> listSinglePageAsync(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

ServiceResponse<PageImpl<WebhookInner>> *

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs. ServiceResponse<PageImpl<WebhookInner>> *
registryName - The name of the container registry.

Returns:

the PagedList<WebhookInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync(final String resourceGroupName, final String registryName)

Lists all the webhooks for the specified container registry.

Parameters:

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

Returns:

the observable to the PagedList<WebhookInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

ping

public EventInfoInner ping(String resourceGroupName, String registryName, String webhookName)

Triggers a ping event to be sent to the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the EventInfoInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

pingAsync

public Observable pingAsync(String resourceGroupName, String registryName, String webhookName)

Triggers a ping event to be sent to the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the EventInfoInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

pingAsync

public ServiceFuture pingAsync(String resourceGroupName, String registryName, String webhookName, final ServiceCallback serviceCallback)

Triggers a ping event to be sent to the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

pingWithServiceResponseAsync

public Observable<>> pingWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName)

Triggers a ping event to be sent to the webhook.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.

Returns:

the observable to the EventInfoInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

update

public WebhookInner update(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.

Returns:

the WebhookInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

updateAsync

public Observable updateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters, final ServiceCallback serviceCallback)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable<>> updateWithServiceResponseAsync(String resourceGroupName, String registryName, String webhookName, WebhookUpdateParameters webhookUpdateParameters)

Updates a webhook with the specified parameters.

Parameters:

resourceGroupName - The name of the resource group to which the container registry belongs.
registryName - The name of the container registry.
webhookName - The name of the webhook.
webhookUpdateParameters - The parameters for updating a webhook.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to