QuotasClient Interface

public interface QuotasClient

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

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginCreateOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Create or update the quota limit for the specified resource with the requested value.

abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginCreateOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Create or update the quota limit for the specified resource with the requested value.

abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Update the quota limit for a specific resource to the specified value: 1.

abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Update the quota limit for a specific resource to the specified value: 1.

abstract CurrentQuotaLimitBaseInner createOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Create or update the quota limit for the specified resource with the requested value.

abstract CurrentQuotaLimitBaseInner createOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Create or update the quota limit for the specified resource with the requested value.

abstract CurrentQuotaLimitBaseInner get(String resourceName, String scope)

Get the quota limit of a resource.

abstract QuotasGetResponse getWithResponse(String resourceName, String scope, Context context)

Get the quota limit of a resource.

abstract PagedIterable<CurrentQuotaLimitBaseInner> list(String scope)

Get a list of current quota limits of all resources for the specified scope.

abstract PagedIterable<CurrentQuotaLimitBaseInner> list(String scope, Context context)

Get a list of current quota limits of all resources for the specified scope.

abstract CurrentQuotaLimitBaseInner update(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Update the quota limit for a specific resource to the specified value: 1.

abstract CurrentQuotaLimitBaseInner update(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Update the quota limit for a specific resource to the specified value: 1.

Method Details

beginCreateOrUpdate

public abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginCreateOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota request payload.

Returns:

the SyncPoller<T,U> for polling of quota limit.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginCreateOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota request payload.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of quota limit.

beginUpdate

public abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Update the quota limit for a specific resource to the specified value: 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota requests payload.

Returns:

the SyncPoller<T,U> for polling of quota limit.

beginUpdate

public abstract SyncPoller<PollResult<CurrentQuotaLimitBaseInner>,CurrentQuotaLimitBaseInner> beginUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Update the quota limit for a specific resource to the specified value: 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota requests payload.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of quota limit.

createOrUpdate

public abstract CurrentQuotaLimitBaseInner createOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota request payload.

Returns:

quota limit.

createOrUpdate

public abstract CurrentQuotaLimitBaseInner createOrUpdate(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota request payload.
context - The context to associate with this operation.

Returns:

quota limit.

get

public abstract CurrentQuotaLimitBaseInner get(String resourceName, String scope)

Get the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.

Returns:

the quota limit of a resource.

getWithResponse

public abstract QuotasGetResponse getWithResponse(String resourceName, String scope, Context context)

Get the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

the quota limit of a resource.

list

public abstract PagedIterable<CurrentQuotaLimitBaseInner> list(String scope)

Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.

Returns:

a list of current quota limits of all resources for the specified scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<CurrentQuotaLimitBaseInner> list(String scope, Context context)

Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

a list of current quota limits of all resources for the specified scope as paginated response with PagedIterable<T>.

update

public abstract CurrentQuotaLimitBaseInner update(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest)

Update the quota limit for a specific resource to the specified value: 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota requests payload.

Returns:

quota limit.

update

public abstract CurrentQuotaLimitBaseInner update(String resourceName, String scope, CurrentQuotaLimitBaseInner createQuotaRequest, Context context)

Update the quota limit for a specific resource to the specified value: 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
createQuotaRequest - Quota requests payload.
context - The context to associate with this operation.

Returns:

quota limit.

Applies to