code: public Observable<ManagementLockObjectInner> createOrUpdateByScopeAsync(String scope, String lockName, ManagementLockObjectInner parameters) {
          return createOrUpdateByScopeWithServiceResponseAsync(scope, lockName, parameters).map(new Func1<ServiceResponse<ManagementLockObjectInner>, ManagementLockObjectInner>() {
              @Override
              public ManagementLockObjectInner call(ServiceResponse<ManagementLockObjectInner> response) {
                  return response.body();
              }
          });
      }
docs: Create or update a management lock by scope.
  
  @param 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.
  @param lockName The name of lock.
  @param parameters Create or update management lock parameters.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ManagementLockObjectInner object