SubscriptionsClient Interface

public interface SubscriptionsClient

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

Method Summary

Modifier and Type Method and Description
abstract SubscriptionInner get(String subscriptionId)

Gets details about a specified subscription.

abstract Response<SubscriptionInner> getWithResponse(String subscriptionId, Context context)

Gets details about a specified subscription.

abstract PagedIterable<SubscriptionInner> list()

Gets all subscriptions for a tenant.

abstract PagedIterable<SubscriptionInner> list(Context context)

Gets all subscriptions for a tenant.

abstract PagedIterable<LocationInner> listLocations(String subscriptionId)

Gets all available geo-locations.

abstract PagedIterable<LocationInner> listLocations(String subscriptionId, Context context)

Gets all available geo-locations.

Method Details

get

public abstract SubscriptionInner get(String subscriptionId)

Gets details about a specified subscription.

Parameters:

subscriptionId - The ID of the target subscription.

Returns:

details about a specified subscription.

getWithResponse

public abstract Response getWithResponse(String subscriptionId, Context context)

Gets details about a specified subscription.

Parameters:

subscriptionId - The ID of the target subscription.
context - The context to associate with this operation.

Returns:

details about a specified subscription along with Response<T>.

list

public abstract PagedIterable list()

Gets all subscriptions for a tenant.

Returns:

all subscriptions for a tenant as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(Context context)

Gets all subscriptions for a tenant.

Parameters:

context - The context to associate with this operation.

Returns:

all subscriptions for a tenant as paginated response with PagedIterable<T>.

listLocations

public abstract PagedIterable listLocations(String subscriptionId)

Gets all available geo-locations. This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.

Parameters:

subscriptionId - The ID of the target subscription.

Returns:

location list operation response as paginated response with PagedIterable<T>.

listLocations

public abstract PagedIterable listLocations(String subscriptionId, Context context)

Gets all available geo-locations. This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.

Parameters:

subscriptionId - The ID of the target subscription.
context - The context to associate with this operation.

Returns:

location list operation response as paginated response with PagedIterable<T>.

Applies to