Sha256: 3ddff5322a67461948b9d1728b040f5936300cd15e96761776afb2adf7916e47

Contents?: true

Size: 1.41 KB

Versions: 55

Compression:

Stored size: 1.41 KB

Contents

module Alula
  class DeviceAlias < Alula::RestResource
    extend Alula::ResourceAttributes
    extend Alula::ApiOperations::Request
    extend Alula::ApiOperations::List
    extend Alula::ApiOperations::Save
    extend Alula::ApiOperations::Delete

    resource_path 'devices/aliases'
    type 'devices-aliases'

    field :id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [:system],
          patchable_by: []

    field :device_id,
          type: :string,
          sortable: false,
          filterable: true,
          creatable_by: [:system, :station, :dealer, :technician, :user],
          patchable_by: []

    field :alias_type,
          type: :string,
          sortable: true,
          filterable: true,
          creatable_by: [:system, :station, :dealer, :technician, :user],
          patchable_by: [:system, :station, :dealer, :technician, :user]

    field :text,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [:system, :station, :dealer, :technician, :user],
          patchable_by: [:system, :station, :dealer, :technician, :user]

    field :zone_or_user_index,
          type: :string,
          sortable: true,
          filterable: true,
          creatable_by: [:system, :station, :dealer, :technician, :user],
          patchable_by: [:system, :station, :dealer, :technician, :user]
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
alula-ruby-2.1.2 lib/alula/resources/device_alias.rb
alula-ruby-2.1.1 lib/alula/resources/device_alias.rb
alula-ruby-2.1.0 lib/alula/resources/device_alias.rb
alula-ruby-2.0.0 lib/alula/resources/device_alias.rb
alula-ruby-1.10.5 lib/alula/resources/device_alias.rb
alula-ruby-1.10.4 lib/alula/resources/device_alias.rb
alula-ruby-1.10.3 lib/alula/resources/device_alias.rb
alula-ruby-1.10.2 lib/alula/resources/device_alias.rb
alula-ruby-1.10.1 lib/alula/resources/device_alias.rb
alula-ruby-1.10.0 lib/alula/resources/device_alias.rb
alula-ruby-1.9.17 lib/alula/resources/device_alias.rb
alula-ruby-1.9.16 lib/alula/resources/device_alias.rb
alula-ruby-1.9.15 lib/alula/resources/device_alias.rb
alula-ruby-1.9.14 lib/alula/resources/device_alias.rb
alula-ruby-1.9.13 lib/alula/resources/device_alias.rb
alula-ruby-1.9.12 lib/alula/resources/device_alias.rb
alula-ruby-1.9.11 lib/alula/resources/device_alias.rb
alula-ruby-1.9.10 lib/alula/resources/device_alias.rb
alula-ruby-1.9.9 lib/alula/resources/device_alias.rb
alula-ruby-1.9.8 lib/alula/resources/device_alias.rb