Interface QuotasClient
public interface QuotasClient
An instance of this class provides access to all the operations defined in QuotasClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>, CurrentQuotaLimitBaseInner> beginCreateOrUpdate
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Create or update the quota (service limits) of a resource to the requested value.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>, CurrentQuotaLimitBaseInner> beginCreateOrUpdate
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Create or update the quota (service limits) of a resource to the requested value.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>, CurrentQuotaLimitBaseInner> beginUpdate
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Update the quota (service limits) of this resource to the requested valuecom.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>, CurrentQuotaLimitBaseInner> beginUpdate
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Update the quota (service limits) of this resource to the requested valuecreateOrUpdate
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Create or update the quota (service limits) of a resource to the requested value.createOrUpdate
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Create or update the quota (service limits) of a resource to the requested value.Get the current quota (service limit) and usage of a resource.getWithResponse
(String subscriptionId, String providerId, String location, String resourceName, com.azure.core.util.Context context) Get the current quota (service limit) and usage of a resource.com.azure.core.http.rest.PagedIterable
<CurrentQuotaLimitBaseInner> Gets a list of current quotas (service limits) and usage for all resources.com.azure.core.http.rest.PagedIterable
<CurrentQuotaLimitBaseInner> list
(String subscriptionId, String providerId, String location, com.azure.core.util.Context context) Gets a list of current quotas (service limits) and usage for all resources.update
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Update the quota (service limits) of this resource to the requested valueupdate
(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Update the quota (service limits) of this resource to the requested value
-
Method Details
-
getWithResponse
QuotasGetResponse getWithResponse(String subscriptionId, String providerId, String location, String resourceName, com.azure.core.util.Context context) Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.context
- The context to associate with this operation.- Returns:
- the current quota (service limit) and usage of a resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
CurrentQuotaLimitBaseInner get(String subscriptionId, String providerId, String location, String resourceName) Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.- Returns:
- the current quota (service limit) and usage of a resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginCreateOrUpdate(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Create or update the quota (service limits) of a resource to the requested value. Steps: 1. Make the Get request to get the quota information for specific resource. 2. To increase the quota, update the limit field in the response from Get request to new value. 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Quota requests payload.- Returns:
- the
SyncPoller
for polling of quota properties. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginCreateOrUpdate(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Create or update the quota (service limits) of a resource to the requested value. Steps: 1. Make the Get request to get the quota information for specific resource. 2. To increase the quota, update the limit field in the response from Get request to new value. 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Quota requests payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of quota properties. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
CurrentQuotaLimitBaseInner createOrUpdate(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Create or update the quota (service limits) of a resource to the requested value. Steps: 1. Make the Get request to get the quota information for specific resource. 2. To increase the quota, update the limit field in the response from Get request to new value. 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Quota requests payload.- Returns:
- quota properties.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
CurrentQuotaLimitBaseInner createOrUpdate(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Create or update the quota (service limits) of a resource to the requested value. Steps: 1. Make the Get request to get the quota information for specific resource. 2. To increase the quota, update the limit field in the response from Get request to new value. 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Quota requests payload.context
- The context to associate with this operation.- Returns:
- quota properties.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginUpdate(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Update the quota (service limits) of this resource to the requested value. • To get the quota information for specific resource, send a GET request. • To increase the quota, update the limit field from the GET response to a new value. • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Payload for the quota request.- Returns:
- the
SyncPoller
for polling of quota properties. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginUpdate(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Update the quota (service limits) of this resource to the requested value. • To get the quota information for specific resource, send a GET request. • To increase the quota, update the limit field from the GET response to a new value. • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Payload for the quota request.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of quota properties. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
CurrentQuotaLimitBaseInner update(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest) Update the quota (service limits) of this resource to the requested value. • To get the quota information for specific resource, send a GET request. • To increase the quota, update the limit field from the GET response to a new value. • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Payload for the quota request.- Returns:
- quota properties.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
CurrentQuotaLimitBaseInner update(String subscriptionId, String providerId, String location, String resourceName, CurrentQuotaLimitBaseInner createQuotaRequest, com.azure.core.util.Context context) Update the quota (service limits) of this resource to the requested value. • To get the quota information for specific resource, send a GET request. • To increase the quota, update the limit field from the GET response to a new value. • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.resourceName
- The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.createQuotaRequest
- Payload for the quota request.context
- The context to associate with this operation.- Returns:
- quota properties.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<CurrentQuotaLimitBaseInner> list(String subscriptionId, String providerId, String location) Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.- Returns:
- a list of current quotas (service limits) and usage for all resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<CurrentQuotaLimitBaseInner> list(String subscriptionId, String providerId, String location, com.azure.core.util.Context context) Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.- Parameters:
subscriptionId
- Azure subscription ID.providerId
- Azure resource provider ID.location
- Azure region.context
- The context to associate with this operation.- Returns:
- a list of current quotas (service limits) and usage for all resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-