Sha256: 5f99a7bdcc716e376c925b228ca813d47c70835326e6a155a16f39635e49c7dd

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # a request to create a File object.
    # This is the same as a File, but without externalIdentifier (as that wouldn't have been created yet)
    # See http://sul-dlss.github.io/cocina-models/maps/File.json
    class RequestFile < Struct
      include FileAttributes
      # externalIdentifier is used when submitting files to the SDR API to identify the file so that the
      # uploaded files can be associated with the DRO.
      attribute :externalIdentifier, Types::Strict::String.meta(omittable: true)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocina-models-0.29.0 lib/cocina/models/request_file.rb
cocina-models-0.28.0 lib/cocina/models/request_file.rb