Subscriptions Interface
public interface Subscriptions
Resource collection API of Subscriptions.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract Subscription |
get(String subscriptionId)
Gets details about a specified subscription. |
| abstract Response<Subscription> |
getWithResponse(String subscriptionId, Context context)
Gets details about a specified subscription. |
|
abstract
Paged |
list()
Gets all subscriptions for a tenant. |
|
abstract
Paged |
list(Context context)
Gets all subscriptions for a tenant. |
|
abstract
Paged |
listLocations(String subscriptionId)
Gets all available geo-locations. |
|
abstract
Paged |
listLocations(String subscriptionId, Context context)
Gets all available geo-locations. |
Method Details
get
public abstract Subscription get(String subscriptionId)
Gets details about a specified subscription.
Parameters:
Returns:
getWithResponse
public abstract Response<Subscription> getWithResponse(String subscriptionId, Context context)
Gets details about a specified subscription.
Parameters:
Returns:
list
public abstract PagedIterable<Subscription> list()
Gets all subscriptions for a tenant.
Returns:
list
public abstract PagedIterable<Subscription> list(Context context)
Gets all subscriptions for a tenant.
Parameters:
Returns:
listLocations
public abstract PagedIterable<Location> 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:
Returns:
listLocations
public abstract PagedIterable<Location> 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:
Returns: