alula-ruby 2.1.0 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85fb1b113e8dfd4a96634c155ee2aa2a7824135bda2ae967199d8eedde5b9ba9
4
- data.tar.gz: 2478e273b0311f9fb6a448d7608cd2617efd535ab1abee08f922ae9609fe690d
3
+ metadata.gz: 2a5c030dc25e12e66dfeba3db613a92b54fdc53e821351a51e78da43efd2d9be
4
+ data.tar.gz: f869b4408ac1b0179baf1114b6fe6cc380d8d76e40fb7652614968ee3f05d3c2
5
5
  SHA512:
6
- metadata.gz: e84964a36d93e60a171e3f27e28ffcb33ddb73bc03648224bf38372b552e03cc7f3e72e706be81c5313fe9960215a9fa39e22e9fa4f5ecdfe0eaa3b0743be867
7
- data.tar.gz: 5cc072f2a8b1456de0f91fdba0cfa46bbef56efbc837e66b6b943f7c39919c7584b75e03e15b743b7c953b6c036b7c68e13c6528a4b204da223e27e02d54a3fb
6
+ metadata.gz: 3045b8f512ce320edfbc6e8b79392e83fbcda4fd2adef9cc5403e7979025d075bb3ebeafa8ff00e7e69e3ba40858f0a4883021a49116d0127139a4632ccc50de
7
+ data.tar.gz: 6a5dd45a244df7c4e98eb5412a245025018debf109ea9524dc41e0ba6ec2a40fa7ff1fa45ea13e78a0abd122a5fbf7df00bd09c9883e61d4c3009c8e28cc675d
data/VERSION.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.1.2 | 2024-11-12 | Add CameraGetFirmwareVersionProc |
6
+ | v2.1.1 | 2024-11-12 | Add device record attribute |
5
7
  | v2.1.0 | 2024-10-24 | Bump multiple dependencies |
6
8
  | v2.0.0 | 2024-10-17 | Add device helpers, breaking change - removed `is_` from methods returning a boolean |
7
9
  | v1.10.5 | 2024-10-11 | Adding chime_info proc |
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alula
4
+ class CameraGetFirmwareVersionProc < Alula::RpcResource
5
+ class Response < Alula::RpcResponse
6
+ attr_accessor :result
7
+
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data
11
+ end
12
+ end
13
+
14
+ def self.call(device_id:)
15
+ payload = {
16
+ "deviceId": device_id
17
+ }
18
+
19
+ request(
20
+ http_method: :post,
21
+ path: '/video/v1/rpc/devices/get-firmware-version',
22
+ payload:,
23
+ handler: Response
24
+ )
25
+ end
26
+ end
27
+ end
@@ -692,6 +692,13 @@ module Alula
692
692
  creatable_by: [],
693
693
  patchable_by: []
694
694
 
695
+ field :ip_only_enabled,
696
+ type: :boolean,
697
+ sortable: false,
698
+ filterable: false,
699
+ creatable_by: [],
700
+ patchable_by: []
701
+
695
702
  field :ui_settings,
696
703
  type: :object,
697
704
  sortable: false,
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '2.1.0'
4
+ VERSION = '2.1.2'
5
5
  end
data/lib/alula.rb CHANGED
@@ -103,6 +103,7 @@ require_relative 'alula/procedures/camera_get_svr_config_proc'
103
103
  require_relative 'alula/procedures/camera_set_svr_config_proc'
104
104
  require_relative 'alula/procedures/camera_get_rec_config_proc'
105
105
  require_relative 'alula/procedures/camera_set_rec_config_proc'
106
+ require_relative 'alula/procedures/camera_get_firmware_version_proc'
106
107
 
107
108
  module Alula
108
109
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -218,6 +218,7 @@ files:
218
218
  - lib/alula/oauth.rb
219
219
  - lib/alula/pagination.rb
220
220
  - lib/alula/procedures/camera_get_chime_info_proc.rb
221
+ - lib/alula/procedures/camera_get_firmware_version_proc.rb
221
222
  - lib/alula/procedures/camera_get_info_proc.rb
222
223
  - lib/alula/procedures/camera_get_rec_config_proc.rb
223
224
  - lib/alula/procedures/camera_get_sd_status_proc.rb