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-1.9.7 lib/alula/resources/device_alias.rb
alula-ruby-1.9.6 lib/alula/resources/device_alias.rb
alula-ruby-1.9.5 lib/alula/resources/device_alias.rb
alula-ruby-1.9.4 lib/alula/resources/device_alias.rb
alula-ruby-1.9.3 lib/alula/resources/device_alias.rb
alula-ruby-1.9.2 lib/alula/resources/device_alias.rb
alula-ruby-1.9.1 lib/alula/resources/device_alias.rb
alula-ruby-1.9.0 lib/alula/resources/device_alias.rb
alula-ruby-1.8.1 lib/alula/resources/device_alias.rb
alula-ruby-1.8.0 lib/alula/resources/device_alias.rb
alula-ruby-1.7.0 lib/alula/resources/device_alias.rb
alula-ruby-1.6.0 lib/alula/resources/device_alias.rb
alula-ruby-1.5.0 lib/alula/resources/device_alias.rb
alula-ruby-1.4.0 lib/alula/resources/device_alias.rb
alula-ruby-1.3.0 lib/alula/resources/device_alias.rb
alula-ruby-1.2.4 lib/alula/resources/device_alias.rb
alula-ruby-1.2.3 lib/alula/resources/device_alias.rb
alula-ruby-1.2.2 lib/alula/resources/device_alias.rb
alula-ruby-1.2.1 lib/alula/resources/device_alias.rb
alula-ruby-1.2.0 lib/alula/resources/device_alias.rb