Sha256: 47aba26a4781cadc1ae45e79cef3482885be5ec7e6ea2f61c639caa859e8678f

Contents?: true

Size: 865 Bytes

Versions: 12

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Same as an AdminPolicy, but doesn't have an externalIdentifier as one will be created
    class RequestAdminPolicy < 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, Types::Strict::String.default(Cocina::Models::VERSION)
      attribute :type, Types::Strict::String.enum(*RequestAdminPolicy::TYPES)
      attribute :label, Types::Strict::String
      attribute :version, Types::Strict::Integer.default(1).enum(1)
      attribute(:administrative, AdminPolicyAdministrative.default { AdminPolicyAdministrative.new })
      attribute? :description, RequestDescription.optional
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cocina-models-0.86.0 lib/cocina/models/request_admin_policy.rb
cocina-models-0.85.0 lib/cocina/models/request_admin_policy.rb
cocina-models-0.84.5 lib/cocina/models/request_admin_policy.rb
cocina-models-0.84.4 lib/cocina/models/request_admin_policy.rb
cocina-models-0.84.3 lib/cocina/models/request_admin_policy.rb
cocina-models-0.84.2 lib/cocina/models/request_admin_policy.rb
cocina-models-0.84.1 lib/cocina/models/request_admin_policy.rb
cocina-models-0.84.0 lib/cocina/models/request_admin_policy.rb
cocina-models-0.83.0 lib/cocina/models/request_admin_policy.rb
cocina-models-0.82.0 lib/cocina/models/request_admin_policy.rb
cocina-models-0.81.0 lib/cocina/models/request_admin_policy.rb
cocina-models-0.80.0 lib/cocina/models/request_admin_policy.rb