Sha256: 83de100dc5ee3cff3ea5b21ceace432414d7d9ec126913dabbe4c163f7d651dc

Contents?: true

Size: 1.38 KB

Versions: 69

Compression:

Stored size: 1.38 KB

Contents

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

    resource_path 'users/videoprofiles'
    type 'users-videoprofiles'

    relationship :user, type: :users, cardinality: 'To-one'

    # Resource Fields
    # Not all params are used at the moment. See Alula::ResourceAttributes for details
    # on how params are parsed,
    field :id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

    field :camera_plan_count,
          type: :number,
          sortable: true,
          filterable: false,
          creatable_by: [:system, :station, :dealer, :technician],
          patchable_by: [:system, :station, :dealer, :technician]

    field :clip_plan_count,
          type: :number,
          sortable: false,
          filterable: false,
          creatable_by: [:system, :station, :dealer, :technician],
          patchable_by: [:system, :station, :dealer, :technician]

    field :vendors,
          type: :array,
          sortable: false,
          filterable: false,
          creatable_by: [:system, :station, :dealer, :technician],
          patchable_by: [:system, :station, :dealer, :technician]
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
alula-ruby-2.12.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.11.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.10.1 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.10.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.9.1 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.9.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.8.1 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.8.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.7.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.6.3 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.6.2 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.6.1 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.6.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.5.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.4.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.3.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.2.0 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.1.2 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.1.1 lib/alula/resources/user_videoprofile.rb
alula-ruby-2.1.0 lib/alula/resources/user_videoprofile.rb