Sha256: ca933a83682c754926df3218cb74a673ca13182ac37fe3bde9317a9c2db728f6

Contents?: true

Size: 584 Bytes

Versions: 6

Compression:

Stored size: 584 Bytes

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class UnmanagedDevices < BaseClient
      def list(params = {})
        request_seam_object(
          :get,
          "/devices/unmanaged/list",
          Seam::UnmanagedDevice,
          "devices",
          params: params
        )
      end

      def update(device_id: nil, is_managed: nil)
        request_seam(
          :patch,
          "/devices/unmanaged/update",
          body: {
            device_id: device_id,
            is_managed: is_managed
          }.compact
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
seamapi-1.11.2 lib/seam/clients/unmanaged_devices.rb
seamapi-1.11.1 lib/seam/clients/unmanaged_devices.rb
seamapi-1.11.0 lib/seam/clients/unmanaged_devices.rb
seamapi-1.10.0 lib/seam/clients/unmanaged_devices.rb
seamapi-1.9.0 lib/seam/clients/unmanaged_devices.rb
seamapi-1.8.0 lib/seam/clients/unmanaged_devices.rb