code: public ManagementLockObjectInner getByScope(String scope, String lockName) {
          return getByScopeWithServiceResponseAsync(scope, lockName).toBlocking().single().body();
      }
docs: Get a management lock by scope.
  
  @param scope The scope for the lock.
  @param lockName The name of lock.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ManagementLockObjectInner object if successful.