files.com 1.0.495 → 1.1.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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/_VERSION +1 -1
  4. data/lib/files.com/models/action_notification_export.rb +3 -1
  5. data/lib/files.com/models/action_webhook_failure.rb +2 -2
  6. data/lib/files.com/models/api_key.rb +10 -6
  7. data/lib/files.com/models/as2_partner.rb +8 -4
  8. data/lib/files.com/models/as2_station.rb +8 -4
  9. data/lib/files.com/models/automation.rb +10 -6
  10. data/lib/files.com/models/behavior.rb +10 -6
  11. data/lib/files.com/models/bundle.rb +10 -6
  12. data/lib/files.com/models/bundle_notification.rb +8 -4
  13. data/lib/files.com/models/bundle_recipient.rb +3 -1
  14. data/lib/files.com/models/clickwrap.rb +8 -4
  15. data/lib/files.com/models/external_event.rb +3 -1
  16. data/lib/files.com/models/file.rb +5 -2
  17. data/lib/files.com/models/file_comment.rb +8 -4
  18. data/lib/files.com/models/file_comment_reaction.rb +7 -3
  19. data/lib/files.com/models/folder.rb +1 -0
  20. data/lib/files.com/models/form_field_set.rb +8 -4
  21. data/lib/files.com/models/gpg_key.rb +8 -4
  22. data/lib/files.com/models/group.rb +8 -4
  23. data/lib/files.com/models/group_user.rb +8 -4
  24. data/lib/files.com/models/history_export.rb +3 -1
  25. data/lib/files.com/models/inbox_recipient.rb +3 -1
  26. data/lib/files.com/models/lock.rb +5 -2
  27. data/lib/files.com/models/message.rb +8 -4
  28. data/lib/files.com/models/message_comment.rb +8 -4
  29. data/lib/files.com/models/message_comment_reaction.rb +7 -3
  30. data/lib/files.com/models/message_reaction.rb +7 -3
  31. data/lib/files.com/models/notification.rb +8 -4
  32. data/lib/files.com/models/permission.rb +7 -3
  33. data/lib/files.com/models/project.rb +8 -4
  34. data/lib/files.com/models/public_key.rb +8 -4
  35. data/lib/files.com/models/remote_server.rb +8 -4
  36. data/lib/files.com/models/request.rb +7 -3
  37. data/lib/files.com/models/session.rb +6 -3
  38. data/lib/files.com/models/sftp_host_key.rb +8 -4
  39. data/lib/files.com/models/share_group.rb +8 -4
  40. data/lib/files.com/models/snapshot.rb +8 -4
  41. data/lib/files.com/models/sso_strategy.rb +2 -2
  42. data/lib/files.com/models/style.rb +7 -3
  43. data/lib/files.com/models/user.rb +14 -10
  44. data/lib/files.com/models/user_request.rb +7 -3
  45. data/lib/files.com/models/webhook_test.rb +3 -1
  46. data/lib/files.com/version.rb +1 -1
  47. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 206a1bd79be86f32fb437df562a09198d3b310ae23aef2cb1c95b5e26be98ffd
4
- data.tar.gz: 44bdab9b929be1a832200ea2e61d557154b918d06b19540494924162b5bc6bfe
3
+ metadata.gz: a2fbd6dbdea6f42c1060384f54dfa543eb4b9ad80361b9310cdefa529b696c04
4
+ data.tar.gz: 222ed8c782d6f879f027ac1cdda0817505b18dc661a266466f2a15d9fafb64ab
5
5
  SHA512:
