files.com 1.0.53 → 1.0.58

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. data/docs/bundle.md +54 -5
  4. data/docs/site.md +2 -5
  5. data/docs/sso_strategy.md +4 -0
  6. data/lib/files.com/models/api_key.rb +5 -5
  7. data/lib/files.com/models/as2_key.rb +5 -5
  8. data/lib/files.com/models/automation.rb +3 -3
  9. data/lib/files.com/models/behavior.rb +5 -5
  10. data/lib/files.com/models/bundle.rb +54 -12
  11. data/lib/files.com/models/dns_record.rb +2 -2
  12. data/lib/files.com/models/file.rb +9 -9
  13. data/lib/files.com/models/file_action.rb +6 -6
  14. data/lib/files.com/models/file_comment.rb +2 -2
  15. data/lib/files.com/models/file_comment_reaction.rb +2 -2
  16. data/lib/files.com/models/folder.rb +2 -2
  17. data/lib/files.com/models/group.rb +3 -3
  18. data/lib/files.com/models/group_user.rb +8 -8
  19. data/lib/files.com/models/history.rb +11 -11
  20. data/lib/files.com/models/history_export.rb +10 -10
  21. data/lib/files.com/models/invoice.rb +3 -3
  22. data/lib/files.com/models/ip_address.rb +2 -2
  23. data/lib/files.com/models/lock.rb +3 -3
  24. data/lib/files.com/models/message.rb +9 -9
  25. data/lib/files.com/models/message_comment.rb +6 -6
  26. data/lib/files.com/models/message_comment_reaction.rb +6 -6
  27. data/lib/files.com/models/message_reaction.rb +6 -6
  28. data/lib/files.com/models/notification.rb +7 -7
  29. data/lib/files.com/models/payment.rb +3 -3
  30. data/lib/files.com/models/permission.rb +5 -5
  31. data/lib/files.com/models/project.rb +3 -3
  32. data/lib/files.com/models/public_key.rb +5 -5
  33. data/lib/files.com/models/remote_server.rb +9 -9
  34. data/lib/files.com/models/request.rb +7 -7
  35. data/lib/files.com/models/site.rb +13 -20
  36. data/lib/files.com/models/sso_strategy.rb +13 -3
  37. data/lib/files.com/models/usage_daily_snapshot.rb +2 -2
  38. data/lib/files.com/models/usage_snapshot.rb +2 -2
  39. data/lib/files.com/models/user.rb +15 -15
  40. data/lib/files.com/models/user_cipher_use.rb +3 -3
  41. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a363686b90e3e1673bf9f7b47d9368dd514f05d680000195651de99f0889b310
4
- data.tar.gz: d73ee31b349dc91f5a5b92b76a2acc94f52b4622509df03afdfc3caf76c4a337
3
+ metadata.gz: 95ef0f5e3fcf334ae2d2abecebcf49f85fe6b6527e5d8b5d8553480a0d794395
4
+ data.tar.gz: 32bf7c269933adf563c492162df9a1d2ed234187623549ae1076144c540cc311
5
5
  SHA512:
6
- metadata.gz: 55bef934d42e9c1d2843b4d9a84851d1bb2c64e3fb5f2ed53d61b06936abd8ca0199f87345acf9820985ceca6d9952be51ede738e906fb219e762f81d5cce4b5
7
- data.tar.gz: 4f4bb4f7af296041691fdc12f84e51a1751cb0ca6ec8a6f890ba20b919ced709fc3dce9a5399a967d2ec86a6f9c73046def7ebcb8f2d0ef50db3015ff3886fb3
6
+ metadata.gz: f257bdbe6e08c15938be2b3009c83c1127194d24d5fd93b4b3427a9a3f32046376ed91ea318890904170a258aa5644169db0af2c9c4fd5a49a745dd4015a62bb
7
+ data.tar.gz: 7151db08884f1cd7aa4d33f18e25112abf3beaff0750c16212a3c6185836ec4aa5b900bc3707f80144e2eac057d2f8e4d8773a56136ab98ba89ce54b6bb4ed4d
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.53
1
+ 1.0.58
@@ -77,8 +77,8 @@ Files::Bundle.create(
77
77
  paths: ["file.txt"],
78
78
  password: "Password",
79
79
  expires_at: "2000-01-01T01:00:00Z",
80
- description: "Public description",
81
- note: "Internal Note",
80
+ description: "The public description of the bundle.",
81
+ note: "The internal note on the bundle.",
82
82
  code: "abc123"
83
83
  )
