files.com 1.0.49 → 1.0.50

Sign up to get free protection for your applications and to get access to all the features.
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,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class BundlePublic
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Bundle code
13
- def code
14
- @attributes[:code]
15
- end
16
-
17
- # string - Bundle url
18
- def url
19
- @attributes[:url]
20
- end
21
-
22
- # string - Bundle description
23
- def description
24
- @attributes[:description]
25
- end
26
- end
27
- end
@@ -1,452 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Certificate
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Certificate ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- def id=(value)
18
- @attributes[:id] = value
19
- end
20
-
21
- # string - Full text of SSL certificate
22
- def certificate
23
- @attributes[:certificate]
24
- end
25
-
26
- def certificate=(value)
27
- @attributes[:certificate] = value
28
- end
29
-
30
- # date-time - Certificate created at
31
- def created_at
32
- @attributes[:created_at]
33
- end
34
-
35
- # string - Certificate status. (One of `Request Generated`, `New`, `Active`, `Active/Expired`, `Expired`, or `Available`)
36
- def display_status
37
- @attributes[:display_status]
38
- end
39
-
40
- def display_status=(value)
41
- @attributes[:display_status] = value
42
- end
43
-
44
- # array - Domains on this certificate other than files.com domains
45
- def domains
46
- @attributes[:domains]
47
- end
48
-
49
- def domains=(value)
50
- @attributes[:domains] = value
51
- end
52
-
53
- # date-time - Certificate expiration date/time
54
- def expires_at
55
- @attributes[:expires_at]
56
- end
57
-
58
- def expires_at=(value)
59
- @attributes[:expires_at] = value
60
- end
61
-
62
- # boolean - Is this certificate automatically managed and renewed by Files.com?
63
- def brick_managed
64
- @attributes[:brick_managed]
65
- end
66
-
67
- def brick_managed=(value)
68
- @attributes[:brick_managed] = value
69
- end
70
-
71
- # string - Intermediate certificates
72
- def intermediates
73
- @attributes[:intermediates]
74
- end
75
-
76
- def intermediates=(value)
77
- @attributes[:intermediates] = value
78
- end
79
-
80
- # array - A list of IP addresses associated with this SSL Certificate
81
- def ip_addresses
82
- @attributes[:ip_addresses]
83
- end
84
-
85
- def ip_addresses=(value)
86
- @attributes[:ip_addresses] = value
87
- end
88
-
89
- # string - X509 issuer
90
- def issuer
91
- @attributes[:issuer]
92
- end
93
-
94
- def issuer=(value)
95
- @attributes[:issuer] = value
96
- end
97
-
98
- # string - Descriptive name of certificate
99
- def name
100
- @attributes[:name]
101
- end
102
-
103
- def name=(value)
104
- @attributes[:name] = value
105
- end
106
-
107
- # string - Type of key
108
- def key_type
109
- @attributes[:key_type]
110
- end
111
-
112
- def key_type=(value)
113
- @attributes[:key_type] = value
114
- end
115
-
116
- # string - Certificate signing request text
117
- def request
118
- @attributes[:request]
119
- end
120
-
121
- def request=(value)
122
- @attributes[:request] = value
123
- end
124
-
125
- # string - Certificate status (Request Generated, New, Active, Active/Expired, Expired, or Available)
126
- def status
127
- @attributes[:status]
128
- end
129
-
130
- def status=(value)
131
- @attributes[:status] = value
132
- end
133
-
134
- # string - X509 Subject name
135
- def subject
136
- @attributes[:subject]
137
- end
138
-
139
- def subject=(value)
140
- @attributes[:subject] = value
141
- end
142
-
143
- # date-time - Certificated last updated at
144
- def updated_at
145
- @attributes[:updated_at]
146
- end
147
-
148
- # string - Domain for certificate.
149
- def certificate_domain
150
- @attributes[:certificate_domain]
151
- end
152
-
153
- def certificate_domain=(value)
154
- @attributes[:certificate_domain] = value
155
- end
156
-
157
- # string - Country.
158
- def certificate_country
159
- @attributes[:certificate_country]
160
- end
161
-
162
- def certificate_country=(value)
163
- @attributes[:certificate_country] = value
164
- end
165
-
166
- # string - State or province.
167
- def certificate_state_or_province
168
- @attributes[:certificate_state_or_province]
169
- end
170
-
171
- def certificate_state_or_province=(value)
172
- @attributes[:certificate_state_or_province] = value
173
- end
174
-
175
- # string - City or locale.
176
- def certificate_city_or_locale
177
- @attributes[:certificate_city_or_locale]
178
- end
179
-
180
- def certificate_city_or_locale=(value)
181
- @attributes[:certificate_city_or_locale] = value
182
- end
183
-
184
- # string - Company name.
185
- def certificate_company_name
186
- @attributes[:certificate_company_name]
187
- end
188
-
189
- def certificate_company_name=(value)
190
- @attributes[:certificate_company_name] = value
191
- end
192
-
193
- # string - Department name or organization unit 1
194
- def csr_ou1
195
- @attributes[:csr_ou1]
196
- end
197
-
198
- def csr_ou1=(value)
199
- @attributes[:csr_ou1] = value
200
- end
201
-
202
- # string - Department name or organization unit 2
203
- def csr_ou2
204
- @attributes[:csr_ou2]
205
- end
206
-
207
- def csr_ou2=(value)
208
- @attributes[:csr_ou2] = value
209
- end
210
-
211
- # string - Department name or organization unit 3
212
- def csr_ou3
213
- @attributes[:csr_ou3]
214
- end
215
-
216
- def csr_ou3=(value)
217
- @attributes[:csr_ou3] = value
218
- end
219
-
220
- # string - Email address for the certificate owner.
221
- def certificate_email_address
222
- @attributes[:certificate_email_address]
223
- end
224
-
225
- def certificate_email_address=(value)
226
- @attributes[:certificate_email_address] = value
227
- end
228
-
229
- # string - Confirms the key type.
230
- def key_type_confirm_given
231
- @attributes[:key_type_confirm_given]
232
- end
233
-
234
- def key_type_confirm_given=(value)
235
- @attributes[:key_type_confirm_given] = value
236
- end
237
-
238
- # string - Certificate private key.
239
- def private_key
240
- @attributes[:private_key]
241
- end
242
-
243
- def private_key=(value)
244
- @attributes[:private_key] = value
245
- end
246
-
247
- # string - Certificate password.
248
- def password
249
- @attributes[:password]
250
- end
251
-
252
- def password=(value)
253
- @attributes[:password] = value
254
- end
255
-
256
- # Deactivate SSL Certificate
257
- def deactivate(params = {})
258
- params ||= {}
259
- params[:id] = @attributes[:id]
260
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
261
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
262
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
263
-
264
- Api.send_request("/certificates/#{@attributes[:id]}/deactivate", :post, params, @options)
265
- end
266
-
267
- # Activate SSL Certificate
268
- #
269
- # Parameters:
270
- # replace_cert - string - Leave blank, set to `any` or `new_ips`.
271
- def activate(params = {})
272
- params ||= {}
273
- params[:id] = @attributes[:id]
274
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
275
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
276
- raise InvalidParameterError.new("Bad parameter: replace_cert must be an String") if params.dig(:replace_cert) and !params.dig(:replace_cert).is_a?(String)
277
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
278
-
279
- Api.send_request("/certificates/#{@attributes[:id]}/activate", :post, params, @options)
280
- end
281
-
282
- # Parameters:
283
- # name - string - Internal certificate name.
284
- # intermediates - string - Any intermediate certificates. PEM or PKCS7 formats accepted.
285
- # certificate - string - The certificate. PEM or PKCS7 formats accepted.
286
- def update(params = {})
287
- params ||= {}
288
- params[:id] = @attributes[:id]
289
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
290
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
291
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
292
- raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if params.dig(:intermediates) and !params.dig(:intermediates).is_a?(String)
293
- raise InvalidParameterError.new("Bad parameter: certificate must be an String") if params.dig(:certificate) and !params.dig(:certificate).is_a?(String)
294
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
295
-
296
- Api.send_request("/certificates/#{@attributes[:id]}", :patch, params, @options)
297
- end
298
-
299
- def delete(params = {})
300
- params ||= {}
301
- params[:id] = @attributes[:id]
302
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
303
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
304
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
305
-
306
- Api.send_request("/certificates/#{@attributes[:id]}", :delete, params, @options)
307
- end
308
-
309
- def destroy(params = {})
310
- delete(params)
311
- end
312
-
313
- def save
314
- if @attributes[:id]
315
- update(@attributes)
316
- else
317
- new_obj = Certificate.create(@attributes, @options)
318
- @attributes = new_obj.attributes
319
- end
320
- end
321
-
322
- # Parameters:
323
- # page - integer - Current page number.
324
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
325
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
326
- def self.list(params = {}, options = {})
327
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
328
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
329
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
330
-
331
- response, options = Api.send_request("/certificates", :get, params, options)
332
- response.data.map { |object| Certificate.new(object, options) }
333
- end
334
-
335
- def self.all(params = {}, options = {})
336
- list(params, options)
337
- end
338
-
339
- # Parameters:
340
- # id (required) - integer - Certificate ID.
341
- def self.find(id, params = {}, options = {})
342
- params ||= {}
343
- params[:id] = id
344
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
345
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
346
-
347
- response, options = Api.send_request("/certificates/#{params[:id]}", :get, params, options)
348
- Certificate.new(response.data, options)
349
- end
350
-
351
- def self.get(id, params = {}, options = {})
352
- find(id, params, options)
353
- end
354
-
355
- # Parameters:
356
- # name (required) - string - Internal name of the SSL certificate.
357
- # certificate_domain - string - Domain for certificate.
358
- # certificate_country - string - Country.
359
- # certificate_state_or_province - string - State or province.
360
- # certificate_city_or_locale - string - City or locale.
361
- # certificate_company_name - string - Company name.
362
- # csr_ou1 - string - Department name or organization unit 1
363
- # csr_ou2 - string - Department name or organization unit 2
364
- # csr_ou3 - string - Department name or organization unit 3
365
- # certificate_email_address - string - Email address for the certificate owner.
366
- # key_type - string - Any supported key type. Defaults to `RSA-4096`.
367
- # key_type_confirm_given - string - Confirms the key type.
368
- # certificate - string - The certificate. PEM or PKCS7 formats accepted.
369
- # private_key - string - Certificate private key.
370
- # password - string - Certificate password.
371
- # intermediates - string - Intermediate certificates. PEM or PKCS7 formats accepted.
372
- def self.create(params = {}, options = {})
373
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
374
- raise InvalidParameterError.new("Bad parameter: certificate_domain must be an String") if params.dig(:certificate_domain) and !params.dig(:certificate_domain).is_a?(String)
375
- raise InvalidParameterError.new("Bad parameter: certificate_country must be an String") if params.dig(:certificate_country) and !params.dig(:certificate_country).is_a?(String)
376
- raise InvalidParameterError.new("Bad parameter: certificate_state_or_province must be an String") if params.dig(:certificate_state_or_province) and !params.dig(:certificate_state_or_province).is_a?(String)
377
- raise InvalidParameterError.new("Bad parameter: certificate_city_or_locale must be an String") if params.dig(:certificate_city_or_locale) and !params.dig(:certificate_city_or_locale).is_a?(String)
378
- raise InvalidParameterError.new("Bad parameter: certificate_company_name must be an String") if params.dig(:certificate_company_name) and !params.dig(:certificate_company_name).is_a?(String)
379
- raise InvalidParameterError.new("Bad parameter: csr_ou1 must be an String") if params.dig(:csr_ou1) and !params.dig(:csr_ou1).is_a?(String)
380
- raise InvalidParameterError.new("Bad parameter: csr_ou2 must be an String") if params.dig(:csr_ou2) and !params.dig(:csr_ou2).is_a?(String)
381
- raise InvalidParameterError.new("Bad parameter: csr_ou3 must be an String") if params.dig(:csr_ou3) and !params.dig(:csr_ou3).is_a?(String)
382
- raise InvalidParameterError.new("Bad parameter: certificate_email_address must be an String") if params.dig(:certificate_email_address) and !params.dig(:certificate_email_address).is_a?(String)
383
- raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params.dig(:key_type) and !params.dig(:key_type).is_a?(String)
384
- raise InvalidParameterError.new("Bad parameter: key_type_confirm_given must be an String") if params.dig(:key_type_confirm_given) and !params.dig(:key_type_confirm_given).is_a?(String)
385
- raise InvalidParameterError.new("Bad parameter: certificate must be an String") if params.dig(:certificate) and !params.dig(:certificate).is_a?(String)
386
- raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
387
- raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
388
- raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if params.dig(:intermediates) and !params.dig(:intermediates).is_a?(String)
389
- raise MissingParameterError.new("Parameter missing: name") unless params.dig(:name)
390
-
391
- response, options = Api.send_request("/certificates", :post, params, options)
392
- Certificate.new(response.data, options)
393
- end
394
-
395
- # Deactivate SSL Certificate
396
- def self.deactivate(id, params = {}, options = {})
397
- params ||= {}
398
- params[:id] = id
399
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
400
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
401
-
402
- response, _options = Api.send_request("/certificates/#{params[:id]}/deactivate", :post, params, options)
403
- response.data
404
- end
405
-
406
- # Activate SSL Certificate
407
- #
408
- # Parameters:
409
- # replace_cert - string - Leave blank, set to `any` or `new_ips`.
410
- def self.activate(id, params = {}, options = {})
411
- params ||= {}
412
- params[:id] = id
413
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
414
- raise InvalidParameterError.new("Bad parameter: replace_cert must be an String") if params.dig(:replace_cert) and !params.dig(:replace_cert).is_a?(String)
415
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
416
-
417
- response, _options = Api.send_request("/certificates/#{params[:id]}/activate", :post, params, options)
418
- response.data
419
- end
420
-
421
- # Parameters:
422
- # name - string - Internal certificate name.
423
- # intermediates - string - Any intermediate certificates. PEM or PKCS7 formats accepted.
424
- # certificate - string - The certificate. PEM or PKCS7 formats accepted.
425
- def self.update(id, params = {}, options = {})
426
- params ||= {}
427
- params[:id] = id
428
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
429
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
430
- raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if params.dig(:intermediates) and !params.dig(:intermediates).is_a?(String)
431
- raise InvalidParameterError.new("Bad parameter: certificate must be an String") if params.dig(:certificate) and !params.dig(:certificate).is_a?(String)
432
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
433
-
434
- response, options = Api.send_request("/certificates/#{params[:id]}", :patch, params, options)
435
- Certificate.new(response.data, options)
436
- end
437
-
438
- def self.delete(id, params = {}, options = {})
439
- params ||= {}
440
- params[:id] = id
441
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
442
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
443
-
444
- response, _options = Api.send_request("/certificates/#{params[:id]}", :delete, params, options)
445
- response.data
446
- end
447
-
448
- def self.destroy(id, params = {}, options = {})
449
- delete(id, params, options)
450
- end
451
- end
452
- end