6
- metadata.gz: 7c48d451ec518fed7264808d960288e63baa6ac6217e9f66dd33cd0ba3557510fa548be4de2a0583119c3eef095e4e35541efe1c80c293d2f07ec3ff31a6ba24
7
- data.tar.gz: c2e8c4fb699b6f054de0e1487a6d69169c0bf5deb554e2ea7a40a8c9860b8c0830eb85eed3997100a8128550ac7dfc27de666e0b52a4035bb3aab68b2873bc88
6
+ metadata.gz: '080fe3873f4bcb61ec486426ff4c51dba42d2a8def8f0f6554401002d5be9c5279d266a25eec4ef13850e970378660643d46ef03b417c9312c68707293b593af'
7
+ data.tar.gz: fb51b321eb8e31258d25e7cbac463ea969973985f061504659ffa2534cd3340436ba9b7b08e10c39305d9870efab05498cc5c908bf4c2d3d3e5b0d364efbce11
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- files.com (1.0)
4
+ files.com (1.1.0)
5
5
  addressable (>= 2.8.0)
6
6
  concurrent-ruby (>= 1.1.3)
7
7
  faraday (>= 1.0.1)
@@ -91,4 +91,4 @@ DEPENDENCIES
91
91
  rubocop
92
92
 
93
93
  BUNDLED WITH
94
- 2.1.4
94
+ 2.4.21
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.495
1
+ 1.1.0
@@ -140,8 +140,10 @@ module Files
140
140
  raise NotImplementedError.new("The ActionNotificationExport object doesn't support updates.")
141
141
  else
142
142
  new_obj = ActionNotificationExport.create(@attributes, @options)
143
- @attributes = new_obj.attributes
144
143
  end
144
+
145
+ @attributes = new_obj.attributes
146
+ true
145
147
  end
146
148
 
147
149
  # Parameters:
@@ -27,8 +27,8 @@ module Files
27
27
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
28
28
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
29
29
 
30
- response, _options = Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
31
- response.data
30
+ Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
31
+ nil
32
32
  end
33
33
  end
34
34
  end
@@ -153,15 +153,18 @@ module Files
153
153
 
154
154
  def destroy(params = {})
155
155
  delete(params)
156
+ nil
156
157
  end
157
158
 
158
159
  def save
159
160
  if @attributes[:id]
160
- update(@attributes)
161
+ new_obj = update(@attributes)
161
162
  else
162
163
  new_obj = ApiKey.create(@attributes, @options)
163
- @attributes = new_obj.attributes
164
164
  end
165
+
166
+ @attributes = new_obj.attributes
167
+ true
165
168
  end
166
169
 
167
170
  # Parameters:
@@ -267,8 +270,8 @@ module Files
267
270
  end
268
271
 
269
272
  def self.delete_current(params = {}, options = {})
270
- response, _options = Api.send_request("/api_key", :delete, params, options)
271
- response.data
273
+ Api.send_request("/api_key", :delete, params, options)
274
+ nil
272
275
  end
273
276
 
274
277
  def self.delete(id, params = {}, options = {})
@@ -277,12 +280,13 @@ module Files
277
280
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
278
281
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
279
282
 
280
- response, _options = Api.send_request("/api_keys/#{params[:id]}", :delete, params, options)
281
- response.data
283
+ Api.send_request("/api_keys/#{params[:id]}", :delete, params, options)
284
+ nil
282
285
  end
283
286
 
284
287
  def self.destroy(id, params = {}, options = {})
285
288
  delete(id, params, options)
289
+ nil
286
290
  end
287
291
  end
288
292
  end
@@ -167,15 +167,18 @@ module Files
167
167
 
168
168
  def destroy(params = {})
169
169
  delete(params)
170
+ nil
170
171
  end
171
172
 
172
173
  def save
173
174
  if @attributes[:id]
174
- update(@attributes)
175
+ new_obj = update(@attributes)
175
176
  else
176
177
  new_obj = As2Partner.create(@attributes, @options)
177
- @attributes = new_obj.attributes
178
178
  end
179
+
180
+ @attributes = new_obj.attributes
181
+ true
179
182
  end
180
183
 
181
184
  # Parameters:
@@ -258,12 +261,13 @@ module Files
258
261
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
259
262
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
260
263
 
261
- response, _options = Api.send_request("/as2_partners/#{params[:id]}", :delete, params, options)
262
- response.data
264
+ Api.send_request("/as2_partners/#{params[:id]}", :delete, params, options)
265
+ nil
263
266
  end
