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,143 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class SupportRequest
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- def id=(value)
18
- @attributes[:id] = value
19
- end
20
-
21
- # string - Subject of the support request.
22
- def subject
23
- @attributes[:subject]
24
- end
25
-
26
- def subject=(value)
27
- @attributes[:subject] = value
28
- end
29
-
30
- # string - Main body of the support request.
31
- def comment
32
- @attributes[:comment]
33
- end
34
-
35
- def comment=(value)
36
- @attributes[:comment] = value
37
- end
38
-
39
- # date - When this support request was made.
40
- def created_at
41
- @attributes[:created_at]
42
- end
43
-
44
- # string - Enable Customer Success access to your user account?
45
- def customer_success_access
46
- @attributes[:customer_success_access]
47
- end
48
-
49
- def customer_success_access=(value)
50
- @attributes[:customer_success_access] = value
51
- end
52
-
53
- # string - Priority. Can be `low` (e.g. general or billing/acount questions), `normal` (e.g. the system is impaired), `high` (e.g. a production workflow or business process is impaired), `urgent` (e.g. a production workflow or business process is down), `critical` (e.g. a business-critical workflow or business process is down)
54
- def priority
55
- @attributes[:priority]
56
- end
57
-
58
- def priority=(value)
59
- @attributes[:priority] = value
60
- end
61
-
62
- # string - Email address of the user requesting support.
63
- def email
64
- @attributes[:email]
65
- end
66
-
67
- def email=(value)
68
- @attributes[:email] = value
69
- end
70
-
71
- # Parameters:
72
- # customer_success_access - string - Enable Customer Success access to your user account?
73
- def update(params = {})
74
- params ||= {}
75
- params[:id] = @attributes[:id]
76
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
77
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
78
- raise InvalidParameterError.new("Bad parameter: customer_success_access must be an String") if params.dig(:customer_success_access) and !params.dig(:customer_success_access).is_a?(String)
79
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
80
-
81
- Api.send_request("/support_requests/#{@attributes[:id]}", :patch, params, @options)
82
- end
83
-
84
- def save
85
- if @attributes[:id]
86
- update(@attributes)
87
- else
88
- new_obj = SupportRequest.create(@attributes, @options)
89
- @attributes = new_obj.attributes
90
- end
91
- end
92
-
93
- # Parameters:
94
- # page - integer - Current page number.
95
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
96
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
97
- def self.list(params = {}, options = {})
98
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
99
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
100
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
101
-
102
- response, options = Api.send_request("/support_requests", :get, params, options)
103
- response.data.map { |object| SupportRequest.new(object, options) }
104
- end
105
-
106
- def self.all(params = {}, options = {})
107
- list(params, options)
108
- end
109
-
110
- # Parameters:
111
- # customer_success_access - string - Enable Customer Success access to your user account?
112
- # email (required) - string - Email address of the user requesting support.
113
- # subject (required) - string - Subject of the support request.
114
- # comment (required) - string - Main body of the support request.
115
- # priority - string - Priority. Can be `low` (e.g. general or billing/acount questions), `normal` (e.g. the system is impaired), `high` (e.g. a production workflow or business process is impaired), `urgent` (e.g. a production workflow or business process is down), `critical` (e.g. a business-critical workflow or business process is down)
116
- def self.create(params = {}, options = {})
117
- raise InvalidParameterError.new("Bad parameter: customer_success_access must be an String") if params.dig(:customer_success_access) and !params.dig(:customer_success_access).is_a?(String)
118
- raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
119
- raise InvalidParameterError.new("Bad parameter: subject must be an String") if params.dig(:subject) and !params.dig(:subject).is_a?(String)
120
- raise InvalidParameterError.new("Bad parameter: comment must be an String") if params.dig(:comment) and !params.dig(:comment).is_a?(String)
121
- raise InvalidParameterError.new("Bad parameter: priority must be an String") if params.dig(:priority) and !params.dig(:priority).is_a?(String)
122
- raise MissingParameterError.new("Parameter missing: email") unless params.dig(:email)
123
- raise MissingParameterError.new("Parameter missing: subject") unless params.dig(:subject)
124
- raise MissingParameterError.new("Parameter missing: comment") unless params.dig(:comment)
125
-
126
- response, options = Api.send_request("/support_requests", :post, params, options)
127
- SupportRequest.new(response.data, options)
128
- end
129
-
130
- # Parameters:
131
- # customer_success_access - string - Enable Customer Success access to your user account?
132
- def self.update(id, params = {}, options = {})
133
- params ||= {}
134
- params[:id] = id
135
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
136
- raise InvalidParameterError.new("Bad parameter: customer_success_access must be an String") if params.dig(:customer_success_access) and !params.dig(:customer_success_access).is_a?(String)
137
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
138
-
139
- response, options = Api.send_request("/support_requests/#{params[:id]}", :patch, params, options)
140
- SupportRequest.new(response.data, options)
141
- end
142
- end
143
- end
@@ -1,230 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class TwoFactorAuthenticationMethod
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - 2fa ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- def id=(value)
18
- @attributes[:id] = value
19
- end
20
-
21
- # string - Type of 2fa
22
- def method_type
23
- @attributes[:method_type]
24
- end
25
-
26
- def method_type=(value)
27
- @attributes[:method_type] = value
28
- end
29
-
30
- # string - 2fa method name
31
- def name
32
- @attributes[:name]
33
- end
34
-
35
- def name=(value)
36
- @attributes[:name] = value
37
- end
38
-
39
- # string - 2fa phone number (if SMS)
40
- def phone_number
41
- @attributes[:phone_number]
42
- end
43
-
44
- def phone_number=(value)
45
- @attributes[:phone_number] = value
46
- end
47
-
48
- # string - 2fa phone number country (if SMS)
49
- def phone_number_country
50
- @attributes[:phone_number_country]
51
- end
52
-
53
- def phone_number_country=(value)
54
- @attributes[:phone_number_country] = value
55
- end
56
-
57
- # string - 2fa phone number national format (if SMS)
58
- def phone_number_national_format
59
- @attributes[:phone_number_national_format]
60
- end
61
-
62
- def phone_number_national_format=(value)
63
- @attributes[:phone_number_national_format] = value
64
- end
65
-
66
- # boolean - 2fa setup expired?
67
- def setup_expired
68
- @attributes[:setup_expired]
69
- end
70
-
71
- def setup_expired=(value)
72
- @attributes[:setup_expired] = value
73
- end
74
-
75
- # boolean - 2fa setup complete?
76
- def setup_complete
77
- @attributes[:setup_complete]
78
- end
79
-
80
- def setup_complete=(value)
81
- @attributes[:setup_complete] = value
82
- end
83
-
84
- # date-time - 2fa setup expires at this date/time (typically 10 minutes after a new method is created)
85
- def setup_expires_at
86
- @attributes[:setup_expires_at]
87
- end
88
-
89
- def setup_expires_at=(value)
90
- @attributes[:setup_expires_at] = value
91
- end
92
-
93
- # string - TOTP provisioning URI (if TOTP)
94
- def totp_provisioning_uri
95
- @attributes[:totp_provisioning_uri]
96
- end
97
-
98
- def totp_provisioning_uri=(value)
99
- @attributes[:totp_provisioning_uri] = value
100
- end
101
-
102
- # string - U2F app ID (if U2F)
103
- def u2f_app_id
104
- @attributes[:u2f_app_id]
105
- end
106
-
107
- def u2f_app_id=(value)
108
- @attributes[:u2f_app_id] = value
109
- end
110
-
111
- # array - U2F registration requests (if U2F)
112
- def u2f_registration_requests
113
- @attributes[:u2f_registration_requests]
114
- end
115
-
116
- def u2f_registration_requests=(value)
117
- @attributes[:u2f_registration_requests] = value
118
- end
119
-
120
- # string - Current value of OTP, Yubikey string, or U2F response value. U2F response value requires a json stringified object containing fields `clientData`, `keyHandle`, and `signatureData`.
121
- def otp
122
- @attributes[:otp]
123
- end
124
-
125
- def otp=(value)
126
- @attributes[:otp] = value
127
- end
128
-
129
- # Parameters:
130
- # otp - string - Current value of OTP, Yubikey string, or U2F response value. U2F response value requires a json stringified object containing fields `clientData`, `keyHandle`, and `signatureData`.
131
- # name - string - 2fa method name
132
- def update(params = {})
133
- params ||= {}
134
- params[:id] = @attributes[:id]
135
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
136
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
137
- raise InvalidParameterError.new("Bad parameter: otp must be an String") if params.dig(:otp) and !params.dig(:otp).is_a?(String)
138
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
139
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
140
-
141
- Api.send_request("/2fa/#{@attributes[:id]}", :patch, params, @options)
142
- end
143
-
144
- def delete(params = {})
145
- params ||= {}
146
- params[:id] = @attributes[:id]
147
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
148
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
149
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
150
-
151
- Api.send_request("/2fa/#{@attributes[:id]}", :delete, params, @options)
152
- end
153
-
154
- def destroy(params = {})
155
- delete(params)
156
- end
157
-
158
- def save
159
- if @attributes[:id]
160
- update(@attributes)
161
- else
162
- new_obj = TwoFactorAuthenticationMethod.create(@attributes, @options)
163
- @attributes = new_obj.attributes
164
- end
165
- end
166
-
167
- # Parameters:
168
- # page - integer - Current page number.
169
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
170
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
171
- def self.get(params = {}, options = {})
172
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
173
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
174
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
175
-
176
- response, options = Api.send_request("/2fa", :get, params, options)
177
- response.data.map { |object| TwoFactorAuthenticationMethod.new(object, options) }
178
- end
179
-
180
- # Parameters:
181
- # method_type (required) - string - Type of 2fa
182
- # name - string - 2fa method name
183
- # phone_number - string - 2fa phone number (if SMS)
184
- def self.create(params = {}, options = {})
185
- raise InvalidParameterError.new("Bad parameter: method_type must be an String") if params.dig(:method_type) and !params.dig(:method_type).is_a?(String)
186
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
187
- raise InvalidParameterError.new("Bad parameter: phone_number must be an String") if params.dig(:phone_number) and !params.dig(:phone_number).is_a?(String)
188
- raise MissingParameterError.new("Parameter missing: method_type") unless params.dig(:method_type)
189
-
190
- response, options = Api.send_request("/2fa", :post, params, options)
191
- TwoFactorAuthenticationMethod.new(response.data, options)
192
- end
193
-
194
- # Parameters:
195
- # u2f_only - boolean - Set to `true` to only generate an OTP for U2F (FIDO) keys and skip things like SMS.
196
- def self.send_code(params = {}, options = {})
197
- response, options = Api.send_request("/2fa/send_code", :post, params, options)
198
- U2fSignRequest.new(response.data, options)
199
- end
200
-
201
- # Parameters:
202
- # otp - string - Current value of OTP, Yubikey string, or U2F response value. U2F response value requires a json stringified object containing fields `clientData`, `keyHandle`, and `signatureData`.
203
- # name - string - 2fa method name
204
- def self.update(id, params = {}, options = {})
205
- params ||= {}
206
- params[:id] = id
207
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
208
- raise InvalidParameterError.new("Bad parameter: otp must be an String") if params.dig(:otp) and !params.dig(:otp).is_a?(String)
209
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
210
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
211
-
212
- response, options = Api.send_request("/2fa/#{params[:id]}", :patch, params, options)
213
- TwoFactorAuthenticationMethod.new(response.data, options)
214
- end
215
-
216
- def self.delete(id, params = {}, options = {})
217
- params ||= {}
218
- params[:id] = id
219
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
220
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
221
-
222
- response, _options = Api.send_request("/2fa/#{params[:id]}", :delete, params, options)
223
- response.data
224
- end
225
-
226
- def self.destroy(id, params = {}, options = {})
227
- delete(id, params, options)
228
- end
229
- end
230
- end
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class U2fSignRequest
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - App ID for U2F
13
- def app_id
14
- @attributes[:app_id]
15
- end
16
-
17
- # string - Challenge String for U2F
18
- def challenge
19
- @attributes[:challenge]
20
- end
21
-
22
- # string - Signature request for U2F
23
- def sign_request
24
- @attributes[:sign_request]
25
- end
26
- end
27
- end
@@ -1,83 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Upload
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - File upload ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- def id=(value)
18
- @attributes[:id] = value
19
- end
20
-
21
- # date-time - File upload created at date/time
22
- def created_at
23
- @attributes[:created_at]
24
- end
25
-
26
- # string - Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
27
- def path
28
- @attributes[:path]
29
- end
30
-
31
- def path=(value)
32
- @attributes[:path] = value
33
- end
34
-
35
- # array - A list of file parts included in this upload
36
- def uploads
37
- @attributes[:uploads]
38
- end
39
-
40
- def uploads=(value)
41
- @attributes[:uploads] = value
42
- end
43
-
44
- # int64 - User ID
45
- def user_id
46
- @attributes[:user_id]
47
- end
48
-
49
- def user_id=(value)
50
- @attributes[:user_id] = value
51
- end
52
-
53
- # Parameters:
54
- # path - string - File destination path
55
- def update(params = {})
56
- params ||= {}
57
- params[:id] = @attributes[:id]
58
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
59
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
60
- raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
61
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
62
-
63
- Api.send_request("/uploads/#{@attributes[:id]}", :patch, params, @options)
64
- end
65
-
66
- def save
67
- update(@attributes)
68
- end
69
-
70
- # Parameters:
71
- # path - string - File destination path
72
- def self.update(id, params = {}, options = {})
73
- params ||= {}
74
- params[:id] = id
75
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
76
- raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
77
- raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
78
-
79
- response, options = Api.send_request("/uploads/#{params[:id]}", :patch, params, options)
80
- Upload.new(response.data, options)
81
- end
82
- end
83
- end