/// <summary> /// Get a list of current service limits (quota) and usages of all the /// resources. The response from List API can be leveraged to submit quota /// update requests. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// Azure subscription id. /// </param> /// <param name='providerId'> /// Azure resource provider id. /// </param> /// <param name='location'> /// Azure region. /// </param> public static IPage <CurrentQuotaLimitBase> List(this IQuotaOperations operations, string subscriptionId, string providerId, string location) { return(operations.ListAsync(subscriptionId, providerId, location).GetAwaiter().GetResult()); }
/// <summary> /// Returns the list of quotas for the server. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Sql.IQuotaOperations. /// </param> /// <param name='serverName'> /// Required. The name of the database server to be queried. /// </param> /// <returns> /// The response structure for the Quota List operation. /// </returns> public static Task <QuotaListResponse> ListAsync(this IQuotaOperations operations, string serverName) { return(operations.ListAsync(serverName, CancellationToken.None)); }
/// <summary> /// 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='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. /// </param> public static IPage <CurrentQuotaLimitBase> List(this IQuotaOperations operations, string scope) { return(operations.ListAsync(scope).GetAwaiter().GetResult()); }