84
84
  ```
@@ -88,10 +88,10 @@ Files::Bundle.create(
88
88
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
89
89
  * `paths` (array(string)): Required - A list of paths to include in this bundle.
90
90
  * `password` (string): Password for this bundle.
91
- * `expires_at` (string): Bundle expiration date/time.
92
- * `description` (string): Bundle public description
91
+ * `expires_at` (string): Bundle expiration date/time
92
+ * `description` (string): Public description
93
93
  * `note` (string): Bundle internal note
94
- * `code` (string): Bundle name
94
+ * `code` (string): Bundle code. This code forms the end part of the Public URL.
95
95
 
96
96
 
97
97
  ---
@@ -112,6 +112,30 @@ Files::Bundle.share(id,
112
112
  * `note` (string): Note to include in email.
113
113
 
114
114
 
115
+ ---
116
+
117
+ ## Update Bundle
118
+
119
+ ```
120
+ Files::Bundle.update(id,
121
+ password: "Password",
122
+ expires_at: "2000-01-01T01:00:00Z",
123
+ description: "The public description of the bundle.",
124
+ note: "The internal note on the bundle.",
125
+ code: "abc123"
126
+ )
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ * `id` (int64): Required - Bundle ID.
132
+ * `password` (string): Password for this bundle.
133
+ * `expires_at` (string): Bundle expiration date/time
134
+ * `description` (string): Public description
135
+ * `note` (string): Bundle internal note
136
+ * `code` (string): Bundle code. This code forms the end part of the Public URL.
137
+
138
+
115
139
  ---
116
140
 
117
141
  ## Delete Bundle
