Interface ResourceProviderCommons
public interface ResourceProviderCommons
Resource collection API of ResourceProviderCommons.
-
Method Summary
Modifier and TypeMethodDescriptionGet the number of iot hubs in the subscriptioncom.azure.core.http.rest.Response<UserSubscriptionQuotaListResult>
getSubscriptionQuotaWithResponse
(com.azure.core.util.Context context) Get the number of iot hubs in the subscription
-
Method Details
-
getSubscriptionQuota
UserSubscriptionQuotaListResult 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<UserSubscriptionQuotaListResult> 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.
-