lib/cocina/models/file_access.rb
# frozen_string_literal: true
module Cocina
module Models
# Access metadata for files
class FileAccess < Struct
# Access level.
# Validation of this property is relaxed. See the openapi for full validation.
attribute? :view, Types::Strict::String.optional.default('dark')
# Download access level.
# Validation of this property is relaxed. See the openapi for full validation.
attribute? :download, Types::Strict::String.optional.default('none')
# Not used for this access type, must be null.
# Validation of this property is relaxed. See the openapi for full validation.
attribute? :location, Types::Strict::String.optional
# Validation of this property is relaxed. See the openapi for full validation.
attribute? :controlledDigitalLending, Types::Strict::Bool.optional.default(false)
end
end
end