alula-ruby 0.65.0 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +2 -2
- data/VERSION.md +3 -1
- data/lib/alula/procedures/device_programs_renew_proc.rb +18 -0
- data/lib/alula/resources/receiver_disabled.rb +60 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +3 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b6999bfc9dc66b5d70934d480e69a39c3ae96d6201ade7ff6e0a25690decb3f
|
4
|
+
data.tar.gz: d46f3bac3ec53d9a6f2c939bb3c818a37f44beecc6a9ba3168ebcd731c11590c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0752dafe8f96330e64751961b4119ffe875e28feb9e812dfc91692ddbd414431c27f82dbd4dc9a9bc864e6790fdc061b6eb0aaa5f1480ab24c0511cc0e4b2b4d
|
7
|
+
data.tar.gz: '0555180741e6e990503534757c45e393ad916b607be13a15f0894d4fc3b8516096db681367a976e02dea6f1aacbe59679b8d1c4af5e08dc87e304b475526eb93'
|
data/VERSION.md
CHANGED
@@ -96,4 +96,6 @@
|
|
96
96
|
| v0.62.0 | 2022-08-19 | Remove Admin User resource map |
|
97
97
|
| v0.63.0 | 2022-08-25 | Gateway Error |
|
98
98
|
| v0.64.0 | 2022-09-28 | Add procedures for unlocking and locking |
|
99
|
-
| v0.65.0 | 2022-
|
99
|
+
| v0.65.0 | 2022-11-08 | OAuth Client model |
|
100
|
+
| v0.66.0 | 2022-11-16 | Receivers Disabled |
|
101
|
+
| v0.67.0 | 2022-11-29 | Renew Programs RPC |
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Alula
|
2
|
+
class DeviceProgramsRenewProc < Alula::RpcResource
|
3
|
+
|
4
|
+
class Response < Alula::RpcResponse
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.call(device_id:)
|
8
|
+
request(
|
9
|
+
http_method: :post,
|
10
|
+
path: '/rpc/v1/devices/programs/renew',
|
11
|
+
payload: {
|
12
|
+
deviceId: device_id
|
13
|
+
},
|
14
|
+
handler: Response
|
15
|
+
)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
module Alula
|
2
|
+
class ReceiverDisabled < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::ApiOperations::List
|
5
|
+
extend Alula::ApiOperations::Request
|
6
|
+
extend Alula::ApiOperations::Save
|
7
|
+
extend Alula::ApiOperations::Delete
|
8
|
+
|
9
|
+
# You should update this to be a slash-separated, literal path to the resource
|
10
|
+
# without the prefix /api/v1 or the suffix of an ID
|
11
|
+
resource_path 'receivers/disabled'
|
12
|
+
type 'receivers-disabled'
|
13
|
+
|
14
|
+
# Relationships
|
15
|
+
# None
|
16
|
+
|
17
|
+
# Resource Fields
|
18
|
+
field :id,
|
19
|
+
type: :string,
|
20
|
+
sortable: false,
|
21
|
+
filterable: false,
|
22
|
+
creatable_by: [],
|
23
|
+
patchable_by: []
|
24
|
+
|
25
|
+
field :receiver_path,
|
26
|
+
type: :string,
|
27
|
+
sortable: true,
|
28
|
+
filterable: true,
|
29
|
+
creatable_by: [:system],
|
30
|
+
patchable_by: [:system]
|
31
|
+
|
32
|
+
field :caller_phone_number,
|
33
|
+
type: :string,
|
34
|
+
sortable: true,
|
35
|
+
filterable: true,
|
36
|
+
creatable_by: [:system],
|
37
|
+
patchable_by: [:system]
|
38
|
+
|
39
|
+
field :enable,
|
40
|
+
type: :boolean,
|
41
|
+
sortable: true,
|
42
|
+
filterable: true,
|
43
|
+
creatable_by: [:system],
|
44
|
+
patchable_by: [:system]
|
45
|
+
|
46
|
+
field :date_created,
|
47
|
+
type: :date,
|
48
|
+
sortable: false,
|
49
|
+
filterable: false,
|
50
|
+
creatable_by: [],
|
51
|
+
patchable_by: []
|
52
|
+
|
53
|
+
field :date_modified,
|
54
|
+
type: :date,
|
55
|
+
sortable: true,
|
56
|
+
filterable: false,
|
57
|
+
creatable_by: [],
|
58
|
+
patchable_by: []
|
59
|
+
end
|
60
|
+
end
|
data/lib/alula/version.rb
CHANGED
data/lib/alula.rb
CHANGED
@@ -54,6 +54,7 @@ require_relative 'alula/resources/dealer_branding'
|
|
54
54
|
require_relative 'alula/resources/token_exchange'
|
55
55
|
require_relative 'alula/resources/receiver_connection'
|
56
56
|
require_relative 'alula/resources/receiver_group'
|
57
|
+
require_relative 'alula/resources/receiver_disabled'
|
57
58
|
require_relative 'alula/resources/revision'
|
58
59
|
require_relative 'alula/resources/station'
|
59
60
|
require_relative 'alula/resources/oauth_client'
|
@@ -75,6 +76,7 @@ require_relative 'alula/procedures/device_unassign_proc'
|
|
75
76
|
require_relative 'alula/procedures/device_signal_add_proc'
|
76
77
|
require_relative 'alula/procedures/device_signal_update_proc'
|
77
78
|
require_relative 'alula/procedures/device_signal_delivered_proc'
|
79
|
+
require_relative 'alula/procedures/device_programs_renew_proc'
|
78
80
|
require_relative 'alula/procedures/feature_plan_clone_proc'
|
79
81
|
require_relative 'alula/procedures/dealer_device_stats_proc'
|
80
82
|
require_relative 'alula/procedures/dealer_suspend_proc'
|
@@ -118,6 +120,7 @@ module Alula
|
|
118
120
|
Alula::Dealer,
|
119
121
|
Alula::DealerBranding,
|
120
122
|
Alula::ReceiverGroup,
|
123
|
+
Alula::ReceiverDisabled,
|
121
124
|
Alula::Station,
|
122
125
|
Alula::DealerAccountTransfer,
|
123
126
|
Alula::FeaturePlan,
|
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: 0.
|
4
|
+
version: 0.67.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -215,6 +215,7 @@ files:
|
|
215
215
|
- lib/alula/procedures/dealer_suspend_proc.rb
|
216
216
|
- lib/alula/procedures/device_assign_proc.rb
|
217
217
|
- lib/alula/procedures/device_cellular_history_proc.rb
|
218
|
+
- lib/alula/procedures/device_programs_renew_proc.rb
|
218
219
|
- lib/alula/procedures/device_rateplan_get_proc.rb
|
219
220
|
- lib/alula/procedures/device_register_proc.rb
|
220
221
|
- lib/alula/procedures/device_signal_add_proc.rb
|
@@ -258,6 +259,7 @@ files:
|
|
258
259
|
- lib/alula/resources/feature_price.rb
|
259
260
|
- lib/alula/resources/oauth_client.rb
|
260
261
|
- lib/alula/resources/receiver_connection.rb
|
262
|
+
- lib/alula/resources/receiver_disabled.rb
|
261
263
|
- lib/alula/resources/receiver_group.rb
|
262
264
|
- lib/alula/resources/revision.rb
|
263
265
|
- lib/alula/resources/self.rb
|