alula-ruby 0.50.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +14 -0
- data/.env.example +8 -0
- data/.github/workflows/gem-push.yml +45 -0
- data/.gitignore +23 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Dockerfile +6 -0
- data/Gemfile +12 -0
- data/Guardfile +42 -0
- data/README.md +423 -0
- data/Rakefile +6 -0
- data/VERSION.md +84 -0
- data/alula-docker-compose.yml +80 -0
- data/alula.gemspec +38 -0
- data/bin/console +15 -0
- data/bin/docparse +36 -0
- data/bin/genresource +79 -0
- data/bin/setup +8 -0
- data/bin/testauth +24 -0
- data/bin/testprep +9 -0
- data/data/docs/Alula_API_Documentation_2021-04-06.html +16240 -0
- data/docker-compose.yml +11 -0
- data/lib/alula/alula_response.rb +20 -0
- data/lib/alula/api_operations/delete.rb +52 -0
- data/lib/alula/api_operations/list.rb +45 -0
- data/lib/alula/api_operations/request.rb +44 -0
- data/lib/alula/api_operations/save.rb +81 -0
- data/lib/alula/api_resource.rb +196 -0
- data/lib/alula/client.rb +142 -0
- data/lib/alula/errors.rb +169 -0
- data/lib/alula/filter_builder.rb +271 -0
- data/lib/alula/helpers/device_attribute_translations.rb +68 -0
- data/lib/alula/list_object.rb +64 -0
- data/lib/alula/meta.rb +16 -0
- data/lib/alula/monkey_patches.rb +24 -0
- data/lib/alula/oauth.rb +118 -0
- data/lib/alula/pagination.rb +25 -0
- data/lib/alula/procedures/dealer_device_stats_proc.rb +16 -0
- data/lib/alula/procedures/dealer_restore_proc.rb +25 -0
- data/lib/alula/procedures/dealer_suspend_proc.rb +25 -0
- data/lib/alula/procedures/device_assign_proc.rb +23 -0
- data/lib/alula/procedures/device_cellular_history_proc.rb +33 -0
- data/lib/alula/procedures/device_rateplan_get_proc.rb +21 -0
- data/lib/alula/procedures/device_register_proc.rb +31 -0
- data/lib/alula/procedures/device_signal_add_proc.rb +42 -0
- data/lib/alula/procedures/device_signal_delivered_proc.rb +31 -0
- data/lib/alula/procedures/device_signal_update_proc.rb +32 -0
- data/lib/alula/procedures/device_unassign_proc.rb +16 -0
- data/lib/alula/procedures/device_unregister_proc.rb +21 -0
- data/lib/alula/procedures/upload_touchpad_branding_proc.rb +24 -0
- data/lib/alula/procedures/user_plansvideo_price_get.rb +21 -0
- data/lib/alula/procedures/user_transfer_accept.rb +19 -0
- data/lib/alula/procedures/user_transfer_authorize.rb +18 -0
- data/lib/alula/procedures/user_transfer_cancel.rb +18 -0
- data/lib/alula/procedures/user_transfer_deny.rb +19 -0
- data/lib/alula/procedures/user_transfer_reject.rb +19 -0
- data/lib/alula/procedures/user_transfer_request.rb +19 -0
- data/lib/alula/query_interface.rb +142 -0
- data/lib/alula/rate_limit.rb +11 -0
- data/lib/alula/relationship_attributes.rb +107 -0
- data/lib/alula/resource_attributes.rb +206 -0
- data/lib/alula/resources/admin_user.rb +207 -0
- data/lib/alula/resources/billing_program.rb +41 -0
- data/lib/alula/resources/dealer.rb +218 -0
- data/lib/alula/resources/dealer_account_transfer.rb +172 -0
- data/lib/alula/resources/dealer_address.rb +89 -0
- data/lib/alula/resources/dealer_branding.rb +226 -0
- data/lib/alula/resources/dealer_program.rb +75 -0
- data/lib/alula/resources/dealer_suspension_log.rb +49 -0
- data/lib/alula/resources/device.rb +716 -0
- data/lib/alula/resources/device_cellular_status.rb +134 -0
- data/lib/alula/resources/device_charge.rb +70 -0
- data/lib/alula/resources/device_event_log.rb +167 -0
- data/lib/alula/resources/device_program.rb +54 -0
- data/lib/alula/resources/event_trigger.rb +75 -0
- data/lib/alula/resources/event_webhook.rb +47 -0
- data/lib/alula/resources/feature_bysubject.rb +74 -0
- data/lib/alula/resources/feature_plan.rb +57 -0
- data/lib/alula/resources/feature_planvideo.rb +54 -0
- data/lib/alula/resources/feature_price.rb +46 -0
- data/lib/alula/resources/receiver_connection.rb +95 -0
- data/lib/alula/resources/receiver_group.rb +74 -0
- data/lib/alula/resources/revision.rb +91 -0
- data/lib/alula/resources/self.rb +61 -0
- data/lib/alula/resources/station.rb +130 -0
- data/lib/alula/resources/token_exchange.rb +34 -0
- data/lib/alula/resources/user.rb +229 -0
- data/lib/alula/resources/user_address.rb +121 -0
- data/lib/alula/resources/user_phone.rb +116 -0
- data/lib/alula/resources/user_preferences.rb +57 -0
- data/lib/alula/resources/user_pushtoken.rb +75 -0
- data/lib/alula/resources/user_videoprofile.rb +38 -0
- data/lib/alula/rest_resource.rb +17 -0
- data/lib/alula/rpc_resource.rb +40 -0
- data/lib/alula/rpc_response.rb +14 -0
- data/lib/alula/singleton_rest_resource.rb +26 -0
- data/lib/alula/util.rb +107 -0
- data/lib/alula/version.rb +5 -0
- data/lib/alula.rb +135 -0
- data/lib/parser.rb +199 -0
- metadata +282 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
module Alula
|
2
|
+
class DealerProgram < 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 'dealers/programs'
|
10
|
+
type 'dealers-programs'
|
11
|
+
|
12
|
+
# Relationships
|
13
|
+
relationship :dealer, type: 'dealers', cardinality: 'To-one'
|
14
|
+
relationship :billingProgram, type: 'billing-program', cardinality: 'To-one'
|
15
|
+
|
16
|
+
# Resource Fields
|
17
|
+
# Not all params are used at the moment. See Alula::ResourceAttributes for details
|
18
|
+
# on how params are parsed,
|
19
|
+
field :id,
|
20
|
+
type: :string,
|
21
|
+
sortable: false,
|
22
|
+
filterable: false,
|
23
|
+
creatable_by: [],
|
24
|
+
patchable_by: []
|
25
|
+
|
26
|
+
field :dealer_id,
|
27
|
+
type: :string,
|
28
|
+
sortable: false,
|
29
|
+
filterable: true,
|
30
|
+
creatable_by: [:system],
|
31
|
+
patchable_by: []
|
32
|
+
|
33
|
+
field :billing_program_id,
|
34
|
+
type: :string,
|
35
|
+
sortable: false,
|
36
|
+
filterable: true,
|
37
|
+
creatable_by: [:system],
|
38
|
+
patchable_by: []
|
39
|
+
|
40
|
+
field :name,
|
41
|
+
type: :string,
|
42
|
+
sortable: true,
|
43
|
+
filterable: true,
|
44
|
+
creatable_by: [:system],
|
45
|
+
patchable_by: []
|
46
|
+
|
47
|
+
field :description,
|
48
|
+
type: :string,
|
49
|
+
sortable: false,
|
50
|
+
filterable: false,
|
51
|
+
creatable_by: [:system],
|
52
|
+
patchable_by: [:system]
|
53
|
+
|
54
|
+
field :params,
|
55
|
+
type: :object,
|
56
|
+
sortable: false,
|
57
|
+
filterable: false,
|
58
|
+
creatable_by: [:system],
|
59
|
+
patchable_by: [:system]
|
60
|
+
|
61
|
+
field :date_modified,
|
62
|
+
type: :date,
|
63
|
+
sortable: true,
|
64
|
+
filterable: true,
|
65
|
+
creatable_by: [],
|
66
|
+
patchable_by: []
|
67
|
+
|
68
|
+
field :date_created,
|
69
|
+
type: :date,
|
70
|
+
sortable: true,
|
71
|
+
filterable: true,
|
72
|
+
creatable_by: [],
|
73
|
+
patchable_by: []
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module Alula
|
2
|
+
class DealerSuspensionLog < Alula::RestResource
|
3
|
+
extend Alula::ResourceAttributes
|
4
|
+
extend Alula::RelationshipAttributes
|
5
|
+
extend Alula::ApiOperations::Request
|
6
|
+
extend Alula::ApiOperations::List
|
7
|
+
|
8
|
+
# You should update this to be a slash-separated, literal path to the resource
|
9
|
+
# without the prefix /api/v1 or the suffix of an ID
|
10
|
+
resource_path 'dealers/suspensionlog'
|
11
|
+
type 'dealers-suspensionlog'
|
12
|
+
|
13
|
+
# Relationships
|
14
|
+
relationship :dealer, type: 'dealers', cardinality: 'To-one'
|
15
|
+
relationship :user, type: 'users', cardinality: 'To-one'
|
16
|
+
|
17
|
+
# Resource Fields
|
18
|
+
# Not all params are used at the moment. See Alula::ResourceAttributes for details
|
19
|
+
# on how params are parsed,
|
20
|
+
field :dealer_id,
|
21
|
+
type: :string,
|
22
|
+
sortable: false,
|
23
|
+
filterable: true,
|
24
|
+
creatable_by: [],
|
25
|
+
patchable_by: []
|
26
|
+
|
27
|
+
field :user_id,
|
28
|
+
type: :string,
|
29
|
+
sortable: false,
|
30
|
+
filterable: true,
|
31
|
+
creatable_by: [],
|
32
|
+
patchable_by: []
|
33
|
+
|
34
|
+
field :action,
|
35
|
+
type: :string,
|
36
|
+
sortable: false,
|
37
|
+
filterable: true,
|
38
|
+
creatable_by: [],
|
39
|
+
patchable_by: []
|
40
|
+
|
41
|
+
field :date,
|
42
|
+
type: :date,
|
43
|
+
sortable: true,
|
44
|
+
filterable: true,
|
45
|
+
creatable_by: [],
|
46
|
+
patchable_by: []
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|