Sha256: da1152f677acf8ebd0951002fbf0a1c86e3b1230b0a5e0abe10f3d53e59b3810

Contents?: true

Size: 1.21 KB

Versions: 4

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

module Alula
  class VideoVerificationCamera < Alula::RestResource
    extend Alula::ResourceAttributes
    extend Alula::RelationshipAttributes
    extend Alula::ApiOperations::Request
    extend Alula::ApiOperations::List
    extend Alula::ApiOperations::Save

    resource_path 'video/verification/cameras'
    type 'video-verification-cameras'

    relationship :device, type: 'device', cardinality: 'To-one'
    relationship :camera, type: 'camera', cardinality: 'To-one'

    field :id,
          type: :string,
          sortable: false,
          filterable: true,
          creatable_by: %i[],
          patchable_by: %i[]

    field :camera_id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: %i[system dealer],
          patchable_by: %i[system dealer]


    field :device_id,
          type: :string,
          sortable: false,
          filterable: true,
          creatable_by: %i[system dealer],
          creatable_by: %i[system dealer]



    field :zone_index,
          type: :string,
          sortable: true,
          filterable: true,
          creatable_by: %i[system dealer],
          patchable_by: %i[system dealer]

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alula-ruby-1.9.6 lib/alula/resources/video_verification_camera.rb
alula-ruby-1.9.5 lib/alula/resources/video_verification_camera.rb
alula-ruby-1.9.4 lib/alula/resources/video_verification_camera.rb
alula-ruby-1.9.3 lib/alula/resources/video_verification_camera.rb