@@ -144,6 +168,31 @@ bundle.share(
144
168
  * `note` (string): Note to include in email.
145
169
 
146
170
 
171
+ ---
172
+
173
+ ## Update Bundle
174
+
175
+ ```
176
+ bundle = Files::Bundle.find(1)
177
+ bundle.update(
178
+ password: "Password",
179
+ expires_at: "2000-01-01T01:00:00Z",
180
+ description: "The public description of the bundle.",
181
+ note: "The internal note on the bundle.",
182
+ code: "abc123"
183
+ )
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+ * `id` (int64): Required - Bundle ID.
189
+ * `password` (string): Password for this bundle.
190
+ * `expires_at` (string): Bundle expiration date/time
191
+ * `description` (string): Public description
192
+ * `note` (string): Bundle internal note
193
+ * `code` (string): Bundle code. This code forms the end part of the Public URL.
194
+
195
+
147
196
  ---
148
197
 
149
198
  ## Delete Bundle
@@ -11,7 +11,6 @@
11
11
  "allowed_2fa_method_yubi": true,
12
12
  "admin_user_id": 1,
13
13
  "allow_bundle_names": true,
14
- "allowed_file_types": "",
15
14
  "allowed_ips": "",
16
15
  "ask_about_overwrites": true,
17
16
  "bundle_expiration": 1,
@@ -120,7 +119,6 @@
120
119
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
121
120
  * `admin_user_id` (int64): User ID for the main site administrator
122
121
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
123
- * `allowed_file_types` (string): List of allowed file types
124
122
  * `allowed_ips` (string): List of allowed IP addresses
125
123
  * `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
126
124
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
@@ -264,7 +262,7 @@ Files::Site.update(
264
262
  desktop_app_session_lifetime: 1,
265
263
  folder_permissions_groups_only: true,
266
264
  welcome_screen: "user_controlled",
267
- session_expiry: 6.0,
265
+ session_expiry: 1.0,
268
266
  ssl_required: true,
269
267
  tls_disabled: true,
270
268
  user_lockout: true,
@@ -351,7 +349,7 @@ Files::Site.update(
351
349
  * `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
352
350
  * `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
353
351
  * `welcome_screen` (string): Does the welcome screen appear?
354
- * `session_expiry` (number): Session expiry in hours
352
+ * `session_expiry` (double): Session expiry in hours
355
353
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
356
354
  * `tls_disabled` (boolean): Is TLS disabled(site setting)?
357
355
  * `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
@@ -359,7 +357,6 @@ Files::Site.update(
359
357
  * `user_lockout_within` (int64): Number of hours for user lockout window
360
358
  * `user_lockout_lock_period` (int64): How many hours to lock user out for failed password?
361
359
  * `include_password_in_welcome_email` (boolean): Include password in emails to new users?
362
- * `allowed_file_types` (string): List of allowed file types
363
360
  * `allowed_ips` (string): List of allowed IP addresses
364
361
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
365
362
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
@@ -6,6 +6,8 @@
6
6
  {
7
7
  "protocol": "okta",
8
8
  "provider": "okta",
9
+ "label": "My Corporate SSO Provider",
10
+ "logo_url": "https://mysite.files.com/.../logo.png",
9
11
  "id": 1,
10
12
  "saml_provider_cert_fingerprint": "",
11
13
  "saml_provider_issuer_url": "",
@@ -31,6 +33,8 @@
31
33
 
32
34
  * `protocol` (string): SSO Protocol
33
35
  * `provider` (string): Provider name
36
+ * `label` (string): Custom label for the SSO provider on the login page.
37
+ * `logo_url` (string): URL holding a custom logo for the SSO provider on the login page.
34
38
  * `id` (int64): ID
35
39
  * `saml_provider_cert_fingerprint` (string): Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
36
40
  * `saml_provider_issuer_url` (string): Identity provider issuer url
@@ -136,9 +136,9 @@ module Files
136
136
  end
137
137
 
138
138
  # Parameters:
139
- # user_id - integer - User ID. Provide a value of `0` to operate the current session's user.
140
- # page - integer - Current page number.
141
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
139
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
140
+ # page - int64 - Current page number.
141
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
142
142
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
143
143
  def self.list(params = {}, options = {})
144
144
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
@@ -159,7 +159,7 @@ module Files
159
159
  end
160
160
 
161
161
  # Parameters:
162
- # id (required) - integer - Api Key ID.
162
+ # id (required) - int64 - Api Key ID.
163
163
  def self.find(id, params = {}, options = {})
164
164
  params ||= {}
165
165
  params[:id] = id
@@ -175,7 +175,7 @@ module Files
175
175
  end
176
176
 
177
177
  # Parameters:
178
- # user_id - integer - User ID. Provide a value of `0` to operate the current session's user.
178
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
179
179
  # name - string - Internal name for key. For your reference only.
180
180
  # permission_set - string - Leave blank, or set to 'desktop_app' to restrict the key to only desktop app functions.
181
181
  # expires_at - string - Have the key expire at this date/time.
@@ -97,9 +97,9 @@ module Files
97
97
  end
98
98
 
99
99
  # Parameters:
100
- # user_id - integer - User ID. Provide a value of `0` to operate the current session's user.
101
- # page - integer - Current page number.
102
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
100
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
101
+ # page - int64 - Current page number.
102
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
103
103
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
104
104
  def self.list(params = {}, options = {})
105
105
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
@@ -115,7 +115,7 @@ module Files
115
115
  end
116
116
 
117
117
  # Parameters:
118
- # id (required) - integer - As2 Key ID.
118
+ # id (required) - int64 - As2 Key ID.
119
119
  def self.find(id, params = {}, options = {})
120
120
  params ||= {}
121
121
  params[:id] = id
@@ -131,7 +131,7 @@ module Files
131
131
  end
132
132
 
133
133
  # Parameters:
134
- # user_id - integer - User ID. Provide a value of `0` to operate the current session's user.
134
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
135
135
  # as2_partnership_name (required) - string - AS2 Partnership Name
136
136
  # public_key (required) - string - Actual contents of Public key.
137
137
  def self.create(params = {}, options = {})
@@ -180,8 +180,8 @@ module Files
180
180
  end
181
181
 
182
182
  # Parameters:
183
- # page - integer - Current page number.
184
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
183
+ # page - int64 - Current page number.
184
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
185
185
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
186
186
  # automation - string - Type of automation to filter by.
187
187
  def self.list(params = {}, options = {})
@@ -198,7 +198,7 @@ module Files
198
198
  end
199
199
 
200
200
  # Parameters:
201
- # id (required) - integer - Automation ID.
201
+ # id (required) - int64 - Automation ID.
202
202
  def self.find(id, params = {}, options = {})
203
203
  params ||= {}
204
204
  params[:id] = id
@@ -101,8 +101,8 @@ module Files
101
101
  end
102
102
 
103
103
  # Parameters:
104
- # page - integer - Current page number.
105
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
104
+ # page - int64 - Current page number.
105
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
106
106
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
107
107
  # behavior - string - If set, only shows folder behaviors matching this behavior type.
108
108
  def self.list(params = {}, options = {})
@@ -119,8 +119,8 @@ module Files
119
119
  end
120
120
 
121
121
  # Parameters:
122
- # page - integer - Current page number.
123
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
122
+ # page - int64 - Current page number.
123
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
124
124
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
125
125
  # path (required) - string - Path to operate on.
126
126
  # recursive - string - Show behaviors below this path?
@@ -140,7 +140,7 @@ module Files
140
140
  end
141
141
 
142
142
  # Parameters:
143
- # id (required) - integer - Behavior ID.
143
+ # id (required) - int64 - Behavior ID.
144
144
  def self.find(id, params = {}, options = {})
145
145
  params ||= {}
146
146
  params[:id] = id
@@ -116,7 +116,7 @@ module Files
116
116
  # Send email(s) with a link to bundle
117
117
  #
118
118
  # Parameters:
119
- # to (required) - array - A list of email addresses to share this bundle with.
119
+ # to (required) - array(string) - A list of email addresses to share this bundle with.
120
120
  # note - string - Note to include in email.
121
121
  def share(params = {})
122
122
  params ||= {}
@@ -131,6 +131,27 @@ module Files
131
131
  Api.send_request("/bundles/#{@attributes[:id]}/share", :post, params, @options)
132
132
  end
133
133
 
134
+ # Parameters:
135
+ # password - string - Password for this bundle.
136
+ # expires_at - string - Bundle expiration date/time
137
+ # description - string - Public description
138
+ # note - string - Bundle internal note
139
+ # code - string - Bundle code. This code forms the end part of the Public URL.
140
+ def update(params = {})
141
+ params ||= {}
142
+ params[:id] = @attributes[:id]
143
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
144
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
145
+ raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
146
+ raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params.dig(:expires_at) and !params.dig(:expires_at).is_a?(String)
147
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
148
+ raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
149
+ raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
150
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
151
+
152
+ Api.send_request("/bundles/#{@attributes[:id]}", :patch, params, @options)
153
+ end
154
+
134
155
  def delete(params = {})
135
156
  params ||= {}
136
157
  params[:id] = @attributes[:id]
@@ -147,7 +168,7 @@ module Files
147
168
 
148
169
  def save
149
170
  if @attributes[:id]
150
- raise NotImplementedError.new("The Bundle object doesn't support updates.")
171
+ update(@attributes)
151
172
  else
152
173
  new_obj = Bundle.create(@attributes, @options)
153
174
  @attributes = new_obj.attributes
@@ -155,9 +176,9 @@ module Files
155
176
  end
156
177
 
157
178
  # Parameters:
158
- # user_id - integer - User ID. Provide a value of `0` to operate the current session's user.
159
- # page - integer - Current page number.
160
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
179
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
180
+ # page - int64 - Current page number.
181
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
161
182
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
162
183
  def self.list(params = {}, options = {})
163
184
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
@@ -173,7 +194,7 @@ module Files
173
194
  end
174
195
 
175
196
  # Parameters:
176
- # id (required) - integer - Bundle ID.
197
+ # id (required) - int64 - Bundle ID.
177
198
  def self.find(id, params = {}, options = {})
178
199
  params ||= {}
179
200
  params[:id] = id
@@ -189,13 +210,13 @@ module Files
189
210
  end
190
211
 
191
212
  # Parameters:
192
- # user_id - integer - User ID. Provide a value of `0` to operate the current session's user.
193
- # paths (required) - array - A list of paths to include in this bundle.
213
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
214
+ # paths (required) - array(string) - A list of paths to include in this bundle.
194
215
  # password - string - Password for this bundle.
195
- # expires_at - string - Bundle expiration date/time.
196
- # description - string - Bundle public description
216
+ # expires_at - string - Bundle expiration date/time
217
+ # description - string - Public description
197
218
  # note - string - Bundle internal note
198
- # code - string - Bundle name
219
+ # code - string - Bundle code. This code forms the end part of the Public URL.
199
220
  def self.create(params = {}, options = {})
200
221
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
201
222
  raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
@@ -213,7 +234,7 @@ module Files
213
234
  # Send email(s) with a link to bundle
214
235
  #
215
236
  # Parameters:
216
- # to (required) - array - A list of email addresses to share this bundle with.
237
+ # to (required) - array(string) - A list of email addresses to share this bundle with.
217
238
  # note - string - Note to include in email.
218
239
  def self.share(id, params = {}, options = {})
219
240
  params ||= {}
@@ -228,6 +249,27 @@ module Files
228
249
  response.data
229
250
  end
230
251
 
252
+ # Parameters:
253
+ # password - string - Password for this bundle.
254
+ # expires_at - string - Bundle expiration date/time
255
+ # description - string - Public description
256
+ # note - string - Bundle internal note
257
+ # code - string - Bundle code. This code forms the end part of the Public URL.
258
+ def self.update(id, params = {}, options = {})
259
+ params ||= {}
260
+ params[:id] = 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 InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
263
+ raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params.dig(:expires_at) and !params.dig(:expires_at).is_a?(String)
264
+ raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
265
+ raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
266
+ raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
267
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
268
+
269
+ response, options = Api.send_request("/bundles/#{params[:id]}", :patch, params, options)
270
+ Bundle.new(response.data, options)
271
+ end
272
+
231
273
  def self.delete(id, params = {}, options = {})
232
274
  params ||= {}
233
275
  params[:id] = id
@@ -30,8 +30,8 @@ module Files
30
30
  end
31
31
 
32
32
  # Parameters:
33
- # page - integer - Current page number.
34
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
33
+ # page - int64 - Current page number.
34
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
35
35
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
36
36
  def self.list(params = {}, options = {})
37
37
  raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
@@ -825,7 +825,7 @@ module Files
825
825
  #
826
826
  # Parameters:
827
827
  # action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
828
- # id - integer - If provided, lookup the file by id instead of path.
828
+ # id - int64 - If provided, lookup the file by id instead of path.
829
829
  # with_previews - boolean - Include file preview information?
830
830
  # with_priority_color - boolean - Include file priority color information?
831
831
  def download(params = {})
@@ -884,7 +884,7 @@ module Files
884
884
  #
885
885
  # Parameters:
886
886
  # action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
887
- # id - integer - If provided, lookup the file by id instead of path.
887
+ # id - int64 - If provided, lookup the file by id instead of path.
888
888
  # with_previews - boolean - Include file preview information?
889
889
  # with_priority_color - boolean - Include file priority color information?
890
890
  def self.download(path, params = {}, options = {})
@@ -902,16 +902,16 @@ module Files
902
902
  # Parameters:
903
903
  # path (required) - string - Path to operate on.
904
904
  # action - string - The action to perform. Can be `append`, `attachment`, `end`, `upload`, `put`, or may not exist
905
- # etags[etag] (required) - array - etag identifier.
906
- # etags[part] (required) - array - Part number.
907
- # length - integer - Length of file.
905
+ # etags[etag] (required) - array(string) - etag identifier.
906
+ # etags[part] (required) - array(int64) - Part number.
907
+ # length - int64 - Length of file.
908
908
  # mkdir_parents - boolean - Create parent directories if they do not exist?
909
- # part - integer - Part if uploading a part.
910
- # parts - integer - How many parts to fetch?
909
+ # part - int64 - Part if uploading a part.
910
+ # parts - int64 - How many parts to fetch?
911
911
  # provided_mtime - string - User provided modification time.
912
912
  # ref - string -
913
- # restart - integer - File byte offset to restart from.
914
- # size - integer - Size of file.
913
+ # restart - int64 - File byte offset to restart from.
914
+ # size - int64 - Size of file.
915
915
  # structure - string - If copying folder, copy just the structure?
916
916
  # with_rename - boolean - Allow file rename instead of overwrite?
917
917
  def self.create(path, params = {}, options = {})