code: public Observable<Page<ManagementLockObjectInner>> listByResourceGroupAsync(final String resourceGroupName, final String filter) {
          return listByResourceGroupWithServiceResponseAsync(resourceGroupName, filter)
              .map(new Func1<ServiceResponse<Page<ManagementLockObjectInner>>, Page<ManagementLockObjectInner>>() {
                  @Override
                  public Page<ManagementLockObjectInner> call(ServiceResponse<Page<ManagementLockObjectInner>> response) {
                      return response.body();
                  }
              });
      }
docs: Gets all the management locks for a resource group.
  
  @param resourceGroupName The name of the resource group containing the locks to get.
  @param filter The filter to apply on the operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PagedList&lt;ManagementLockObjectInner&gt; object