seamapi 1.11.2 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seam/clients/access_codes.rb +6 -5
- data/lib/seam/clients/unmanaged_devices.rb +13 -0
- data/lib/seam/resources/unmanaged_device.rb +1 -1
- data/lib/seam/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73bba18dbdf9351d8a533d80ee8557daf82a7f70ac54913f43e451b00112233d
|
4
|
+
data.tar.gz: 32cb605049a568bc4ddcdddbf8ea7805a597bb35e2975df8218200ba3cc391ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8918125f1d62599c7bccc41dd7be97cab6153c0c00edeed5176d263072560ccbafde19b694d5a312887765e4a930ad5bce8b6069009ffb9415ca8f048293b949
|
7
|
+
data.tar.gz: 8b7cae02aa8cfb8fc757a44b8e8affeeccb354a2935a5f358a4eb008d45b6c0520d44ccdb07e77404aa7d5ad12ec1356f89afc89e5bd3b29c0c5a2564f716654
|
data/Gemfile.lock
CHANGED
@@ -13,15 +13,15 @@ module Seam
|
|
13
13
|
)
|
14
14
|
end
|
15
15
|
|
16
|
-
def list(device_or_id)
|
16
|
+
def list(device_or_id = nil, access_code_ids: nil)
|
17
17
|
device_id = device_or_id.is_a?(Seam::Device) ? device_or_id.device_id : device_or_id
|
18
18
|
|
19
19
|
request_seam_object(
|
20
|
-
:
|
20
|
+
:post,
|
21
21
|
"/access_codes/list",
|
22
22
|
Seam::AccessCode,
|
23
23
|
"access_codes",
|
24
|
-
|
24
|
+
body: {device_id: device_id, access_code_ids: access_code_ids}.compact
|
25
25
|
)
|
26
26
|
end
|
27
27
|
|
@@ -50,7 +50,7 @@ module Seam
|
|
50
50
|
action_attempt
|
51
51
|
end
|
52
52
|
|
53
|
-
def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil)
|
53
|
+
def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil, type: nil)
|
54
54
|
action_attempt = request_seam_object(
|
55
55
|
:post,
|
56
56
|
"/access_codes/update",
|
@@ -61,7 +61,8 @@ module Seam
|
|
61
61
|
name: name,
|
62
62
|
code: code,
|
63
63
|
starts_at: starts_at,
|
64
|
-
ends_at: ends_at
|
64
|
+
ends_at: ends_at,
|
65
|
+
type: type
|
65
66
|
}.compact
|
66
67
|
)
|
67
68
|
action_attempt.wait_until_finished
|
@@ -3,6 +3,19 @@
|
|
3
3
|
module Seam
|
4
4
|
module Clients
|
5
5
|
class UnmanagedDevices < BaseClient
|
6
|
+
def get(device_id = nil, name: nil)
|
7
|
+
request_seam_object(
|
8
|
+
:get,
|
9
|
+
"/devices/unmanaged/get",
|
10
|
+
Seam::UnmanagedDevice,
|
11
|
+
"device",
|
12
|
+
params: {
|
13
|
+
device_id: device_id,
|
14
|
+
name: name
|
15
|
+
}.compact
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
6
19
|
def list(params = {})
|
7
20
|
request_seam_object(
|
8
21
|
:get,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Seam
|
4
4
|
class UnmanagedDevice < BaseResource
|
5
|
-
attr_accessor :device_id, :device_type, :properties, :connected_account_id, :workspace_id
|
5
|
+
attr_accessor :device_id, :device_type, :properties, :connected_account_id, :workspace_id, :capabilities_supported, :is_managed
|
6
6
|
|
7
7
|
date_accessor :created_at
|
8
8
|
|
data/lib/seam/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seamapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seam Labs, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|