Interface ResourceProviderCommonsClient
public interface ResourceProviderCommonsClient
An instance of this class provides access to all the operations defined in ResourceProviderCommonsClient.
-
Method Summary
Modifier and TypeMethodDescriptionGet the number of iot hubs in the subscriptioncom.azure.core.http.rest.Response<UserSubscriptionQuotaListResultInner>
getSubscriptionQuotaWithResponse
(com.azure.core.util.Context context) Get the number of iot hubs in the subscription
-
Method Details
-
getSubscriptionQuota
UserSubscriptionQuotaListResultInner getSubscriptionQuota()Get the number of iot hubs in the subscriptionGet the number of free and paid iot hubs in the subscription.
- Returns:
- the number of free and paid iot hubs in the subscription.
- Throws:
ErrorDetailsException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getSubscriptionQuotaWithResponse
com.azure.core.http.rest.Response<UserSubscriptionQuotaListResultInner> getSubscriptionQuotaWithResponse(com.azure.core.util.Context context) Get the number of iot hubs in the subscriptionGet the number of free and paid iot hubs in the subscription.
- Parameters:
context
- The context to associate with this operation.- Returns:
- the number of free and paid iot hubs in the subscription along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorDetailsException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-