halo_msp_api 0.2.0 → 0.3.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.
@@ -68,22 +68,22 @@ module HaloMspApi
68
68
  # Ticket Approval methods
69
69
  # GET /TicketApproval - List Ticket approvals
70
70
  def approvals(params = {})
71
- get('TicketApproval', params)
71
+ list_resource('TicketApproval', params)
72
72
  end
73
73
 
74
74
  # GET /TicketApproval/{id} - Get specific Ticket approval
75
75
  def approval(id, params = {})
76
- get("TicketApproval/#{id}", params)
76
+ get_resource('TicketApproval', id, params)
77
77
  end
78
78
 
79
79
  # GET /TicketApproval/{id}&{seq} - Get specific Ticket approval with sequence
80
80
  def approval_with_sequence(id, seq, params = {})
81
- get("TicketApproval/#{id}&#{seq}", params)
81
+ get_resource('TicketApproval', "#{id}&#{seq}", params)
82
82
  end
83
83
 
84
84
  # POST /TicketApproval - Create Ticket approval
85
85
  def create_approval(data)
86
- post('TicketApproval', data)
86
+ create_resource('TicketApproval', data)
87
87
  end
88
88
 
89
89
  # PUT /TicketApproval/{id} - Update Ticket approval
@@ -99,110 +99,125 @@ module HaloMspApi
99
99
  # Ticket Area methods
100
100
  # GET /TicketArea - List Ticket areas
101
101
  def areas(params = {})
102
- get('TicketArea', params)
102
+ list_resource('TicketArea', params)
103
103
  end
104
104
 
105
105
  # GET /TicketArea/{id} - Get specific Ticket area
106
106
  def area(id, params = {})
107
- get("TicketArea/#{id}", params)
107
+ get_resource('TicketArea', id, params)
108
108
  end
109
109
 
110
110
  # POST /TicketArea - Create Ticket area
111
111
  def create_area(data)
112
- post('TicketArea', data)
112
+ create_resource('TicketArea', data)
113
113
  end
114
114
 
115
115
  # PUT /TicketArea/{id} - Update Ticket area
116
116
  def update_area(id, data)
117
- put("TicketArea/#{id}", data)
117
+ update_resource('TicketArea', id, data)
118
118
  end
119
119
 
120
120
  # DELETE /TicketArea/{id} - Delete Ticket area
121
121
  def delete_area(id)
122
- delete("TicketArea/#{id}")
122
+ delete_resource('TicketArea', id)
123
123
  end
124
124
 
125
125
  # Ticket Rules methods
126
126
  # GET /TicketRules - List Ticket rules
127
127
  def rules(params = {})
128
- get('TicketRules', params)
128
+ list_resource('TicketRules', params)
129
129
  end
130
130
 
131
131
  # GET /TicketRules/{id} - Get specific Ticket rule
132
132
  def rule(id, params = {})
133
- get("TicketRules/#{id}", params)
133
+ get_resource('TicketRules', id, params)
134
134
  end
135
135
 
136
136
  # POST /TicketRules - Create Ticket rule
137
137
  def create_rule(data)
138
- post('TicketRules', data)
138
+ create_resource('TicketRules', data)
139
139
  end
140
140
 
141
141
  # PUT /TicketRules/{id} - Update Ticket rule
142
142
  def update_rule(id, data)
143
- put("TicketRules/#{id}", data)
143
+ update_resource('TicketRules', id, data)
144
144
  end
145
145
 
146
146
  # DELETE /TicketRules/{id} - Delete Ticket rule
147
147
  def delete_rule(id)
148
- delete("TicketRules/#{id}")
148
+ delete_resource('TicketRules', id)
149
149
  end
150
150
 
151
151
  # Ticket Type methods
152
152
  # GET /TicketType - List Ticket types
153
153
  def types(params = {})
154
- get('TicketType', params)
154
+ list_resource('TicketType', params)
155
155
  end
156
156
 
157
157
  # GET /TicketType/{id} - Get specific Ticket type
158
158
  def type(id, params = {})
159
- get("TicketType/#{id}", params)
159
+ get_resource('TicketType', id, params)
160
160
  end
161
161
 
162
162
  # POST /TicketType - Create Ticket type
163
163
  def create_type(data)
164
- post('TicketType', data)
164
+ create_resource('TicketType', data)
165
165
  end
166
166
 
167
167
  # PUT /TicketType/{id} - Update Ticket type
168
168
  def update_type(id, data)
169
- put("TicketType/#{id}", data)
169
+ update_resource('TicketType', id, data)
170
170
  end
171
171
 
172
172
  # DELETE /TicketType/{id} - Delete Ticket type
173
173
  def delete_type(id)
174
- delete("TicketType/#{id}")
174
+ delete_resource('TicketType', id)
175
175
  end
176
176
 
177
177
  # GET /TicketTypeField - List Ticket type fields
178
178
  def type_fields(params = {})
179
- get('TicketTypeField', params)
179
+ list_resource('TicketTypeField', params)
180
180
  end
181
181
 
182
182
  # Ticket Type Group methods
183
183
  # GET /TicketTypeGroup - List Ticket type groups
184
184
  def type_groups(params = {})
185
- get('TicketTypeGroup', params)
185
+ list_resource('TicketTypeGroup', params)
186
186
  end
187
187
 
188
188
  # GET /TicketTypeGroup/{id} - Get specific Ticket type group
189
189
  def type_group(id, params = {})
190
- get("TicketTypeGroup/#{id}", params)
190
+ get_resource('TicketTypeGroup', id, params)
191
191
  end
192
192
 