264
267
 
265
268
  def self.destroy(id, params = {}, options = {})
266
269
  delete(id, params, options)
270
+ nil
267
271
  end
268
272
  end
269
273
  end
@@ -184,15 +184,18 @@ module Files
184
184
 
185
185
  def destroy(params = {})
186
186
  delete(params)
187
+ nil
187
188
  end
188
189
 
189
190
  def save
190
191
  if @attributes[:id]
191
- update(@attributes)
192
+ new_obj = update(@attributes)
192
193
  else
193
194
  new_obj = As2Station.create(@attributes, @options)
194
- @attributes = new_obj.attributes
195
195
  end
196
+
197
+ @attributes = new_obj.attributes
198
+ true
196
199
  end
197
200
 
198
201
  # Parameters:
@@ -270,12 +273,13 @@ module Files
270
273
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
271
274
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
272
275
 
273
- response, _options = Api.send_request("/as2_stations/#{params[:id]}", :delete, params, options)
274
- response.data
276
+ Api.send_request("/as2_stations/#{params[:id]}", :delete, params, options)
277
+ nil
275
278
  end
276
279
 
277
280
  def self.destroy(id, params = {}, options = {})
278
281
  delete(id, params, options)
282
+ nil
279
283
  end
280
284
  end
281
285
  end
@@ -294,15 +294,18 @@ module Files
294
294
 
295
295
  def destroy(params = {})
296
296
  delete(params)
297
+ nil
297
298
  end
298
299
 
299
300
  def save
300
301
  if @attributes[:id]
301
- update(@attributes)
302
+ new_obj = update(@attributes)
302
303
  else
303
304
  new_obj = Automation.create(@attributes, @options)
304
- @attributes = new_obj.attributes
305
305
  end
306
+
307
+ @attributes = new_obj.attributes
308
+ true
306
309
  end
307
310
 
308
311
  # Parameters:
@@ -402,8 +405,8 @@ module Files
402
405
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
403
406
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
404
407
 
405
- response, _options = Api.send_request("/automations/#{params[:id]}/manual_run", :post, params, options)
406
- response.data
408
+ Api.send_request("/automations/#{params[:id]}/manual_run", :post, params, options)
409
+ nil
407
410
  end
408
411
 
409
412
  # Parameters:
@@ -460,12 +463,13 @@ module Files
460
463
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
461
464
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
462
465
 
463
- response, _options = Api.send_request("/automations/#{params[:id]}", :delete, params, options)
464
- response.data
466
+ Api.send_request("/automations/#{params[:id]}", :delete, params, options)
467
+ nil
465
468
  end
466
469
 
467
470
  def self.destroy(id, params = {}, options = {})
468
471
  delete(id, params, options)
472
+ nil
469
473
  end
470
474
  end
471
475
  end
@@ -125,15 +125,18 @@ module Files
125
125
 
126
126
  def destroy(params = {})
127
127
  delete(params)
128
+ nil
128
129
  end
129
130
 
130
131
  def save
131
132
  if @attributes[:id]
132
- update(@attributes)
133
+ new_obj = update(@attributes)
133
134
  else
134
135
  new_obj = Behavior.create(@attributes, @options)
135
- @attributes = new_obj.attributes
136
136
  end
137
+
138
+ @attributes = new_obj.attributes
139
+ true
137
140
  end
138
141
 
139
142
  # Parameters:
@@ -237,8 +240,8 @@ module Files
237
240
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
238
241
  raise MissingParameterError.new("Parameter missing: url") unless params[:url]
239
242
 
240
- response, _options = Api.send_request("/behaviors/webhook/test", :post, params, options)
241
- response.data
243
+ Api.send_request("/behaviors/webhook/test", :post, params, options)
244
+ nil
242
245
  end
243
246
 
244
247
  # Parameters:
@@ -271,12 +274,13 @@ module Files
271
274
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
272
275
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
273
276
 
