Sha256: ced7524a08990888a1966887b655000d6d7847f4fcefea968750a7c5f0017546

Contents?: true

Size: 878 Bytes

Versions: 4

Compression:

Stored size: 878 Bytes

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class UnmanagedDevices < BaseClient
      def get(device_id = nil, name: nil)
        request_seam_object(
          :get,
          "/devices/unmanaged/get",
          Seam::UnmanagedDevice,
          "device",
          params: {
            device_id: device_id,
            name: name
          }.compact
        )
      end

      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

4 entries across 4 versions & 1 rubygems

Version Path
seamapi-1.14.0 lib/seam/clients/unmanaged_devices.rb
seamapi-1.13.0 lib/seam/clients/unmanaged_devices.rb
seamapi-1.12.1 lib/seam/clients/unmanaged_devices.rb
seamapi-1.12.0 lib/seam/clients/unmanaged_devices.rb