///GENMHASH:7D6013E8B95E991005ED921F493EFCE4:50D821C2930D637FC2173CD8C27AF5F7
        public IEnumerable <Microsoft.Azure.Management.Storage.Fluent.IStorageUsage> List()
        {
            var storageUsages = Extensions.Synchronize(() => client.ListAsync());

            if (storageUsages == null)
            {
                return(new List <IStorageUsage>());
            }
            return(WrapList(storageUsages));
        }
 /// <summary>
 /// Retrieve the usage for the account id.  (see
 /// http://aka.ms/azureautomationsdk/usageoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IUsageOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <returns>
 /// The response model for the get usage operation.
 /// </returns>
 public static Task <UsageListResponse> ListAsync(this IUsageOperations operations, string resourceGroupName, string automationAccount)
 {
     return(operations.ListAsync(resourceGroupName, automationAccount, CancellationToken.None));
 }
 /// <summary>
 /// Gets the current usage count and the limit for the resources under
 /// the subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IUsageOperations.
 /// </param>
 /// <returns>
 /// The List Usages operation response.
 /// </returns>
 public static Task <UsageListResponse> ListAsync(this IUsageOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }
Пример #4
0
 /// <summary>
 /// Gets the current usage count and the limit for the resources under the
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static UsageListResult List(this IUsageOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Пример #5
0
 /// <summary>
 /// Gets the current usage count and the limit for the resources under the
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IEnumerable <Usage> List(this IUsageOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets, for the specified location, the current compute resource usage
 /// information as well as the limits for compute resources under the
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location for which resource usage is queried.
 /// </param>
 public static IPage <Usage> List(this IUsageOperations operations, string location)
 {
     return(operations.ListAsync(location).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists compute usages for a subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Compute.IUsageOperations.
 /// </param>
 /// <param name='location'>
 /// Required. The location upon which resource usage is queried.
 /// </param>
 /// <returns>
 /// The List Usages operation response.
 /// </returns>
 public static Task <ListUsagesResponse> ListAsync(this IUsageOperations operations, string location)
 {
     return(operations.ListAsync(location, CancellationToken.None));
 }