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.1.0 lib/alula/resources/device_alias.rb
alula-ruby-1.0.2 lib/alula/resources/device_alias.rb
alula-ruby-0.69.11 lib/alula/resources/device_alias.rb
alula-ruby-1.0.1 lib/alula/resources/device_alias.rb
alula-ruby-0.69.10 lib/alula/resources/device_alias.rb
alula-ruby-1.0.0 lib/alula/resources/device_alias.rb
alula-ruby-0.69.9 lib/alula/resources/device_alias.rb
alula-ruby-0.69.8 lib/alula/resources/device_alias.rb
alula-ruby-0.69.7 lib/alula/resources/device_alias.rb
alula-ruby-0.69.6 lib/alula/resources/device_alias.rb
alula-ruby-0.69.5 lib/alula/resources/device_alias.rb
alula-ruby-0.69.4 lib/alula/resources/device_alias.rb
alula-ruby-0.69.3 lib/alula/resources/device_alias.rb
alula-ruby-0.69.2 lib/alula/resources/device_alias.rb
alula-ruby-0.69.1 lib/alula/resources/device_alias.rb