alula-ruby 2.9.1 → 2.10.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/VERSION.md +1 -0
- data/lib/alula/resources/receiver.rb +170 -0
- data/lib/alula/version.rb +1 -1
- data/lib/alula.rb +7 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c193a3cf44e69c6fbd241719d3a9908b0d97144f0de1928c970f3baa8f4cd592
|
4
|
+
data.tar.gz: eb6fab3cd32c4c8b4834bee738c9556cedaf87c36e466021fd60cee466ae777e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1853870f31da8237c09dad65cc6f60c7ce7e7f0079e80804bd5b2901b5b95db204ad9cc2eb876ce18876fed8fe014ff6e053764aa1421be879a32443b1384c11
|
7
|
+
data.tar.gz: 67d930478df580b71d04f5b6bdc63d8feba0f6cb6e862c25815fa0133c030b7e8b28b188d105ef801ce8665d0566a8ce893384c6362c4870efdeba980d949933
|
data/VERSION.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
| Version | Date | Description |
|
4
4
|
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v2.10.0 | 2025-02-27 | Add a model for Receiver |
|
5
6
|
| v2.9.1 | 2025-02-25 | Fix Alula::ListObject initialization |
|
6
7
|
| v2.9.0 | 2025-02-20 | Add merge! capability for Alula::ListObject |
|
7
8
|
| v2.8.1 | 2025-02-19 | Mark Device ID as filterable/sortable |
|
@@ -0,0 +1,170 @@
|
|
1
|
+
module Alula
|
2
|
+
class Receiver < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::RelationshipAttributes
|
5
|
+
extend Alula::ApiOperations::Request
|
6
|
+
extend Alula::ApiOperations::List
|
7
|
+
extend Alula::ApiOperations::Save
|
8
|
+
|
9
|
+
resource_path 'receivers'
|
10
|
+
type 'receivers'
|
11
|
+
|
12
|
+
# Relationships
|
13
|
+
relationship :dealer, type: 'dealers', cardinality: 'To-one'
|
14
|
+
|
15
|
+
# Resource Fields
|
16
|
+
field :id,
|
17
|
+
type: :string,
|
18
|
+
sortable: false,
|
19
|
+
filterable: false,
|
20
|
+
creatable_by: [],
|
21
|
+
patchable_by: []
|
22
|
+
|
23
|
+
field :dealer_id,
|
24
|
+
type: :string,
|
25
|
+
sortable: false,
|
26
|
+
filterable: true,
|
27
|
+
creatable_by: [:system, :station, :dealer],
|
28
|
+
patchable_by: []
|
29
|
+
|
30
|
+
field :receiver_type,
|
31
|
+
type: :string,
|
32
|
+
sortable: false,
|
33
|
+
filterable: false,
|
34
|
+
creatable_by: [:system, :station, :dealer],
|
35
|
+
patchable_by: [:system, :station, :dealer]
|
36
|
+
|
37
|
+
field :name,
|
38
|
+
type: :string,
|
39
|
+
sortable: true,
|
40
|
+
filterable: true,
|
41
|
+
creatable_by: [:system, :station, :dealer],
|
42
|
+
patchable_by: [:system, :station, :dealer, :technician, :user, :sub_user]
|
43
|
+
|
44
|
+
field :description,
|
45
|
+
type: :string,
|
46
|
+
sortable: false,
|
47
|
+
filterable: false,
|
48
|
+
creatable_by: [:system, :station, :dealer],
|
49
|
+
patchable_by: [:system, :station, :dealer, :technician, :user, :sub_user]
|
50
|
+
|
51
|
+
field :path,
|
52
|
+
type: :string,
|
53
|
+
sortable: false,
|
54
|
+
filterable: true,
|
55
|
+
creatable_by: [:system, :station, :dealer],
|
56
|
+
patchable_by: [:system, :station, :dealer]
|
57
|
+
|
58
|
+
field :recv_num,
|
59
|
+
type: :number,
|
60
|
+
sortable: false,
|
61
|
+
filterable: false,
|
62
|
+
creatable_by: [:system, :station, :dealer],
|
63
|
+
patchable_by: [:system, :station, :dealer]
|
64
|
+
|
65
|
+
field :line_num,
|
66
|
+
type: :number,
|
67
|
+
sortable: false,
|
68
|
+
filterable: false,
|
69
|
+
creatable_by: [:system, :station, :dealer],
|
70
|
+
patchable_by: [:system, :station, :dealer]
|
71
|
+
|
72
|
+
field :dealer_acnt,
|
73
|
+
type: :string,
|
74
|
+
sortable: false,
|
75
|
+
filterable: false,
|
76
|
+
creatable_by: [:system, :station, :dealer],
|
77
|
+
patchable_by: [:system, :station, :dealer]
|
78
|
+
|
79
|
+
field :appykey,
|
80
|
+
type: :string,
|
81
|
+
sortable: false,
|
82
|
+
filterable: false,
|
83
|
+
creatable_by: [:system, :station, :dealer],
|
84
|
+
patchable_by: [:system, :station, :dealer]
|
85
|
+
|
86
|
+
field :username,
|
87
|
+
type: :string,
|
88
|
+
sortable: false,
|
89
|
+
filterable: false,
|
90
|
+
creatable_by: [:system, :station, :dealer],
|
91
|
+
patchable_by: [:system, :station, :dealer]
|
92
|
+
|
93
|
+
field :passwd,
|
94
|
+
type: :string,
|
95
|
+
sortable: false,
|
96
|
+
filterable: false,
|
97
|
+
creatable_by: [:system, :station, :dealer],
|
98
|
+
patchable_by: [:system, :station, :dealer]
|
99
|
+
|
100
|
+
field :hb_key,
|
101
|
+
type: :string,
|
102
|
+
sortable: false,
|
103
|
+
filterable: false,
|
104
|
+
creatable_by: [:system, :station, :dealer],
|
105
|
+
patchable_by: [:system, :station, :dealer]
|
106
|
+
|
107
|
+
field :testing,
|
108
|
+
type: :number,
|
109
|
+
sortable: false,
|
110
|
+
filterable: false,
|
111
|
+
creatable_by: [:system, :station, :dealer],
|
112
|
+
patchable_by: [:system, :station, :dealer]
|
113
|
+
|
114
|
+
field :include_customer_ip,
|
115
|
+
type: :number,
|
116
|
+
sortable: false,
|
117
|
+
filterable: false,
|
118
|
+
creatable_by: [:system, :station, :dealer],
|
119
|
+
patchable_by: [:system, :station, :dealer]
|
120
|
+
|
121
|
+
field :aes256,
|
122
|
+
type: :string,
|
123
|
+
sortable: false,
|
124
|
+
filterable: false,
|
125
|
+
creatable_by: [:system, :station, :dealer],
|
126
|
+
patchable_by: [:system, :station, :dealer]
|
127
|
+
|
128
|
+
field :date_modified,
|
129
|
+
type: :date,
|
130
|
+
sortable: true,
|
131
|
+
filterable: true,
|
132
|
+
creatable_by: [],
|
133
|
+
patchable_by: []
|
134
|
+
|
135
|
+
field :date_entered,
|
136
|
+
type: :date,
|
137
|
+
sortable: true,
|
138
|
+
filterable: true,
|
139
|
+
creatable_by: [],
|
140
|
+
patchable_by: []
|
141
|
+
|
142
|
+
field :created_by,
|
143
|
+
type: :string,
|
144
|
+
sortable: false,
|
145
|
+
filterable: false,
|
146
|
+
creatable_by: [],
|
147
|
+
patchable_by: []
|
148
|
+
|
149
|
+
field :modified_by,
|
150
|
+
type: :string,
|
151
|
+
sortable: false,
|
152
|
+
filterable: false,
|
153
|
+
creatable_by: [],
|
154
|
+
patchable_by: []
|
155
|
+
|
156
|
+
field :status,
|
157
|
+
type: :string,
|
158
|
+
sortable: false,
|
159
|
+
filterable: false,
|
160
|
+
creatable_by: [],
|
161
|
+
patchable_by: []
|
162
|
+
|
163
|
+
field :disabled,
|
164
|
+
type: :boolean,
|
165
|
+
sortable: false,
|
166
|
+
filterable: false,
|
167
|
+
creatable_by: [],
|
168
|
+
patchable_by: []
|
169
|
+
end
|
170
|
+
end
|
data/lib/alula/version.rb
CHANGED
data/lib/alula.rb
CHANGED
@@ -67,6 +67,7 @@ require_relative 'alula/resources/token_exchange'
|
|
67
67
|
require_relative 'alula/resources/receiver_connection'
|
68
68
|
require_relative 'alula/resources/receiver_group'
|
69
69
|
require_relative 'alula/resources/receiver_disabled'
|
70
|
+
require_relative 'alula/resources/receiver'
|
70
71
|
require_relative 'alula/resources/revision'
|
71
72
|
require_relative 'alula/resources/station'
|
72
73
|
require_relative 'alula/resources/oauth_client'
|
@@ -130,8 +131,10 @@ module Alula
|
|
130
131
|
# {
|
131
132
|
# 'feature-plansvideo' => Alula::FeaturePlanVideo
|
132
133
|
# }
|
133
|
-
# This is used to
|
134
|
-
# API query responses
|
134
|
+
# This is used to
|
135
|
+
# 1) determine which class to initialize when working with API query responses and included models
|
136
|
+
# 2) build models as defined in relationships.
|
137
|
+
|
135
138
|
@@resource_map = [
|
136
139
|
Alula::BillingProgram,
|
137
140
|
Alula::Dealer,
|
@@ -159,6 +162,8 @@ module Alula
|
|
159
162
|
Alula::OAuthClient,
|
160
163
|
Alula::ReceiverGroup,
|
161
164
|
Alula::ReceiverDisabled,
|
165
|
+
Alula::ReceiverConnection,
|
166
|
+
Alula::Receiver,
|
162
167
|
Alula::Revision,
|
163
168
|
Alula::Self,
|
164
169
|
Alula::Station,
|
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.
|
4
|
+
version: 2.10.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: 2025-
|
11
|
+
date: 2025-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- lib/alula/resources/feature_price.rb
|
301
301
|
- lib/alula/resources/helix_user.rb
|
302
302
|
- lib/alula/resources/oauth_client.rb
|
303
|
+
- lib/alula/resources/receiver.rb
|
303
304
|
- lib/alula/resources/receiver_connection.rb
|
304
305
|
- lib/alula/resources/receiver_disabled.rb
|
305
306
|
- lib/alula/resources/receiver_group.rb
|