alula-ruby 0.50.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +14 -0
  3. data/.env.example +8 -0
  4. data/.github/workflows/gem-push.yml +45 -0
  5. data/.gitignore +23 -0
  6. data/.rspec +3 -0
  7. data/.travis.yml +7 -0
  8. data/Dockerfile +6 -0
  9. data/Gemfile +12 -0
  10. data/Guardfile +42 -0
  11. data/README.md +423 -0
  12. data/Rakefile +6 -0
  13. data/VERSION.md +84 -0
  14. data/alula-docker-compose.yml +80 -0
  15. data/alula.gemspec +38 -0
  16. data/bin/console +15 -0
  17. data/bin/docparse +36 -0
  18. data/bin/genresource +79 -0
  19. data/bin/setup +8 -0
  20. data/bin/testauth +24 -0
  21. data/bin/testprep +9 -0
  22. data/data/docs/Alula_API_Documentation_2021-04-06.html +16240 -0
  23. data/docker-compose.yml +11 -0
  24. data/lib/alula/alula_response.rb +20 -0
  25. data/lib/alula/api_operations/delete.rb +52 -0
  26. data/lib/alula/api_operations/list.rb +45 -0
  27. data/lib/alula/api_operations/request.rb +44 -0
  28. data/lib/alula/api_operations/save.rb +81 -0
  29. data/lib/alula/api_resource.rb +196 -0
  30. data/lib/alula/client.rb +142 -0
  31. data/lib/alula/errors.rb +169 -0
  32. data/lib/alula/filter_builder.rb +271 -0
  33. data/lib/alula/helpers/device_attribute_translations.rb +68 -0
  34. data/lib/alula/list_object.rb +64 -0
  35. data/lib/alula/meta.rb +16 -0
  36. data/lib/alula/monkey_patches.rb +24 -0
  37. data/lib/alula/oauth.rb +118 -0
  38. data/lib/alula/pagination.rb +25 -0
  39. data/lib/alula/procedures/dealer_device_stats_proc.rb +16 -0
  40. data/lib/alula/procedures/dealer_restore_proc.rb +25 -0
  41. data/lib/alula/procedures/dealer_suspend_proc.rb +25 -0
  42. data/lib/alula/procedures/device_assign_proc.rb +23 -0
  43. data/lib/alula/procedures/device_cellular_history_proc.rb +33 -0
  44. data/lib/alula/procedures/device_rateplan_get_proc.rb +21 -0
  45. data/lib/alula/procedures/device_register_proc.rb +31 -0
  46. data/lib/alula/procedures/device_signal_add_proc.rb +42 -0
  47. data/lib/alula/procedures/device_signal_delivered_proc.rb +31 -0
  48. data/lib/alula/procedures/device_signal_update_proc.rb +32 -0
  49. data/lib/alula/procedures/device_unassign_proc.rb +16 -0
  50. data/lib/alula/procedures/device_unregister_proc.rb +21 -0
  51. data/lib/alula/procedures/upload_touchpad_branding_proc.rb +24 -0
  52. data/lib/alula/procedures/user_plansvideo_price_get.rb +21 -0
  53. data/lib/alula/procedures/user_transfer_accept.rb +19 -0
  54. data/lib/alula/procedures/user_transfer_authorize.rb +18 -0
  55. data/lib/alula/procedures/user_transfer_cancel.rb +18 -0
  56. data/lib/alula/procedures/user_transfer_deny.rb +19 -0
  57. data/lib/alula/procedures/user_transfer_reject.rb +19 -0
  58. data/lib/alula/procedures/user_transfer_request.rb +19 -0
  59. data/lib/alula/query_interface.rb +142 -0
  60. data/lib/alula/rate_limit.rb +11 -0
  61. data/lib/alula/relationship_attributes.rb +107 -0
  62. data/lib/alula/resource_attributes.rb +206 -0
  63. data/lib/alula/resources/admin_user.rb +207 -0
  64. data/lib/alula/resources/billing_program.rb +41 -0
  65. data/lib/alula/resources/dealer.rb +218 -0
  66. data/lib/alula/resources/dealer_account_transfer.rb +172 -0
  67. data/lib/alula/resources/dealer_address.rb +89 -0
  68. data/lib/alula/resources/dealer_branding.rb +226 -0
  69. data/lib/alula/resources/dealer_program.rb +75 -0
  70. data/lib/alula/resources/dealer_suspension_log.rb +49 -0
  71. data/lib/alula/resources/device.rb +716 -0
  72. data/lib/alula/resources/device_cellular_status.rb +134 -0
  73. data/lib/alula/resources/device_charge.rb +70 -0
  74. data/lib/alula/resources/device_event_log.rb +167 -0
  75. data/lib/alula/resources/device_program.rb +54 -0
  76. data/lib/alula/resources/event_trigger.rb +75 -0
  77. data/lib/alula/resources/event_webhook.rb +47 -0
  78. data/lib/alula/resources/feature_bysubject.rb +74 -0
  79. data/lib/alula/resources/feature_plan.rb +57 -0
  80. data/lib/alula/resources/feature_planvideo.rb +54 -0
  81. data/lib/alula/resources/feature_price.rb +46 -0
  82. data/lib/alula/resources/receiver_connection.rb +95 -0
  83. data/lib/alula/resources/receiver_group.rb +74 -0
  84. data/lib/alula/resources/revision.rb +91 -0
  85. data/lib/alula/resources/self.rb +61 -0
  86. data/lib/alula/resources/station.rb +130 -0
  87. data/lib/alula/resources/token_exchange.rb +34 -0
  88. data/lib/alula/resources/user.rb +229 -0
  89. data/lib/alula/resources/user_address.rb +121 -0
  90. data/lib/alula/resources/user_phone.rb +116 -0
  91. data/lib/alula/resources/user_preferences.rb +57 -0
  92. data/lib/alula/resources/user_pushtoken.rb +75 -0
  93. data/lib/alula/resources/user_videoprofile.rb +38 -0
  94. data/lib/alula/rest_resource.rb +17 -0
  95. data/lib/alula/rpc_resource.rb +40 -0
  96. data/lib/alula/rpc_response.rb +14 -0
  97. data/lib/alula/singleton_rest_resource.rb +26 -0
  98. data/lib/alula/util.rb +107 -0
  99. data/lib/alula/version.rb +5 -0
  100. data/lib/alula.rb +135 -0
  101. data/lib/parser.rb +199 -0
  102. 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