def create_or_update_by_scope(scope, lock_name, parameters, custom_headers:nil)
      response = create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def create_or_update_by_scope(scope, lock_name, parameters, custom_headers:nil)
      response = create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Create or update a management lock by scope.

 @param scope [String] 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 lock_name [String] The name of lock.
 @param parameters [ManagementLockObject] Create or update management lock
 parameters.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ManagementLockObject] operation results.