274
- response, _options = Api.send_request("/behaviors/#{params[:id]}", :delete, params, options)
275
- response.data
277
+ Api.send_request("/behaviors/#{params[:id]}", :delete, params, options)
278
+ nil
276
279
  end
277
280
 
278
281
  def self.destroy(id, params = {}, options = {})
279
282
  delete(id, params, options)
283
+ nil
280
284
  end
281
285
  end
282
286
  end
@@ -472,15 +472,18 @@ module Files
472
472
 
473
473
  def destroy(params = {})
474
474
  delete(params)
475
+ nil
475
476
  end
476
477
 
477
478
  def save
478
479
  if @attributes[:id]
479
- update(@attributes)
480
+ new_obj = update(@attributes)
480
481
  else
481
482
  new_obj = Bundle.create(@attributes, @options)
482
- @attributes = new_obj.attributes
483
483
  end
484
+
485
+ @attributes = new_obj.attributes
486
+ true
484
487
  end
485
488
 
486
489
  # Parameters:
@@ -593,8 +596,8 @@ module Files
593
596
  raise InvalidParameterError.new("Bad parameter: recipients must be an Array") if params[:recipients] and !params[:recipients].is_a?(Array)
594
597
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
595
598
 
596
- response, _options = Api.send_request("/bundles/#{params[:id]}/share", :post, params, options)
597
- response.data
599
+ Api.send_request("/bundles/#{params[:id]}/share", :post, params, options)
600
+ nil
598
601
  end
599
602
 
600
603
  # Parameters:
@@ -652,12 +655,13 @@ module Files
652
655
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
653
656
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
654
657
 
655
- response, _options = Api.send_request("/bundles/#{params[:id]}", :delete, params, options)
656
- response.data
658
+ Api.send_request("/bundles/#{params[:id]}", :delete, params, options)
659
+ nil
657
660
  end
658
661
 
659
662
  def self.destroy(id, params = {}, options = {})
660
663
  delete(id, params, options)
664
+ nil
661
665
  end
662
666
  end
663
667
  end
@@ -79,15 +79,18 @@ module Files
79
79
 
80
80
  def destroy(params = {})
81
81
  delete(params)
82
+ nil
82
83
  end
83
84
 
84
85
  def save
85
86
  if @attributes[:id]
86
- update(@attributes)
87
+ new_obj = update(@attributes)
87
88
  else
88
89
  new_obj = BundleNotification.create(@attributes, @options)
89
- @attributes = new_obj.attributes
90
90
  end
91
+
92
+ @attributes = new_obj.attributes
93
+ true
91
94
  end
92
95
 
93
96
  # Parameters:
@@ -159,12 +162,13 @@ module Files
159
162
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
160
163
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
161
164
 
162
- response, _options = Api.send_request("/bundle_notifications/#{params[:id]}", :delete, params, options)
163
- response.data
165
+ Api.send_request("/bundle_notifications/#{params[:id]}", :delete, params, options)
166
+ nil
164
167
  end
165
168
 
166
169
  def self.destroy(id, params = {}, options = {})
167
170
  delete(id, params, options)
171
+ nil
168
172
  end
169
173
  end
170
174
  end
@@ -77,8 +77,10 @@ module Files
77
77
  raise NotImplementedError.new("The BundleRecipient object doesn't support updates.")
78
78
  else
79
79
  new_obj = BundleRecipient.create(@attributes, @options)
80
- @attributes = new_obj.attributes
81
80
  end
81
+
82
+ @attributes = new_obj.attributes
83
+ true
82
84
  end
83
85
 
84
86
  # Parameters:
@@ -96,15 +96,18 @@ module Files
96
96
 
97
97
  def destroy(params = {})
98
98
  delete(params)
99
+ nil
99
100
  end
100
101
 
101
102
  def save
102
103
  if @attributes[:id]
103
- update(@attributes)
104
+ new_obj = update(@attributes)
104
105
  else
105
106
  new_obj = Clickwrap.create(@attributes, @options)
106
- @attributes = new_obj.attributes
107
107
  end
