/// <summary> /// Gets all the management locks of a subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Internal.Resources.IManagementLockOperations. /// </param> /// <param name='parameters'> /// Optional. Query parameters. If empty is passed returns all locks /// at, above or below the subscription. /// </param> /// <returns> /// List of management locks. /// </returns> public static Task<ManagementLockListResult> ListAtSubscriptionLevelAsync(this IManagementLockOperations operations, ManagementLockGetQueryParameter parameters) { return operations.ListAtSubscriptionLevelAsync(parameters, CancellationToken.None); }
/// <summary> /// Gets all the management locks of a resource or any level below /// resource. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Internal.Resources.IManagementLockOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. The name is case /// insensitive. /// </param> /// <param name='identity'> /// Required. Resource identity. /// </param> /// <param name='parameters'> /// Optional. Query parameters. If empty is passed returns all locks at /// or below the resource.If atScope() is passed returns all locks at /// the resource level. /// </param> /// <returns> /// List of management locks. /// </returns> public static Task<ManagementLockListResult> ListAtResourceLevelAsync(this IManagementLockOperations operations, string resourceGroupName, ResourceIdentity identity, ManagementLockGetQueryParameter parameters) { return operations.ListAtResourceLevelAsync(resourceGroupName, identity, parameters, CancellationToken.None); }
/// <summary> /// Gets all the management locks of a subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Internal.Resources.IManagementLockOperations. /// </param> /// <param name='parameters'> /// Optional. Query parameters. If empty is passed returns all locks /// at, above or below the subscription. /// </param> /// <returns> /// List of management locks. /// </returns> public static ManagementLockListResult ListAtSubscriptionLevel(this IManagementLockOperations operations, ManagementLockGetQueryParameter parameters) { return Task.Factory.StartNew((object s) => { return ((IManagementLockOperations)s).ListAtSubscriptionLevelAsync(parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Gets all the management locks of a resource or any level below /// resource. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Internal.Resources.IManagementLockOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. The name is case /// insensitive. /// </param> /// <param name='identity'> /// Required. Resource identity. /// </param> /// <param name='parameters'> /// Optional. Query parameters. If empty is passed returns all locks at /// or below the resource.If atScope() is passed returns all locks at /// the resource level. /// </param> /// <returns> /// List of management locks. /// </returns> public static ManagementLockListResult ListAtResourceLevel(this IManagementLockOperations operations, string resourceGroupName, ResourceIdentity identity, ManagementLockGetQueryParameter parameters) { return Task.Factory.StartNew((object s) => { return ((IManagementLockOperations)s).ListAtResourceLevelAsync(resourceGroupName, identity, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }