@transactional_session
def add_replica(rse_id, scope, name, bytes, account, adler32=None, md5=None, dsn=None, pfn=None, meta=None, rules=[], tombstone=None, session=None):
    "\n    Add File replica.\n\n    :param rse_id: the rse id.\n    :param scope: the scope name.\n    :param name: The data identifier name.\n    :param bytes: the size of the file.\n    :param account: The account owner.\n    :param md5: The md5 checksum.\n    :param adler32: The adler32 checksum.\n    :param pfn: Physical file name (for nondeterministic rse).\n    :param meta: Meta-data associated with the file. Represented as key/value pairs in a dictionary.\n    :param rules: Replication rules associated with the file. A list of dictionaries, e.g., [{'copies': 2, 'rse_expression': 'TIERS1'}, ].\n    :param tombstone: If True, create replica with a tombstone.\n    :param session: The database session in use.\n\n    :returns: True is successful.\n    "
    if (meta is None):
        meta = {}
    file = {'scope': scope, 'name': name, 'bytes': bytes, 'adler32': adler32, 'md5': md5, 'meta': meta, 'rules': rules, 'tombstone': tombstone}
    if pfn:
        file['pfn'] = pfn
    return add_replicas(rse_id=rse_id, files=[file], account=account, session=session)
Add File replica.

:param rse_id: the rse id.
:param scope: the scope name.
:param name: The data identifier name.
:param bytes: the size of the file.
:param account: The account owner.
:param md5: The md5 checksum.
:param adler32: The adler32 checksum.
:param pfn: Physical file name (for nondeterministic rse).
:param meta: Meta-data associated with the file. Represented as key/value pairs in a dictionary.
:param rules: Replication rules associated with the file. A list of dictionaries, e.g., [{'copies': 2, 'rse_expression': 'TIERS1'}, ].
:param tombstone: If True, create replica with a tombstone.
:param session: The database session in use.

:returns: True is successful.
@transactional_session
def add_replica(rse_id, scope, name, bytes, account, adler32=None, md5=None, dsn=None, pfn=None, meta=None, rules=[], tombstone=None, session=None):
    "\n    Add File replica.\n\n    :param rse_id: the rse id.\n    :param scope: the scope name.\n    :param name: The data identifier name.\n    :param bytes: the size of the file.\n    :param account: The account owner.\n    :param md5: The md5 checksum.\n    :param adler32: The adler32 checksum.\n    :param pfn: Physical file name (for nondeterministic rse).\n    :param meta: Meta-data associated with the file. Represented as key/value pairs in a dictionary.\n    :param rules: Replication rules associated with the file. A list of dictionaries, e.g., [{'copies': 2, 'rse_expression': 'TIERS1'}, ].\n    :param tombstone: If True, create replica with a tombstone.\n    :param session: The database session in use.\n\n    :returns: True is successful.\n    "
    if (meta is None):
        meta = {}
    file = {'scope': scope, 'name': name, 'bytes': bytes, 'adler32': adler32, 'md5': md5, 'meta': meta, 'rules': rules, 'tombstone': tombstone}
    if pfn:
        file['pfn'] = pfn
    return add_replicas(rse_id=rse_id, files=[file], account=account, session=session)