108
+
109
+ @attributes = new_obj.attributes
110
+ true
108
111
  end
109
112
 
110
113
  # Parameters:
@@ -183,12 +186,13 @@ module Files
183
186
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
184
187
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
185
188
 
186
- response, _options = Api.send_request("/clickwraps/#{params[:id]}", :delete, params, options)
187
- response.data
189
+ Api.send_request("/clickwraps/#{params[:id]}", :delete, params, options)
190
+ nil
188
191
  end
189
192
 
190
193
  def self.destroy(id, params = {}, options = {})
191
194
  delete(id, params, options)
195
+ nil
192
196
  end
193
197
  end
194
198
  end
@@ -109,8 +109,10 @@ module Files
109
109
  raise NotImplementedError.new("The ExternalEvent object doesn't support updates.")
110
110
  else
111
111
  new_obj = ExternalEvent.create(@attributes, @options)
112
- @attributes = new_obj.attributes
113
112
  end
113
+
114
+ @attributes = new_obj.attributes
115
+ true
114
116
  end
115
117
 
116
118
  # Parameters:
@@ -852,6 +852,7 @@ module Files
852
852
 
853
853
  def destroy(params = {})
854
854
  delete(params)
855
+ nil
855
856
  end
856
857
 
857
858
  # Copy file/folder
@@ -915,6 +916,7 @@ module Files
915
916
  def save
916
917
  new_obj = File.create(path, @attributes, @options)
917
918
  @attributes = new_obj.attributes
919
+ true
918
920
  end
919
921
 
920
922
  # Download file
@@ -993,12 +995,13 @@ module Files
993
995
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
994
996
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
995
997
 
996
- response, _options = Api.send_request("/files/#{params[:path]}", :delete, params, options)
997
- response.data
998
+ Api.send_request("/files/#{params[:path]}", :delete, params, options)
999
+ nil
998
1000
  end
999
1001
 
1000
1002
  def self.destroy(path, params = {}, options = {})
1001
1003
  delete(path, params, options)
1004
+ nil
1002
1005
  end
1003
1006
 
1004
1007
  # Parameters:
@@ -71,15 +71,18 @@ module Files
71
71
 
72
72
  def destroy(params = {})
73
73
  delete(params)
74
+ nil
74
75
  end
75
76
 
76
77
  def save
77
78
  if @attributes[:id]
78
- update(@attributes)
79
+ new_obj = update(@attributes)
79
80
  else
80
81
  new_obj = FileComment.create(@attributes, @options)
81
- @attributes = new_obj.attributes
82
82
  end
83
+
84
+ @attributes = new_obj.attributes
85
+ true
83
86
  end
84
87
 
85
88
  # Parameters:
@@ -132,12 +135,13 @@ module Files
132
135
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
133
136
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
134
137
 
135
- response, _options = Api.send_request("/file_comments/#{params[:id]}", :delete, params, options)
136
- response.data
138
+ Api.send_request("/file_comments/#{params[:id]}", :delete, params, options)
139
+ nil
137
140
  end
138
141
 
139
142
  def self.destroy(id, params = {}, options = {})
140
143
  delete(id, params, options)
144
+ nil
141
145
  end
142
146
  end
143
147
  end
@@ -57,6 +57,7 @@ module Files
57
57
 
58
58
  def destroy(params = {})
59
59
  delete(params)
60
+ nil
60
61
  end
61
62
 
62
63
  def save
@@ -64,8 +65,10 @@ module Files
64
65
  raise NotImplementedError.new("The FileCommentReaction object doesn't support updates.")
65
66
  else
66
67
  new_obj = FileCommentReaction.create(@attributes, @options)
67
- @attributes = new_obj.attributes
68
68
  end
69
+
70
+ @attributes = new_obj.attributes
71
+ true
69
72
  end
70
73
 
71
74
  # Parameters:
@@ -89,12 +92,13 @@ module Files
89
92
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
90
93
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
91
94
 
