files.com 1.0.49 → 1.0.50

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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. metadata +1 -61
  4. data/Gemfile.lock +0 -49
  5. data/docs/account.md +0 -87
  6. data/docs/announcement.md +0 -45
  7. data/docs/blog_post.md +0 -35
  8. data/docs/bundle_file.md +0 -17
  9. data/docs/bundle_public.md +0 -15
  10. data/docs/certificate.md +0 -250
  11. data/docs/crash_report.md +0 -46
  12. data/docs/email_feedback.md +0 -16
  13. data/docs/email_preference.md +0 -41
  14. data/docs/email_preference_notification.md +0 -17
  15. data/docs/inbox.md +0 -37
  16. data/docs/oauth_redirect.md +0 -11
  17. data/docs/paired_api_key.md +0 -17
  18. data/docs/paypal_express_info.md +0 -31
  19. data/docs/paypal_express_url.md +0 -11
  20. data/docs/plan.md +0 -145
  21. data/docs/plan_rate.md +0 -31
  22. data/docs/regional_migration.md +0 -39
  23. data/docs/release.md +0 -34
  24. data/docs/release_package.md +0 -13
  25. data/docs/setting.md +0 -33
  26. data/docs/settings.md +0 -187
  27. data/docs/support_request.md +0 -96
  28. data/docs/two_factor_authentication_method.md +0 -152
  29. data/docs/u2f_sign_request.md +0 -15
  30. data/docs/upload.md +0 -54
  31. data/docs/upsell.md +0 -33
  32. data/docs/warning.md +0 -31
  33. data/docs/zip_download.md +0 -27
  34. data/files.com-1.0.0.gem +0 -0
  35. data/lib/files.com/models/account.rb +0 -142
  36. data/lib/files.com/models/announcement.rb +0 -74
  37. data/lib/files.com/models/blog_post.rb +0 -49
  38. data/lib/files.com/models/bundle_file.rb +0 -32
  39. data/lib/files.com/models/bundle_public.rb +0 -27
  40. data/lib/files.com/models/certificate.rb +0 -452
  41. data/lib/files.com/models/crash_report.rb +0 -129
  42. data/lib/files.com/models/email_feedback.rb +0 -29
  43. data/lib/files.com/models/email_preference.rb +0 -46
  44. data/lib/files.com/models/email_preference_notification.rb +0 -32
  45. data/lib/files.com/models/inbox.rb +0 -54
  46. data/lib/files.com/models/oauth_redirect.rb +0 -17
  47. data/lib/files.com/models/paired_api_key.rb +0 -32
  48. data/lib/files.com/models/paypal_express_info.rb +0 -67
  49. data/lib/files.com/models/paypal_express_url.rb +0 -17
  50. data/lib/files.com/models/plan.rb +0 -316
  51. data/lib/files.com/models/plan_rate.rb +0 -39
  52. data/lib/files.com/models/regional_migration.rb +0 -59
  53. data/lib/files.com/models/release.rb +0 -41
  54. data/lib/files.com/models/release_package.rb +0 -22
  55. data/lib/files.com/models/setting.rb +0 -36
  56. data/lib/files.com/models/settings.rb +0 -441
  57. data/lib/files.com/models/support_request.rb +0 -143
  58. data/lib/files.com/models/two_factor_authentication_method.rb +0 -230
  59. data/lib/files.com/models/u2f_sign_request.rb +0 -27
  60. data/lib/files.com/models/upload.rb +0 -83
  61. data/lib/files.com/models/upsell.rb +0 -38
  62. data/lib/files.com/models/warning.rb +0 -34
  63. data/lib/files.com/models/zip_download.rb +0 -49
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class PlanRate
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Plan Name
13
- def plan_name
14
- @attributes[:plan_name]
15
- end
16
-
17
- # object - Rates for each currency
18
- def rates
19
- @attributes[:rates]
20
- end
21
-
22
- # Parameters:
23
- # page - integer - Current page number.
24
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
25
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
26
- def self.list(params = {}, options = {})
27
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
28
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
29
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
30
-
31
- response, options = Api.send_request("/plan_rates", :get, params, options)
32
- response.data.map { |object| PlanRate.new(object, options) }
33
- end
34
-
35
- def self.all(params = {}, options = {})
36
- list(params, options)
37
- end
38
- end
39
- end
@@ -1,59 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class RegionalMigration
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Regional migration ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- # int64 - Number of files moved
18
- def files_moved
19
- @attributes[:files_moved]
20
- end
21
-
22
- # int64 - Total number of files
23
- def files_total
24
- @attributes[:files_total]
25
- end
26
-
27
- # string - Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
28
- def path
29
- @attributes[:path]
30
- end
31
-
32
- # string - Region
33
- def region
34
- @attributes[:region]
35
- end
36
-
37
- # string - Status
38
- def status
39
- @attributes[:status]
40
- end
41
-
42
- # Parameters:
43
- # page - integer - Current page number.
44
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
46
- def self.list(params = {}, options = {})
47
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
48
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
49
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
50
-
51
- response, options = Api.send_request("/regional_migrations", :get, params, options)
52
- response.data.map { |object| RegionalMigration.new(object, options) }
53
- end
54
-
55
- def self.all(params = {}, options = {})
56
- list(params, options)
57
- end
58
- end
59
- end
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Release
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Native release description
13
- def description
14
- @attributes[:description]
15
- end
16
-
17
- # array - A list of native release packages
18
- def native_release_packages
19
- @attributes[:native_release_packages]
20
- end
21
-
22
- # string - Native release title
23
- def title
24
- @attributes[:title]
25
- end
26
-
27
- # string - Native release version
28
- def version
29
- @attributes[:version]
30
- end
31
-
32
- # Parameters:
33
- # platform - string
34
- def self.get_latest(params = {}, options = {})
35
- raise InvalidParameterError.new("Bad parameter: platform must be an String") if params.dig(:platform) and !params.dig(:platform).is_a?(String)
36
-
37
- response, options = Api.send_request("/releases/latest", :get, params, options)
38
- Release.new(response.data, options)
39
- end
40
- end
41
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class ReleasePackage
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Link to the package
13
- def package_link
14
- @attributes[:package_link]
15
- end
16
-
17
- # string - Release platform
18
- def platform
19
- @attributes[:platform]
20
- end
21
- end
22
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Setting
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- def self.languages(params = {}, options = {})
13
- response, _options = Api.send_request("/settings/languages", :get, params, options)
14
- response.data
15
- end
16
-
17
- def self.list(params = {}, options = {})
18
- response, options = Api.send_request("/settings", :get, params, options)
19
- Settings.new(response.data, options)
20
- end
21
-
22
- def self.all(params = {}, options = {})
23
- list(params, options)
24
- end
25
-
26
- # Parameters:
27
- # domain (required) - string
28
- def self.get_domain(params = {}, options = {})
29
- raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
30
- raise MissingParameterError.new("Parameter missing: domain") unless params.dig(:domain)
31
-
32
- response, options = Api.send_request("/settings/domain", :get, params, options)
33
- Settings.new(response.data, options)
34
- end
35
- end
36
- end
@@ -1,441 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Settings
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - All supported image types
13
- def image_regex
14
- @attributes[:image_regex]
15
- end
16
-
17
- # string - All supported video types
18
- def video_regex
19
- @attributes[:video_regex]
20
- end
21
-
22
- # string - All supported audio types
23
- def audio_regex
24
- @attributes[:audio_regex]
25
- end
26
-
27
- # string - All supported PDF types
28
- def pdf_regex
29
- @attributes[:pdf_regex]
30
- end
31
-
32
- # string - Deprecated
33
- def tab_config
34
- @attributes[:tab_config]
35
- end
36
-
37
- # boolean - Password check skipped?
38
- def reauth
39
- @attributes[:reauth]
40
- end
41
-
42
- # array - Region name and description
43
- def regions
44
- @attributes[:regions]
45
- end
46
-
47
- # array - Region name and description
48
- def s3_regions
49
- @attributes[:s3_regions]
50
- end
51
-
52
- # array - States with applicable sales tax
53
- def sales_tax_regions
54
- @attributes[:sales_tax_regions]
55
- end
56
-
57
- # string - Current language locale setting
58
- def current_language
59
- @attributes[:current_language]
60
- end
61
-
62
- # string - Is this session read only?
63
- def read_only
64
- @attributes[:read_only]
65
- end
66
-
67
- # string - Session locale setting
68
- def session_language
69
- @attributes[:session_language]
70
- end
71
-
72
- # string - Primary domain name base of the site
73
- def primary_sub_domain_base
74
- @attributes[:primary_sub_domain_base]
75
- end
76
-
77
- # boolean - Can the user create attachments, including bundles?
78
- def attachments_permission
79
- @attributes[:attachments_permission]
80
- end
81
-
82
- # string - Authentication method for the user. Can be `password`, `ldap`, `sso`, or `none`
83
- def authentication_method
84
- @attributes[:authentication_method]
85
- end
86
-
87
- # string - URL holding the user's avatar
88
- def avatar_url
89
- @attributes[:avatar_url]
90
- end
91
-
92
- # boolean - Can the user connect with WebDAV?
93
- def dav_permission
94
- @attributes[:dav_permission]
95
- end
96
-
97
- # email - User email address
98
- def email
99
- @attributes[:email]
100
- end
101
-
102
- # boolean - If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
103
- def folder_permissions_groups_only
104
- @attributes[:folder_permissions_groups_only]
105
- end
106
-
107
- # boolean - Can the user access with FTP/FTPS?
108
- def ftp_permission
109
- @attributes[:ftp_permission]
110
- end
111
-
112
- # boolean - Is a group administrator?
113
- def group_admin
114
- @attributes[:group_admin]
115
- end
116
-
117
- # date-time - The last date/time this user has read announcements
118
- def last_read_announcements_at
119
- @attributes[:last_read_announcements_at]
120
- end
121
-
122
- # string - User name
123
- def name
124
- @attributes[:name]
125
- end
126
-
127
- # int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
128
- def notification_daily_send_time
129
- @attributes[:notification_daily_send_time]
130
- end
131
-
132
- # boolean - Does this user manage it's own credentials?
133
- def self_managed
134
- @attributes[:self_managed]
135
- end
136
-
137
- # boolean - Can the user access with SFTP?
138
- def sftp_permission
139
- @attributes[:sftp_permission]
140
- end
141
-
142
- # boolean - Is the user an administrator for this site?
143
- def site_admin
144
- @attributes[:site_admin]
145
- end
146
-
147
- # boolean - Skip the welcome screen?
148
- def skip_welcome_screen
149
- @attributes[:skip_welcome_screen]
150
- end
151
-
152
- # boolean - Is this user automatically managed?
153
- def externally_managed
154
- @attributes[:externally_managed]
155
- end
156
-
157
- # string - User time zone
158
- def time_zone
159
- @attributes[:time_zone]
160
- end
161
-
162
- # string - 2fa type
163
- def type_of_2fa
164
- @attributes[:type_of_2fa]
165
- end
166
-
167
- # string - 2fa type
168
- def reauth_2fa
169
- @attributes[:reauth_2fa]
170
- end
171
-
172
- # int64 - User ID
173
- def user_id
174
- @attributes[:user_id]
175
- end
176
-
177
- # string - Preferred language
178
- def user_language
179
- @attributes[:user_language]
180
- end
181
-
182
- # string - User's username
183
- def username
184
- @attributes[:username]
185
- end
186
-
187
- # string - Root web folder
188
- def web_root
189
- @attributes[:web_root]
190
- end
191
-
192
- # boolean - Is SMS two factor authentication allowed?
193
- def allowed_2fa_method_sms
194
- @attributes[:allowed_2fa_method_sms]
195
- end
196
-
197
- # boolean - Is TOTP two factor authentication allowed?
198
- def allowed_2fa_method_totp
199
- @attributes[:allowed_2fa_method_totp]
200
- end
201
-
202
- # boolean - Is U2F two factor authentication allowed?
203
- def allowed_2fa_method_u2f
204
- @attributes[:allowed_2fa_method_u2f]
205
- end
206
-
207
- # boolean - Is yubikey two factor authentication allowed?
208
- def allowed_2fa_method_yubi
209
- @attributes[:allowed_2fa_method_yubi]
210
- end
211
-
212
- # boolean - Is beta feature 1 available?
213
- def beta_features
214
- @attributes[:beta_features]
215
- end
216
-
217
- # boolean - Is beta feature 2 available?
218
- def beta_feature2
219
- @attributes[:beta_feature2]
220
- end
221
-
222
- # boolean - Is beta feature 3 available?
223
- def beta_feature3
224
- @attributes[:beta_feature3]
225
- end
226
-
227
- # int64 - Site-wide bundle expiration in days
228
- def bundle_expiration
229
- @attributes[:bundle_expiration]
230
- end
231
-
232
- # boolean - Do bundle shares require password protection?
233
- def bundle_password_required
234
- @attributes[:bundle_password_required]
235
- end
236
-
237
- # boolean - Do site-wide password requirements apply to bundles?
238
- def password_requirements_apply_to_bundles
239
- @attributes[:password_requirements_apply_to_bundles]
240
- end
241
-
242
- # boolean - Is the desktop app enabled?
243
- def desktop_app
244
- @attributes[:desktop_app]
245
- end
246
-
247
- # boolean - Connected to an account?
248
- def has_account
249
- @attributes[:has_account]
250
- end
251
-
252
- # boolean - Hide billing information?
253
- def hide_billing
254
- @attributes[:hide_billing]
255
- end
256
-
257
- # boolean - Is history unavailable?
258
- def history_unavailable
259
- @attributes[:history_unavailable]
260
- end
261
-
262
- # boolean - Are files protected from modification?
263
- def immutable_files
264
- @attributes[:immutable_files]
265
- end
266
-
267
- # boolean - Is billing overdue?
268
- def overdue
269
- @attributes[:overdue]
270
- end
271
-
272
- # boolean - Is the site unavailable?
273
- def site_unavailable
274
- @attributes[:site_unavailable]
275
- end
276
-
277
- # int64 - Shortest password length for users
278
- def password_min_length
279
- @attributes[:password_min_length]
280
- end
281
-
282
- # boolean - Require a letter in passwords?
283
- def password_require_letter
284
- @attributes[:password_require_letter]
285
- end
286
-
287
- # boolean - Require lower and upper case letters in passwords?
288
- def password_require_mixed
289
- @attributes[:password_require_mixed]
290
- end
291
-
292
- # boolean - Require a number in passwords?
293
- def password_require_number
294
- @attributes[:password_require_number]
295
- end
296
-
297
- # boolean - Require special characters in password?
298
- def password_require_special
299
- @attributes[:password_require_special]
300
- end
301
-
302
- # string - Site public url
303
- def public_url
304
- @attributes[:public_url]
305
- end
306
-
307
- # boolean - Require two-factor authentication for the current user?
308
- def require_2fa
309
- @attributes[:require_2fa]
310
- end
311
-
312
- # boolean - Show request access link for users without access?
313
- def show_request_access_link
314
- @attributes[:show_request_access_link]
315
- end
316
-
317
- # int64 - Number of days left in trial
318
- def trial_days_left
319
- @attributes[:trial_days_left]
320
- end
321
-
322
- # boolean - Is this site a free trial that is locked due to fraud concerns?
323
- def trial_locked
324
- @attributes[:trial_locked]
325
- end
326
-
327
- # boolean - Has this site been flagged as a duplicate of another trial?
328
- def trial_flagged_as_duplicate
329
- @attributes[:trial_flagged_as_duplicate]
330
- end
331
-
332
- # date-time - When does this Site trial expire?
333
- def trial_until
334
- @attributes[:trial_until]
335
- end
336
-
337
- # boolean - Allow setting provided_modified_at?
338
- def use_provided_modified_at
339
- @attributes[:use_provided_modified_at]
340
- end
341
-
342
- # boolean - Does the site have a large number of users? (Used to hide some UI features that may be slow in this case.)
343
- def high_users_count
344
- @attributes[:high_users_count]
345
- end
346
-
347
- # int64 - Count of users on the site. Only exposed for site admins.
348
- def users_count
349
- @attributes[:users_count]
350
- end
351
-
352
- # string - Page link and button color
353
- def color2_left
354
- @attributes[:color2_left]
355
- end
356
-
357
- # string - Top bar link color
358
- def color2_link
359
- @attributes[:color2_link]
360
- end
361
-
362
- # string - Page link and button color
363
- def color2_text
364
- @attributes[:color2_text]
365
- end
366
-
367
- # string - Top bar background color
368
- def color2_top
369
- @attributes[:color2_top]
370
- end
371
-
372
- # string - Top bar text color
373
- def color2_top_text
374
- @attributes[:color2_top_text]
375
- end
376
-
377
- # boolean - Is password reset disabled?
378
- def disable_password_reset
379
- @attributes[:disable_password_reset]
380
- end
381
-
382
- # string - Login help text
383
- def login_help_text
384
- @attributes[:login_help_text]
385
- end
386
-
387
- # string - Site name
388
- def site_name
389
- @attributes[:site_name]
390
- end
391
-
392
- def sso_strategies
393
- @attributes[:sso_strategies]
394
- end
395
-
396
- # string - Site footer for branding
397
- def site_footer
398
- @attributes[:site_footer]
399
- end
400
-
401
- # string - Site header for branding
402
- def site_header
403
- @attributes[:site_header]
404
- end
405
-
406
- # string - Site language locale
407
- def site_language
408
- @attributes[:site_language]
409
- end
410
-
411
- # string - Does the welcome screen appear? Can be `enabled`, `hidden`, or `disabled`
412
- def welcome_screen
413
- @attributes[:welcome_screen]
414
- end
415
-
416
- # Branded icon 128x128
417
- def icon128
418
- @attributes[:icon128]
419
- end
420
-
421
- # Branded icon 16x16
422
- def icon16
423
- @attributes[:icon16]
424
- end
425
-
426
- # Branded icon 32x32
427
- def icon32
428
- @attributes[:icon32]
429
- end
430
-
431
- # Branded icon 48x48
432
- def icon48
433
- @attributes[:icon48]
434
- end
435
-
436
- # Branded logo
437
- def logo
438
- @attributes[:logo]
439
- end
440
- end
441
- end