files.com 1.0.57 → 1.0.62
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.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/api_key.md +4 -2
- data/docs/as2_key.md +4 -2
- data/docs/automation.md +4 -2
- data/docs/behavior.md +4 -2
- data/docs/bundle.md +6 -3
- data/docs/file.md +6 -3
- data/docs/file_action.md +6 -3
- data/docs/file_comment.md +4 -2
- data/docs/file_comment_reaction.md +2 -1
- data/docs/group.md +4 -2
- data/docs/group_user.md +4 -2
- data/docs/history_export.md +2 -1
- data/docs/lock.md +2 -1
- data/docs/message.md +4 -2
- data/docs/message_comment.md +4 -2
- data/docs/message_comment_reaction.md +2 -1
- data/docs/message_reaction.md +2 -1
- data/docs/notification.md +4 -2
- data/docs/project.md +4 -2
- data/docs/public_key.md +4 -2
- data/docs/remote_server.md +12 -2
- data/docs/request.md +2 -1
- data/docs/site.md +2 -2
- data/docs/sso_strategy.md +27 -1
- data/docs/style.md +4 -2
- data/docs/user.md +10 -5
- data/lib/files.com/models/api_key.rb +5 -5
- data/lib/files.com/models/as2_key.rb +5 -5
- data/lib/files.com/models/automation.rb +3 -3
- data/lib/files.com/models/behavior.rb +7 -6
- data/lib/files.com/models/bundle.rb +8 -8
- data/lib/files.com/models/dns_record.rb +2 -2
- data/lib/files.com/models/file.rb +9 -9
- data/lib/files.com/models/file_action.rb +6 -6
- data/lib/files.com/models/file_comment.rb +2 -2
- data/lib/files.com/models/file_comment_reaction.rb +2 -2
- data/lib/files.com/models/folder.rb +2 -2
- data/lib/files.com/models/group.rb +3 -3
- data/lib/files.com/models/group_user.rb +8 -8
- data/lib/files.com/models/history.rb +11 -11
- data/lib/files.com/models/history_export.rb +10 -10
- data/lib/files.com/models/invoice.rb +3 -3
- data/lib/files.com/models/ip_address.rb +2 -2
- data/lib/files.com/models/lock.rb +3 -3
- data/lib/files.com/models/message.rb +9 -9
- data/lib/files.com/models/message_comment.rb +6 -6
- data/lib/files.com/models/message_comment_reaction.rb +6 -6
- data/lib/files.com/models/message_reaction.rb +6 -6
- data/lib/files.com/models/notification.rb +7 -7
- data/lib/files.com/models/payment.rb +3 -3
- data/lib/files.com/models/permission.rb +5 -5
- data/lib/files.com/models/project.rb +3 -3
- data/lib/files.com/models/public_key.rb +5 -5
- data/lib/files.com/models/remote_server.rb +24 -9
- data/lib/files.com/models/request.rb +7 -7
- data/lib/files.com/models/site.rb +13 -13
- data/lib/files.com/models/sso_strategy.rb +68 -3
- data/lib/files.com/models/usage_daily_snapshot.rb +2 -2
- data/lib/files.com/models/usage_snapshot.rb +2 -2
- data/lib/files.com/models/user.rb +15 -15
- data/lib/files.com/models/user_cipher_use.rb +3 -3
- metadata +2 -2
data/docs/request.md
CHANGED
data/docs/site.md
CHANGED
@@ -262,7 +262,7 @@ Files::Site.update(
|
|
262
262
|
desktop_app_session_lifetime: 1,
|
263
263
|
folder_permissions_groups_only: true,
|
264
264
|
welcome_screen: "user_controlled",
|
265
|
-
session_expiry:
|
265
|
+
session_expiry: 1.0,
|
266
266
|
ssl_required: true,
|
267
267
|
tls_disabled: true,
|
268
268
|
user_lockout: true,
|
@@ -349,7 +349,7 @@ Files::Site.update(
|
|
349
349
|
* `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
|
350
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.
|
351
351
|
* `welcome_screen` (string): Does the welcome screen appear?
|
352
|
-
* `session_expiry` (
|
352
|
+
* `session_expiry` (double): Session expiry in hours
|
353
353
|
* `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
|
354
354
|
* `tls_disabled` (boolean): Is TLS disabled(site setting)?
|
355
355
|
* `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
|
data/docs/sso_strategy.md
CHANGED
@@ -26,8 +26,21 @@
|
|
26
26
|
"provision_attachments_permission": true,
|
27
27
|
"provision_dav_permission": true,
|
28
28
|
"provision_ftp_permission": true,
|
29
|
+
"provision_group_action": "disabled",
|
29
30
|
"provision_sftp_permission": true,
|
30
|
-
"provision_time_zone": "Eastern Time (US & Canada)"
|
31
|
+
"provision_time_zone": "Eastern Time (US & Canada)",
|
32
|
+
"provision_user_action": "disabled",
|
33
|
+
"ldap_base_dn": "",
|
34
|
+
"ldap_domain": "mysite.com",
|
35
|
+
"enabled": true,
|
36
|
+
"ldap_host": "ldap.site.com",
|
37
|
+
"ldap_host_2": "ldap2.site.com",
|
38
|
+
"ldap_host_3": "ldap3.site.com",
|
39
|
+
"ldap_port": 1,
|
40
|
+
"ldap_secure": true,
|
41
|
+
"ldap_user_include_groups": "",
|
42
|
+
"ldap_username": "[ldap username]",
|
43
|
+
"ldap_username_field": "sAMAccountName"
|
31
44
|
}
|
32
45
|
```
|
33
46
|
|
@@ -53,8 +66,21 @@
|
|
53
66
|
* `provision_attachments_permission` (boolean): Auto-provisioned users get Sharing permission?
|
54
67
|
* `provision_dav_permission` (boolean): Auto-provisioned users get WebDAV permission?
|
55
68
|
* `provision_ftp_permission` (boolean): Auto-provisioned users get FTP permission?
|
69
|
+
* `provision_group_action` (string): Should we sync groups from this strategy?
|
56
70
|
* `provision_sftp_permission` (boolean): Auto-provisioned users get SFTP permission?
|
57
71
|
* `provision_time_zone` (string): Default time zone for auto provisioned users.
|
72
|
+
* `provision_user_action` (string): Should we sync users from this strategy?
|
73
|
+
* `ldap_base_dn` (string): Base DN for looking up users in LDAP server
|
74
|
+
* `ldap_domain` (string): Domain name that will be appended to LDAP usernames
|
75
|
+
* `enabled` (boolean): Is strategy enabled?
|
76
|
+
* `ldap_host` (string): LDAP host
|
77
|
+
* `ldap_host_2` (string): LDAP backup host
|
78
|
+
* `ldap_host_3` (string): LDAP backup host
|
79
|
+
* `ldap_port` (int64): LDAP port
|
80
|
+
* `ldap_secure` (boolean): Use secure LDAP?
|
81
|
+
* `ldap_user_include_groups` (string): Comma or newline separated list of group names (with optional wildcards) - if provided, only users in these groups will be added or synced.
|
82
|
+
* `ldap_username` (string): Username for signing in to LDAP server.
|
83
|
+
* `ldap_username_field` (string): LDAP username field
|
58
84
|
|
59
85
|
|
60
86
|
---
|
data/docs/style.md
CHANGED
@@ -65,7 +65,8 @@ Files::Style.delete(path)
|
|
65
65
|
## Update Style
|
66
66
|
|
67
67
|
```
|
68
|
-
style = Files::Style.
|
68
|
+
style = Files::Style.list_for(path).first
|
69
|
+
|
69
70
|
style.update(
|
70
71
|
file: "file"
|
71
72
|
)
|
@@ -82,7 +83,8 @@ style.update(
|
|
82
83
|
## Delete Style
|
83
84
|
|
84
85
|
```
|
85
|
-
style = Files::Style.
|
86
|
+
style = Files::Style.list_for(path).first
|
87
|
+
|
86
88
|
style.delete
|
87
89
|
```
|
88
90
|
|
data/docs/user.md
CHANGED
@@ -371,7 +371,8 @@ Files::User.delete(id)
|
|
371
371
|
## Unlock user who has been locked out due to failed logins
|
372
372
|
|
373
373
|
```
|
374
|
-
user = Files::User.
|
374
|
+
user = Files::User.list_for(path).first
|
375
|
+
|
375
376
|
user.unlock
|
376
377
|
```
|
377
378
|
|
@@ -385,7 +386,8 @@ user.unlock
|
|
385
386
|
## Resend user welcome email
|
386
387
|
|
387
388
|
```
|
388
|
-
user = Files::User.
|
389
|
+
user = Files::User.list_for(path).first
|
390
|
+
|
389
391
|
user.resend_welcome_email
|
390
392
|
```
|
391
393
|
|
@@ -399,7 +401,8 @@ user.resend_welcome_email
|
|
399
401
|
## Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
|
400
402
|
|
401
403
|
```
|
402
|
-
user = Files::User.
|
404
|
+
user = Files::User.list_for(path).first
|
405
|
+
|
403
406
|
user.user_2fa_reset
|
404
407
|
```
|
405
408
|
|
@@ -413,7 +416,8 @@ user.user_2fa_reset
|
|
413
416
|
## Update User
|
414
417
|
|
415
418
|
```
|
416
|
-
user = Files::User.
|
419
|
+
user = Files::User.list_for(path).first
|
420
|
+
|
417
421
|
user.update(
|
418
422
|
avatar_delete: true,
|
419
423
|
email: "john.doe@files.com",
|
@@ -498,7 +502,8 @@ user.update(
|
|
498
502
|
## Delete User
|
499
503
|
|
500
504
|
```
|
501
|
-
user = Files::User.
|
505
|
+
user = Files::User.list_for(path).first
|
506
|
+
|
502
507
|
user.delete
|
503
508
|
```
|
504
509
|
|
@@ -136,9 +136,9 @@ module Files
|
|
136
136
|
end
|
137
137
|
|
138
138
|
# Parameters:
|
139
|
-
# user_id -
|
140
|
-
# page -
|
141
|
-
# per_page -
|
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) -
|
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 -
|
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 -
|
101
|
-
# page -
|
102
|
-
# per_page -
|
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) -
|
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 -
|
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 -
|
184
|
-
# per_page -
|
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) -
|
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 -
|
105
|
-
# per_page -
|
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 -
|
123
|
-
# per_page -
|
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) -
|
143
|
+
# id (required) - int64 - Behavior ID.
|
144
144
|
def self.find(id, params = {}, options = {})
|
145
145
|
params ||= {}
|
146
146
|
params[:id] = id
|
@@ -191,8 +191,9 @@ module Files
|
|
191
191
|
def self.update(id, params = {}, options = {})
|
192
192
|
params ||= {}
|
193
193
|
params[:id] = id
|
194
|
-
raise InvalidParameterError.new("Bad parameter: id must be
|
194
|
+
raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [String, Integer, Hash].none? { |klass| params.dig(:id).is_a?(klass) }
|
195
195
|
raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
|
196
|
+
raise InvalidParameterError.new("Bad parameter: attachment_file must be one of String, Integer, Hash") if params.dig(:attachment_file) and [String, Integer, Hash].none? { |klass| params.dig(:attachment_file).is_a?(klass) }
|
196
197
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
197
198
|
|
198
199
|
response, options = Api.send_request("/behaviors/#{params[:id]}", :patch, params, options)
|
@@ -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 ||= {}
|
@@ -176,9 +176,9 @@ module Files
|
|
176
176
|
end
|
177
177
|
|
178
178
|
# Parameters:
|
179
|
-
# user_id -
|
180
|
-
# page -
|
181
|
-
# per_page -
|
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).
|
182
182
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
183
183
|
def self.list(params = {}, options = {})
|
184
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)
|
@@ -194,7 +194,7 @@ module Files
|
|
194
194
|
end
|
195
195
|
|
196
196
|
# Parameters:
|
197
|
-
# id (required) -
|
197
|
+
# id (required) - int64 - Bundle ID.
|
198
198
|
def self.find(id, params = {}, options = {})
|
199
199
|
params ||= {}
|
200
200
|
params[:id] = id
|
@@ -210,8 +210,8 @@ module Files
|
|
210
210
|
end
|
211
211
|
|
212
212
|
# Parameters:
|
213
|
-
# user_id -
|
214
|
-
# 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.
|
215
215
|
# password - string - Password for this bundle.
|
216
216
|
# expires_at - string - Bundle expiration date/time
|
217
217
|
# description - string - Public description
|
@@ -234,7 +234,7 @@ module Files
|
|
234
234
|
# Send email(s) with a link to bundle
|
235
235
|
#
|
236
236
|
# Parameters:
|
237
|
-
# 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.
|
238
238
|
# note - string - Note to include in email.
|
239
239
|
def self.share(id, params = {}, options = {})
|
240
240
|
params ||= {}
|
@@ -30,8 +30,8 @@ module Files
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Parameters:
|
33
|
-
# page -
|
34
|
-
# per_page -
|
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 -
|
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 -
|
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 -
|
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 -
|
910
|
-
# parts -
|
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 -
|
914
|
-
# size -
|
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 = {})
|
@@ -45,10 +45,10 @@ module Files
|
|
45
45
|
#
|
46
46
|
# Parameters:
|
47
47
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
48
|
-
# part -
|
49
|
-
# parts -
|
48
|
+
# part - int64 - Part if uploading a part.
|
49
|
+
# parts - int64 - How many parts to fetch?
|
50
50
|
# ref - string -
|
51
|
-
# restart -
|
51
|
+
# restart - int64 - File byte offset to restart from.
|
52
52
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
53
53
|
def begin_upload(params = {})
|
54
54
|
params ||= {}
|
@@ -100,10 +100,10 @@ module Files
|
|
100
100
|
#
|
101
101
|
# Parameters:
|
102
102
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
103
|
-
# part -
|
104
|
-
# parts -
|
103
|
+
# part - int64 - Part if uploading a part.
|
104
|
+
# parts - int64 - How many parts to fetch?
|
105
105
|
# ref - string -
|
106
|
-
# restart -
|
106
|
+
# restart - int64 - File byte offset to restart from.
|
107
107
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
108
108
|
def self.begin_upload(path, params = {}, options = {})
|
109
109
|
params ||= {}
|
@@ -83,8 +83,8 @@ module Files
|
|
83
83
|
end
|
84
84
|
|
85
85
|
# Parameters:
|
86
|
-
# page -
|
87
|
-
# per_page -
|
86
|
+
# page - int64 - Current page number.
|
87
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
88
88
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
89
89
|
# path (required) - string - Path to operate on.
|
90
90
|
def self.list_for(path, params = {}, options = {})
|
@@ -69,8 +69,8 @@ module Files
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# Parameters:
|
72
|
-
# user_id -
|
73
|
-
# file_comment_id (required) -
|
72
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
73
|
+
# file_comment_id (required) - int64 - ID of file comment to attach reaction to.
|
74
74
|
# emoji (required) - string - Emoji to react with.
|
75
75
|
def self.create(params = {}, options = {})
|
76
76
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
@@ -312,8 +312,8 @@ module Files
|
|
312
312
|
end
|
313
313
|
|
314
314
|
# Parameters:
|
315
|
-
# page -
|
316
|
-
# per_page -
|
315
|
+
# page - int64 - Current page number.
|
316
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
317
317
|
# action - string - Action to take. Can be `count`, `count_nrs` (non recursive), `size`, `permissions`, or blank.
|
318
318
|
# path (required) - string - Path to operate on.
|
319
319
|
# cursor - string - Send cursor to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor header.
|
@@ -106,8 +106,8 @@ module Files
|
|
106
106
|
end
|
107
107
|
|
108
108
|
# Parameters:
|
109
|
-
# page -
|
110
|
-
# per_page -
|
109
|
+
# page - int64 - Current page number.
|
110
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
111
111
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
112
112
|
# ids - string - Comma-separated list of group ids to include in results.
|
113
113
|
def self.list(params = {}, options = {})
|
@@ -124,7 +124,7 @@ module Files
|
|
124
124
|
end
|
125
125
|
|
126
126
|
# Parameters:
|
127
|
-
# id (required) -
|
127
|
+
# id (required) - int64 - Group ID.
|
128
128
|
def self.find(id, params = {}, options = {})
|
129
129
|
params ||= {}
|
130
130
|
params[:id] = id
|