92
- response, _options = Api.send_request("/file_comment_reactions/#{params[:id]}", :delete, params, options)
93
- response.data
95
+ Api.send_request("/file_comment_reactions/#{params[:id]}", :delete, params, options)
96
+ nil
94
97
  end
95
98
 
96
99
  def self.destroy(id, params = {}, options = {})
97
100
  delete(id, params, options)
101
+ nil
98
102
  end
99
103
  end
100
104
  end
@@ -320,6 +320,7 @@ module Files
320
320
  def save
321
321
  new_obj = Folder.create(path, @attributes, @options)
322
322
  @attributes = new_obj.attributes
323
+ true
323
324
  end
324
325
 
325
326
  # Parameters:
@@ -111,15 +111,18 @@ module Files
111
111
 
112
112
  def destroy(params = {})
113
113
  delete(params)
114
+ nil
114
115
  end
115
116
 
116
117
  def save
117
118
  if @attributes[:id]
118
- update(@attributes)
119
+ new_obj = update(@attributes)
119
120
  else
120
121
  new_obj = FormFieldSet.create(@attributes, @options)
121
- @attributes = new_obj.attributes
122
122
  end
123
+
124
+ @attributes = new_obj.attributes
125
+ true
123
126
  end
124
127
 
125
128
  # Parameters:
@@ -196,12 +199,13 @@ module Files
196
199
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
197
200
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
198
201
 
199
- response, _options = Api.send_request("/form_field_sets/#{params[:id]}", :delete, params, options)
200
- response.data
202
+ Api.send_request("/form_field_sets/#{params[:id]}", :delete, params, options)
203
+ nil
201
204
  end
202
205
 
203
206
  def self.destroy(id, params = {}, options = {})
204
207
  delete(id, params, options)
208
+ nil
205
209
  end
206
210
  end
207
211
  end
@@ -103,15 +103,18 @@ module Files
103
103
 
104
104
  def destroy(params = {})
105
105
  delete(params)
106
+ nil
106
107
  end
107
108
 
108
109
  def save
109
110
  if @attributes[:id]
110
- update(@attributes)
111
+ new_obj = update(@attributes)
111
112
  else
112
113
  new_obj = GpgKey.create(@attributes, @options)
113
- @attributes = new_obj.attributes
114
114
  end
115
+
116
+ @attributes = new_obj.attributes
117
+ true
115
118
  end
116
119
 
117
120
  # Parameters:
@@ -193,12 +196,13 @@ module Files
193
196
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
194
197
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
195
198
 
196
- response, _options = Api.send_request("/gpg_keys/#{params[:id]}", :delete, params, options)
197
- response.data
199
+ Api.send_request("/gpg_keys/#{params[:id]}", :delete, params, options)
200
+ nil
198
201
  end
199
202
 
200
203
  def self.destroy(id, params = {}, options = {})
201
204
  delete(id, params, options)
205
+ nil
202
206
  end
203
207
  end
204
208
  end
@@ -94,15 +94,18 @@ module Files
94
94
 
95
95
  def destroy(params = {})
96
96
  delete(params)
97
+ nil
97
98
  end
98
99
 
99
100
  def save
100
101
  if @attributes[:id]
101
- update(@attributes)
102
+ new_obj = update(@attributes)
102
103
  else
103
104
  new_obj = Group.create(@attributes, @options)
104
- @attributes = new_obj.attributes
105
105
  end
106
+
107
+ @attributes = new_obj.attributes
108
+ true
106
109
  end
107
110
 
108
111
  # Parameters:
@@ -186,12 +189,13 @@ module Files
186
189
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
187
190
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
188
191
 
189
- response, _options = Api.send_request("/groups/#{params[:id]}", :delete, params, options)
190
- response.data
192
+ Api.send_request("/groups/#{params[:id]}", :delete, params, options)
193
+ nil
191
194
  end
192
195
 
193
196
  def self.destroy(id, params = {}, options = {})
194
197
  delete(id, params, options)
198
+ nil
195
199
  end
196
200
  end
197
201
  end