original_docstring: 
          Atomic method used by the RucioFileCatalog plugin in Dirac that :
          - Creates files and their replicas
          - Creates the dataset containing the files and attach the files to the dataset
          - Creates a rule on the dataset with RSE expression ANY and grouping NONE
          - Creates all the container hierarchy containing the dataset
  
          ..:quickref: AddFiles; Method used by the RucioFileCatalog plugin in Dirac.
  
          :<json list lfns: List of lfn (dictionary {'lfn': <lfn>, 'rse': <rse>, 'bytes': <bytes>, 'adler32': <adler32>, 'guid': <guid>, 'pfn': <pfn>}.
          :<json bool ignore_availability: A boolean to choose if unavailable sites need to be ignored.
  
          :status 201: Created.
          :status 400: Cannot decode json parameter list.
          :status 401: Invalid auth token.
          :status 404: DID not found.
          :status 405: Unsupported Operation.
          :status 409: Duplicate.
          :status 503: Temporary error.
          
docstring: Atomic method used by the RucioFileCatalog plugin in Dirac that :
  Creates files and their replicas
  Creates the dataset containing the files and attach the files to the dataset
  Creates a rule on the dataset with RSE expression ANY and grouping NONE
  Creates all the container hierarchy containing the dataset
  
  :quickref: AddFiles; Method used by the RucioFileCatalog plugin in Dirac.
docstring_tokens: Atomic method used by the RucioFileCatalog plugin in Dirac that : Creates files and their replicas Creates the dataset containing the files and attach the files to the dataset Creates a rule on the dataset with RSE expression ANY and grouping NONE Creates all the container hierarchy containing the dataset : quickref : AddFiles ; Method used by the RucioFileCatalog plugin in Dirac .
code: def post(self):
          """
          Atomic method used by the RucioFileCatalog plugin in Dirac that :
          - Creates files and their replicas
          - Creates the dataset containing the files and attach the files to the dataset
          - Creates a rule on the dataset with RSE expression ANY and grouping NONE
          - Creates all the container hierarchy containing the dataset
  
          ..:quickref: AddFiles; Method used by the RucioFileCatalog plugin in Dirac.
  
          :<json list lfns: List of lfn (dictionary {'lfn': <lfn>, 'rse': <rse>, 'bytes': <bytes>, 'adler32': <adler32>, 'guid': <guid>, 'pfn': <pfn>}.
          :<json bool ignore_availability: A boolean to choose if unavailable sites need to be ignored.
  
          :status 201: Created.
          :status 400: Cannot decode json parameter list.
          :status 401: Invalid auth token.
          :status 404: DID not found.
          :status 405: Unsupported Operation.
          :status 409: Duplicate.
          :status 503: Temporary error.
          """
          parameters = json_parameters(parse_response)
          lfns = param_get(parameters, 'lfns')
          ignore_availability = param_get(parameters, 'ignore_availability', default=False)
  
          try:
              add_files(lfns=lfns, issuer=request.environ.get('issuer'), ignore_availability=ignore_availability)
          except InvalidPath as error:
              return generate_http_error_flask(400, error)
          except AccessDenied as error:
              return generate_http_error_flask(401, error)
          except UnsupportedOperation as error:
              return generate_http_error_flask(405, error)
          except (Duplicate, DataIdentifierAlreadyExists) as error:
              return generate_http_error_flask(409, error)
          except RSENotFound as error:
              return generate_http_error_flask(404, error)
          except (DatabaseException, ResourceTemporaryUnavailable) as error:
              return generate_http_error_flask(503, error)
  
          return 'Created', 201
code_tokens: def post ( self ) : parameters = json_parameters ( parse_response ) lfns = param_get ( parameters , 'lfns' ) ignore_availability = param_get ( parameters , 'ignore_availability' , default = False ) try : add_files ( lfns = lfns , issuer = request . environ . get ( 'issuer' ) , ignore_availability = ignore_availability ) except InvalidPath as error : return generate_http_error_flask ( 400 , error ) except AccessDenied as error : return generate_http_error_flask ( 401 , error ) except UnsupportedOperation as error : return generate_http_error_flask ( 405 , error ) except ( Duplicate , DataIdentifierAlreadyExists ) as error : return generate_http_error_flask ( 409 , error ) except RSENotFound as error : return generate_http_error_flask ( 404 , error ) except ( DatabaseException , ResourceTemporaryUnavailable ) as error : return generate_http_error_flask ( 503 , error ) return 'Created' , 201
short_docstring: Atomic method used by the RucioFileCatalog plugin in Dirac that :
   Creates files and their replicas
   Creates the dataset containing the files and attach the files to the dataset
   Creates a rule on the dataset with RSE expression ANY and grouping NONE
   Creates all the container hierarchy containing the dataset
short_docstring_tokens: Atomic method used by the RucioFileCatalog plugin in Dirac that : Creates files and their replicas Creates the dataset containing the files and attach the files to the dataset Creates a rule on the dataset with RSE expression ANY and grouping NONE Creates all the container hierarchy containing the dataset
comment: """
          Atomic method used by the RucioFileCatalog plugin in Dirac that :
          - Creates files and their replicas
          - Creates the dataset containing the files and attach the files to the dataset
          - Creates a rule on the dataset with RSE expression ANY and grouping NONE
          - Creates all the container hierarchy containing the dataset
  
          ..:quickref: AddFiles; Method used by the RucioFileCatalog plugin in Dirac.
  
          :<json list lfns: List of lfn (dictionary {'lfn': <lfn>, 'rse': <rse>, 'bytes': <bytes>, 'adler32': <adler32>, 'guid': <guid>, 'pfn': <pfn>}.
          :<json bool ignore_availability: A boolean to choose if unavailable sites need to be ignored.
  
          :status 201: Created.
          :status 400: Cannot decode json parameter list.
          :status 401: Invalid auth token.
          :status 404: DID not found.
          :status 405: Unsupported Operation.
          :status 409: Duplicate.
          :status 503: Temporary error.
          """