Aracılığıyla paylaş


Quotas Interface

public interface Quotas

Resource collection API of Quotas.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new CurrentQuotaLimitBase resource.

abstract CurrentQuotaLimitBase get(String resourceName, String scope)

Get the quota limit of a resource.

abstract CurrentQuotaLimitBase getById(String id)

Get the quota limit of a resource.

abstract Response<CurrentQuotaLimitBase> getByIdWithResponse(String id, Context context)

Get the quota limit of a resource.

abstract Response<CurrentQuotaLimitBase> getWithResponse(String resourceName, String scope, Context context)

Get the quota limit of a resource.

abstract PagedIterable<CurrentQuotaLimitBase> list(String scope)

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

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

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

Method Details

define

public abstract CurrentQuotaLimitBase.DefinitionStages.Blank define(String name)

Begins definition for a new CurrentQuotaLimitBase resource.

Parameters:

name - resource name.

Returns:

the first stage of the new CurrentQuotaLimitBase definition.

get

public abstract CurrentQuotaLimitBase 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 target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific resource.

Returns:

the quota limit of a resource.

getById

public abstract CurrentQuotaLimitBase getById(String id)

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:

id - the resource ID.

Returns:

the quota limit of a resource.

getByIdWithResponse

public abstract Response<CurrentQuotaLimitBase> getByIdWithResponse(String id, 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:

id - the resource ID.
context - The context to associate with this operation.

Returns:

the quota limit of a resource.

getWithResponse

public abstract Response<CurrentQuotaLimitBase> 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 target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific resource.
context - The context to associate with this operation.

Returns:

the quota limit of a resource.

list

public abstract PagedIterable<CurrentQuotaLimitBase> 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 target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific 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<CurrentQuotaLimitBase> 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 target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific 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>.

Applies to