Providers Interface

public interface Providers extends SupportsListing,SupportsGettingByName

Entry point to providers management API.

Method Summary

Modifier and Type Method and Description
Observable<Provider> getByNameAsync(String name)

Gets the information about a provider from Azure based on the provider name.

Provider register(String resourceProviderNamespace)

Registers provider to be used with a subscription.

Observable<Provider> registerAsync(String resourceProviderNamespace)

Registers provider to be used with a subscription asynchronously.

ServiceFuture<Provider> registerAsync(String resourceProviderNamespace, ServiceCallback<Provider> callback)

Registers provider to be used with a subscription asynchronously.

Provider unregister(String resourceProviderNamespace)

Unregisters provider from a subscription.

Observable<Provider> unregisterAsync(String resourceProviderNamespace)

Unregisters provider from a subscription asynchronously.

ServiceFuture<Provider> unregisterAsync(String resourceProviderNamespace, ServiceCallback<Provider> callback)

Unregisters provider from a subscription asynchronously.

Inherited Members

Method Details

getByNameAsync

public Observable getByNameAsync(String name)

Gets the information about a provider from Azure based on the provider name.

Parameters:

name - the name of the provider

Returns:

a representation of the deferred computation of this call returning the found provider, if any

register

public Provider register(String resourceProviderNamespace)

Registers provider to be used with a subscription.

Parameters:

resourceProviderNamespace - namespace of the resource provider

Returns:

the registered provider

registerAsync

public Observable registerAsync(String resourceProviderNamespace)

Registers provider to be used with a subscription asynchronously.

Parameters:

resourceProviderNamespace - Namespace of the resource provider

Returns:

a representation of the deferred computation of this call returning the registered provider if successful

registerAsync

public ServiceFuture registerAsync(String resourceProviderNamespace, ServiceCallback callback)

Registers provider to be used with a subscription asynchronously.

Parameters:

resourceProviderNamespace - Namespace of the resource provider
callback - the callback to call on success or failure with the ProviderInner object wrapped as parameter if successful

Returns:

a handle to cancel the request

unregister

public Provider unregister(String resourceProviderNamespace)

Unregisters provider from a subscription.

Parameters:

resourceProviderNamespace - Namespace of the resource provider

Returns:

the ProviderInner object wrapped in ServiceResponse if successful

unregisterAsync

public Observable unregisterAsync(String resourceProviderNamespace)

Unregisters provider from a subscription asynchronously.

Parameters:

resourceProviderNamespace - Namespace of the resource provider

Returns:

a representation of the deferred computation of this call returning the unregistered Provider if successful

unregisterAsync

public ServiceFuture unregisterAsync(String resourceProviderNamespace, ServiceCallback callback)

Unregisters provider from a subscription asynchronously.

Parameters:

resourceProviderNamespace - namespace of the resource provider
callback - the callback to call on success or failure with the ProviderInner object wrapped as parameter if successful

Returns:

a handle to cancel the request

Applies to