Interface ManagementLocksClient

    • Method Detail

      • createOrUpdateAtResourceGroupLevelWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtResourceGroupLevelWithResponseAsync​(String resourceGroupName,
                                                                                                                               String lockName,
                                                                                                                               ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group to lock.
        lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        Returns:
        the lock information along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtResourceGroupLevelAsync

        Mono<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelAsync​(String resourceGroupName,
                                                                                String lockName,
                                                                                ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group to lock.
        lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        Returns:
        the lock information on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtResourceGroupLevel

        ManagementLockObjectInner createOrUpdateAtResourceGroupLevel​(String resourceGroupName,
                                                                     String lockName,
                                                                     ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group to lock.
        lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        Returns:
        the lock information.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtResourceGroupLevelWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelWithResponse​(String resourceGroupName,
                                                                                                                    String lockName,
                                                                                                                    ManagementLockObjectInner parameters,
                                                                                                                    com.azure.core.util.Context context)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group to lock.
        lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        context - The context to associate with this operation.
        Returns:
        the lock information along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync​(String resourceGroupName,
                                                                              String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the lock.
        lockName - The name of lock to delete.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group containing the lock.
        lockName - The name of lock to delete.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the lock.
        lockName - The name of lock to delete.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Void> deleteWithResponse​(String resourceGroupName,
                                                                   String lockName,
                                                                   com.azure.core.util.Context context)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the lock.
        lockName - The name of lock to delete.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                               String lockName)
        Gets a management lock at the resource group level.
        Parameters:
        resourceGroupName - The name of the locked resource group.
        lockName - The name of the lock to get.
        Returns:
        a management lock at the resource group level along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<ManagementLockObjectInner> getByResourceGroupAsync​(String resourceGroupName,
                                                                String lockName)
        Gets a management lock at the resource group level.
        Specified by:
        getByResourceGroupAsync in interface InnerSupportsGet<ManagementLockObjectInner>
        Parameters:
        resourceGroupName - The name of the locked resource group.
        lockName - The name of the lock to get.
        Returns:
        a management lock at the resource group level on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroup

        ManagementLockObjectInner getByResourceGroup​(String resourceGroupName,
                                                     String lockName)
        Gets a management lock at the resource group level.
        Specified by:
        getByResourceGroup in interface InnerSupportsGet<ManagementLockObjectInner>
        Parameters:
        resourceGroupName - The name of the locked resource group.
        lockName - The name of the lock to get.
        Returns:
        a management lock at the resource group level.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                    String lockName,
                                                                                                    com.azure.core.util.Context context)
        Gets a management lock at the resource group level.
        Parameters:
        resourceGroupName - The name of the locked resource group.
        lockName - The name of the lock to get.
        context - The context to associate with this operation.
        Returns:
        a management lock at the resource group level along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateByScopeWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateByScopeWithResponseAsync​(String scope,
                                                                                                                  String lockName,
                                                                                                                  ManagementLockObjectInner parameters)
        Create or update a management lock by scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        lockName - The name of lock.
        parameters - Create or update management lock parameters.
        Returns:
        the lock information along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateByScopeAsync

        Mono<ManagementLockObjectInner> createOrUpdateByScopeAsync​(String scope,
                                                                   String lockName,
                                                                   ManagementLockObjectInner parameters)
        Create or update a management lock by scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        lockName - The name of lock.
        parameters - Create or update management lock parameters.
        Returns:
        the lock information on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateByScope

        ManagementLockObjectInner createOrUpdateByScope​(String scope,
                                                        String lockName,
                                                        ManagementLockObjectInner parameters)
        Create or update a management lock by scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        lockName - The name of lock.
        parameters - Create or update management lock parameters.
        Returns:
        the lock information.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateByScopeWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateByScopeWithResponse​(String scope,
                                                                                                       String lockName,
                                                                                                       ManagementLockObjectInner parameters,
                                                                                                       com.azure.core.util.Context context)
        Create or update a management lock by scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        lockName - The name of lock.
        parameters - Create or update management lock parameters.
        context - The context to associate with this operation.
        Returns:
        the lock information along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteByScopeWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteByScopeWithResponseAsync​(String scope,
                                                                                     String lockName)
        Delete a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteByScopeAsync

        Mono<Void> deleteByScopeAsync​(String scope,
                                      String lockName)
        Delete a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteByScope

        void deleteByScope​(String scope,
                           String lockName)
        Delete a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteByScopeWithResponse

        com.azure.core.http.rest.Response<Void> deleteByScopeWithResponse​(String scope,
                                                                          String lockName,
                                                                          com.azure.core.util.Context context)
        Delete a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByScopeWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getByScopeWithResponseAsync​(String scope,
                                                                                                       String lockName)
        Get a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        Returns:
        a management lock by scope along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByScopeAsync

        Mono<ManagementLockObjectInner> getByScopeAsync​(String scope,
                                                        String lockName)
        Get a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        Returns:
        a management lock by scope on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByScope

        ManagementLockObjectInner getByScope​(String scope,
                                             String lockName)
        Get a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        Returns:
        a management lock by scope.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByScopeWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> getByScopeWithResponse​(String scope,
                                                                                            String lockName,
                                                                                            com.azure.core.util.Context context)
        Get a management lock by scope.
        Parameters:
        scope - The scope for the lock.
        lockName - The name of lock.
        context - The context to associate with this operation.
        Returns:
        a management lock by scope along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtResourceLevelWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtResourceLevelWithResponseAsync​(String resourceGroupName,
                                                                                                                          String resourceProviderNamespace,
                                                                                                                          String parentResourcePath,
                                                                                                                          String resourceType,
                                                                                                                          String resourceName,
                                                                                                                          String lockName,
                                                                                                                          ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource to lock.
        resourceProviderNamespace - The resource provider namespace of the resource to lock.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource to lock.
        resourceName - The name of the resource to lock.
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - Parameters for creating or updating a management lock.
        Returns:
        the lock information along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtResourceLevelAsync

        Mono<ManagementLockObjectInner> createOrUpdateAtResourceLevelAsync​(String resourceGroupName,
                                                                           String resourceProviderNamespace,
                                                                           String parentResourcePath,
                                                                           String resourceType,
                                                                           String resourceName,
                                                                           String lockName,
                                                                           ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource to lock.
        resourceProviderNamespace - The resource provider namespace of the resource to lock.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource to lock.
        resourceName - The name of the resource to lock.
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - Parameters for creating or updating a management lock.
        Returns:
        the lock information on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtResourceLevel

        ManagementLockObjectInner createOrUpdateAtResourceLevel​(String resourceGroupName,
                                                                String resourceProviderNamespace,
                                                                String parentResourcePath,
                                                                String resourceType,
                                                                String resourceName,
                                                                String lockName,
                                                                ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource to lock.
        resourceProviderNamespace - The resource provider namespace of the resource to lock.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource to lock.
        resourceName - The name of the resource to lock.
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - Parameters for creating or updating a management lock.
        Returns:
        the lock information.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtResourceLevelWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtResourceLevelWithResponse​(String resourceGroupName,
                                                                                                               String resourceProviderNamespace,
                                                                                                               String parentResourcePath,
                                                                                                               String resourceType,
                                                                                                               String resourceName,
                                                                                                               String lockName,
                                                                                                               ManagementLockObjectInner parameters,
                                                                                                               com.azure.core.util.Context context)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource to lock.
        resourceProviderNamespace - The resource provider namespace of the resource to lock.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource to lock.
        resourceName - The name of the resource to lock.
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - Parameters for creating or updating a management lock.
        context - The context to associate with this operation.
        Returns:
        the lock information along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtResourceLevelWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteAtResourceLevelWithResponseAsync​(String resourceGroupName,
                                                                                             String resourceProviderNamespace,
                                                                                             String parentResourcePath,
                                                                                             String resourceType,
                                                                                             String resourceName,
                                                                                             String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource with the lock to delete.
        resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource with the lock to delete.
        resourceName - The name of the resource with the lock to delete.
        lockName - The name of the lock to delete.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtResourceLevelAsync

        Mono<Void> deleteAtResourceLevelAsync​(String resourceGroupName,
                                              String resourceProviderNamespace,
                                              String parentResourcePath,
                                              String resourceType,
                                              String resourceName,
                                              String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource with the lock to delete.
        resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource with the lock to delete.
        resourceName - The name of the resource with the lock to delete.
        lockName - The name of the lock to delete.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtResourceLevel

        void deleteAtResourceLevel​(String resourceGroupName,
                                   String resourceProviderNamespace,
                                   String parentResourcePath,
                                   String resourceType,
                                   String resourceName,
                                   String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource with the lock to delete.
        resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource with the lock to delete.
        resourceName - The name of the resource with the lock to delete.
        lockName - The name of the lock to delete.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtResourceLevelWithResponse

        com.azure.core.http.rest.Response<Void> deleteAtResourceLevelWithResponse​(String resourceGroupName,
                                                                                  String resourceProviderNamespace,
                                                                                  String parentResourcePath,
                                                                                  String resourceType,
                                                                                  String resourceName,
                                                                                  String lockName,
                                                                                  com.azure.core.util.Context context)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        resourceGroupName - The name of the resource group containing the resource with the lock to delete.
        resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the resource with the lock to delete.
        resourceName - The name of the resource with the lock to delete.
        lockName - The name of the lock to delete.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtResourceLevelWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getAtResourceLevelWithResponseAsync​(String resourceGroupName,
                                                                                                               String resourceProviderNamespace,
                                                                                                               String parentResourcePath,
                                                                                                               String resourceType,
                                                                                                               String resourceName,
                                                                                                               String lockName)
        Get the management lock of a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
        resourceType - The type of the resource.
        resourceName - The name of the resource.
        lockName - The name of lock.
        Returns:
        the management lock of a resource or any level below resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtResourceLevelAsync

        Mono<ManagementLockObjectInner> getAtResourceLevelAsync​(String resourceGroupName,
                                                                String resourceProviderNamespace,
                                                                String parentResourcePath,
                                                                String resourceType,
                                                                String resourceName,
                                                                String lockName)
        Get the management lock of a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
        resourceType - The type of the resource.
        resourceName - The name of the resource.
        lockName - The name of lock.
        Returns:
        the management lock of a resource or any level below resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtResourceLevel

        ManagementLockObjectInner getAtResourceLevel​(String resourceGroupName,
                                                     String resourceProviderNamespace,
                                                     String parentResourcePath,
                                                     String resourceType,
                                                     String resourceName,
                                                     String lockName)
        Get the management lock of a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
        resourceType - The type of the resource.
        resourceName - The name of the resource.
        lockName - The name of lock.
        Returns:
        the management lock of a resource or any level below resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtResourceLevelWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> getAtResourceLevelWithResponse​(String resourceGroupName,
                                                                                                    String resourceProviderNamespace,
                                                                                                    String parentResourcePath,
                                                                                                    String resourceType,
                                                                                                    String resourceName,
                                                                                                    String lockName,
                                                                                                    com.azure.core.util.Context context)
        Get the management lock of a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
        resourceType - The type of the resource.
        resourceName - The name of the resource.
        lockName - The name of lock.
        context - The context to associate with this operation.
        Returns:
        the management lock of a resource or any level below resource along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtSubscriptionLevelWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtSubscriptionLevelWithResponseAsync​(String lockName,
                                                                                                                              ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        Returns:
        the lock information along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtSubscriptionLevelAsync

        Mono<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelAsync​(String lockName,
                                                                               ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        Returns:
        the lock information on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtSubscriptionLevel

        ManagementLockObjectInner createOrUpdateAtSubscriptionLevel​(String lockName,
                                                                    ManagementLockObjectInner parameters)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        Returns:
        the lock information.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAtSubscriptionLevelWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelWithResponse​(String lockName,
                                                                                                                   ManagementLockObjectInner parameters,
                                                                                                                   com.azure.core.util.Context context)
        When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \, ?, /, or any control characters.
        parameters - The management lock parameters.
        context - The context to associate with this operation.
        Returns:
        the lock information along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtSubscriptionLevelWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteAtSubscriptionLevelWithResponseAsync​(String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock to delete.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtSubscriptionLevelAsync

        Mono<Void> deleteAtSubscriptionLevelAsync​(String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock to delete.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtSubscriptionLevel

        void deleteAtSubscriptionLevel​(String lockName)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock to delete.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAtSubscriptionLevelWithResponse

        com.azure.core.http.rest.Response<Void> deleteAtSubscriptionLevelWithResponse​(String lockName,
                                                                                      com.azure.core.util.Context context)
        To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
        Parameters:
        lockName - The name of lock to delete.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtSubscriptionLevelWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getAtSubscriptionLevelWithResponseAsync​(String lockName)
        Gets a management lock at the subscription level.
        Parameters:
        lockName - The name of the lock to get.
        Returns:
        a management lock at the subscription level along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtSubscriptionLevelAsync

        Mono<ManagementLockObjectInner> getAtSubscriptionLevelAsync​(String lockName)
        Gets a management lock at the subscription level.
        Parameters:
        lockName - The name of the lock to get.
        Returns:
        a management lock at the subscription level on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtSubscriptionLevel

        ManagementLockObjectInner getAtSubscriptionLevel​(String lockName)
        Gets a management lock at the subscription level.
        Parameters:
        lockName - The name of the lock to get.
        Returns:
        a management lock at the subscription level.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAtSubscriptionLevelWithResponse

        com.azure.core.http.rest.Response<ManagementLockObjectInner> getAtSubscriptionLevelWithResponse​(String lockName,
                                                                                                        com.azure.core.util.Context context)
        Gets a management lock at the subscription level.
        Parameters:
        lockName - The name of the lock to get.
        context - The context to associate with this operation.
        Returns:
        a management lock at the subscription level along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByResourceGroupAsync​(String resourceGroupName,
                                                                                               String filter)
        Gets all the management locks for a resource group.
        Parameters:
        resourceGroupName - The name of the resource group containing the locks to get.
        filter - The filter to apply on the operation.
        Returns:
        all the management locks for a resource group as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByResourceGroupAsync​(String resourceGroupName)
        Gets all the management locks for a resource group.
        Specified by:
        listByResourceGroupAsync in interface InnerSupportsListing<ManagementLockObjectInner>
        Parameters:
        resourceGroupName - The name of the resource group containing the locks to get.
        Returns:
        all the management locks for a resource group as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByResourceGroup​(String resourceGroupName)
        Gets all the management locks for a resource group.
        Specified by:
        listByResourceGroup in interface InnerSupportsListing<ManagementLockObjectInner>
        Parameters:
        resourceGroupName - The name of the resource group containing the locks to get.
        Returns:
        all the management locks for a resource group as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByResourceGroup​(String resourceGroupName,
                                                                                              String filter,
                                                                                              com.azure.core.util.Context context)
        Gets all the management locks for a resource group.
        Parameters:
        resourceGroupName - The name of the resource group containing the locks to get.
        filter - The filter to apply on the operation.
        context - The context to associate with this operation.
        Returns:
        all the management locks for a resource group as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAtResourceLevelAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAtResourceLevelAsync​(String resourceGroupName,
                                                                                               String resourceProviderNamespace,
                                                                                               String parentResourcePath,
                                                                                               String resourceType,
                                                                                               String resourceName,
                                                                                               String filter)
        Gets all the management locks for a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the locked resource.
        resourceName - The name of the locked resource.
        filter - The filter to apply on the operation.
        Returns:
        all the management locks for a resource or any level below resource as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAtResourceLevelAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAtResourceLevelAsync​(String resourceGroupName,
                                                                                               String resourceProviderNamespace,
                                                                                               String parentResourcePath,
                                                                                               String resourceType,
                                                                                               String resourceName)
        Gets all the management locks for a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the locked resource.
        resourceName - The name of the locked resource.
        Returns:
        all the management locks for a resource or any level below resource as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAtResourceLevel

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listAtResourceLevel​(String resourceGroupName,
                                                                                              String resourceProviderNamespace,
                                                                                              String parentResourcePath,
                                                                                              String resourceType,
                                                                                              String resourceName)
        Gets all the management locks for a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the locked resource.
        resourceName - The name of the locked resource.
        Returns:
        all the management locks for a resource or any level below resource as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAtResourceLevel

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listAtResourceLevel​(String resourceGroupName,
                                                                                              String resourceProviderNamespace,
                                                                                              String parentResourcePath,
                                                                                              String resourceType,
                                                                                              String resourceName,
                                                                                              String filter,
                                                                                              com.azure.core.util.Context context)
        Gets all the management locks for a resource or any level below resource.
        Parameters:
        resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        parentResourcePath - The parent resource identity.
        resourceType - The resource type of the locked resource.
        resourceName - The name of the locked resource.
        filter - The filter to apply on the operation.
        context - The context to associate with this operation.
        Returns:
        all the management locks for a resource or any level below resource as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAsync​(String filter)
        Gets all the management locks for a subscription.
        Parameters:
        filter - The filter to apply on the operation.
        Returns:
        all the management locks for a subscription as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAsync()
        Gets all the management locks for a subscription.
        Specified by:
        listAsync in interface InnerSupportsListing<ManagementLockObjectInner>
        Returns:
        all the management locks for a subscription as paginated response with PagedFlux.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> list()
        Gets all the management locks for a subscription.
        Specified by:
        list in interface InnerSupportsListing<ManagementLockObjectInner>
        Returns:
        all the management locks for a subscription as paginated response with PagedIterable.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> list​(String filter,
                                                                               com.azure.core.util.Context context)
        Gets all the management locks for a subscription.
        Parameters:
        filter - The filter to apply on the operation.
        context - The context to associate with this operation.
        Returns:
        all the management locks for a subscription as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByScopeAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByScopeAsync​(String scope,
                                                                                       String filter)
        Gets all the management locks for a scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        filter - The filter to apply on the operation.
        Returns:
        all the management locks for a scope as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByScopeAsync

        com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByScopeAsync​(String scope)
        Gets all the management locks for a scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        Returns:
        all the management locks for a scope as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByScope

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByScope​(String scope)
        Gets all the management locks for a scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        Returns:
        all the management locks for a scope as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByScope

        com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByScope​(String scope,
                                                                                      String filter,
                                                                                      com.azure.core.util.Context context)
        Gets all the management locks for a scope.
        Parameters:
        scope - The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
        filter - The filter to apply on the operation.
        context - The context to associate with this operation.
        Returns:
        all the management locks for a scope as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.