Sha256: 2035004883c5f5765332f56b7598c15b28174341e6496458f60fd8b62dda9430

Contents?: true

Size: 1.13 KB

Versions: 24

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Admin Policy with addition object metadata.
    class AdminPolicyWithMetadata < Struct
      include Validatable

      include Checkable

      TYPES = ['https://cocina.sul.stanford.edu/models/admin_policy'].freeze

      # The version of Cocina with which this object conforms.
      # example: 1.2.3
      attribute :cocinaVersion, CocinaVersion.default(VERSION)
      attribute :type, Types::Strict::String.enum(*AdminPolicyWithMetadata::TYPES)
      # example: druid:bc123df4567
      attribute :externalIdentifier, Druid
      attribute :label, Types::Strict::String
      attribute :version, Types::Strict::Integer
      attribute(:administrative, AdminPolicyAdministrative.default { AdminPolicyAdministrative.new })
      attribute? :description, Description.optional
      # When the object was created.
      attribute? :created, Types::Params::DateTime
      # When the object was modified.
      attribute? :modified, Types::Params::DateTime
      # Key for optimistic locking. The contents of the key is not specified.
      attribute :lock, Types::Strict::String
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cocina-models-0.99.1 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.99.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.98.1 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.98.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.96.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.95.1 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.95.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.94.2 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.94.1 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.94.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.93.1 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.93.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.92.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.91.4 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.91.3 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.91.2 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.91.1 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.91.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.90.0 lib/cocina/models/admin_policy_with_metadata.rb
cocina-models-0.89.1 lib/cocina/models/admin_policy_with_metadata.rb