193
193
  # POST /TicketTypeGroup - Create Ticket type group
194
194
  def create_type_group(data)
195
- post('TicketTypeGroup', data)
195
+ create_resource('TicketTypeGroup', data)
196
196
  end
197
197
 
198
198
  # PUT /TicketTypeGroup/{id} - Update Ticket type group
199
199
  def update_type_group(id, data)
200
- put("TicketTypeGroup/#{id}", data)
200
+ update_resource('TicketTypeGroup', id, data)
201
201
  end
202
202
 
203
203
  # DELETE /TicketTypeGroup/{id} - Delete Ticket type group
204
204
  def delete_type_group(id)
205
- delete("TicketTypeGroup/#{id}")
205
+ delete_resource('TicketTypeGroup', id)
206
+ end
207
+
208
+ # GET /Status - List Ticket statuses
209
+ def statuses(params = {})
210
+ list_resource('Status', params)
211
+ end
212
+
213
+ # GET /Category - List Ticket categories
214
+ def categories(params = {})
215
+ list_resource('Category', params)
216
+ end
217
+
218
+ # GET /Lookup - List Tenant defined lookups
219
+ def lookups(params = {})
220
+ list_resource('Lookup', params)
206
221
  end
207
222
  end
208
223
  end
@@ -42,38 +42,38 @@ module HaloMspApi
42
42
  # User Change methods
43
43
  # GET /UserChange - List User changes
44
44
  def changes(params = {})
45
- get('UserChange', params)
45
+ list_resource('UserChange', params)
46
46
  end
47
47
 
48
48
  # POST /UserChange - Create User change
49
49
  def create_change(data)
50
- post('UserChange', data)
50
+ create_resource('UserChange', data)
51
51
  end
52
52
 
53
53
  # User Roles methods
54
54
  # GET /UserRoles - List User roles
55
55
  def roles(params = {})
56
- get('UserRoles', params)
56
+ list_resource('UserRoles', params)
57
57
  end
58
58
 
59
59
  # GET /UserRoles/{id} - Get specific User role
60
60
  def role(id, params = {})
61
- get("UserRoles/#{id}", params)
61
+ get_resource('UserRoles', id, params)
62
62
  end
63
63
 
64
64
  # POST /UserRoles - Create User role
65
65
  def create_role(data)
66
- post('UserRoles', data)
66
+ create_resource('UserRoles', data)
67
67
  end
68
68
 
69
69
  # PUT /UserRoles/{id} - Update User role
70
70
  def update_role(id, data)
71
- put("UserRoles/#{id}", data)
71
+ update_resource('UserRoles', id, data)
72
72
  end
73
73
 
74
74
  # DELETE /UserRoles/{id} - Delete User role
75
75
  def delete_role(id)
76
- delete("UserRoles/#{id}")
76
+ delete_resource('UserRoles', id)
77
77
  end
78
78
  end
79
79
  end
@@ -37,53 +37,53 @@ module HaloMspApi
37
37
  # Webhook Event methods
38
38
  # GET /WebhookEvent - List Webhook events
39
39
  def events(params = {})
40
- get('WebhookEvent', params)
40
+ list_resource('WebhookEvent', params)
41
41
  end
42
42
 
43
43
  # GET /WebhookEvent/{id} - Get specific Webhook event
44
44
  def event(id, params = {})
45
- get("WebhookEvent/#{id}", params)
45
+ get_resource('WebhookEvent', id, params)
46
46
  end
47
47
 
48
48
  # POST /WebhookEvent - Create Webhook event
49
49
  def create_event(data)
50
- post('WebhookEvent', data)
50
+ create_resource('WebhookEvent', data)
51
51
  end
52
52
 
53
53
  # PUT /WebhookEvent/{id} - Update Webhook event
54
54
  def update_event(id, data)
55
- put("WebhookEvent/#{id}", data)
55
+ update_resource('WebhookEvent', id, data)
56
56
  end
57
57
 
58
58
  # DELETE /WebhookEvent/{id} - Delete Webhook event
59
59
  def delete_event(id)
60
- delete("WebhookEvent/#{id}")
60
+ delete_resource('WebhookEvent', id)
61
61
  end
62
62
 
63
63
  # Webhook Subscription methods
64
64
  # GET /WebhookSubscription - List Webhook subscriptions
65
65
  def subscriptions(params = {})
66
- get('WebhookSubscription', params)
66
+ list_resource('WebhookSubscription', params)
67
67
  end
68
68
 
69
69
  # GET /WebhookSubscription/{id} - Get specific Webhook subscription
70
70
  def subscription(id, params = {})
71
- get("WebhookSubscription/#{id}", params)
71
+ get_resource('WebhookSubscription', id, params)
72
72
  end
73
73
 
74
74
  # POST /WebhookSubscription - Create Webhook subscription
75
75
  def create_subscription(data)
76
- post('WebhookSubscription', data)
76
+ create_resource('WebhookSubscription', data)
77
77
  end
78
78
 
79
79
  # PUT /WebhookSubscription/{id} - Update Webhook subscription
80
80
  def update_subscription(id, data)
81
- put("WebhookSubscription/#{id}", data)
81
+ update_resource('WebhookSubscription', id, data)
82
82
  end
83
83
 
84
84
  # DELETE /WebhookSubscription/{id} - Delete Webhook subscription
85
85
  def delete_subscription(id)
86
- delete("WebhookSubscription/#{id}")
86
+ delete_resource('WebhookSubscription', id)
87
87
  end
88
88
  end
89
89
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HaloMspApi
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: halo_msp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evo Security