files.com 1.0.278 → 1.0.281

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 895184a100849f1b0cae02a73eb32b100529f10e248680ba07ad81b35f5e993d
4
- data.tar.gz: 9c54a5e7ea8164b310c96761093fee7d5280d39a796458c7283f49c86c514711
3
+ metadata.gz: a512e9a1cf5610592440cb28438807256e0ce1dd62ada21abf077decc9e7aad9
4
+ data.tar.gz: c42677f79f36faf398f7eced5cd36ddb97f1122ee29013d036f4e4ec975d3bee
5
5
  SHA512:
6
- metadata.gz: 8a147fe576dddcff1427d82b596228522c1eca19ffc8fe91fa76c19e5b95e330a5028a5e4e1204ba1c0256f110881d21cf285157676d5ade75f280282193caea
7
- data.tar.gz: 8b3f68aea8990965cfa91c8f8e69fd1071e0ef8accb17113da3cbf21bc01fa4c8438832af582a49f832fcac32b69033f828000c466adf0091249e9caf90ee63d
6
+ metadata.gz: 98ddf1bf3441cf526e68e427f295004160323e83568f1185c0f825539bcac6910f7fef396f489807b8e7f11cec374912643a31f83ac04104fd5502e7d9a96474
7
+ data.tar.gz: 447eefd6bc63ac2df4431bf94976201fdf7533a5b21d3ff85a97e07cf9da7ca877cef82cb2f1af3b473da399923795623c2be2b57daf6f0d363f23b37f73aac4
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.278
1
+ 1.0.281
data/docs/site.md CHANGED
@@ -178,6 +178,7 @@
178
178
  "dav_permission": true,
179
179
  "disabled": true,
180
180
  "email": "john.doe@files.com",
181
+ "first_login_at": "2000-01-01T01:00:00Z",
181
182
  "ftp_permission": true,
182
183
  "group_ids": "",
183
184
  "header_text": "User-specific message.",
@@ -209,6 +210,7 @@
209
210
  "externally_managed": true,
210
211
  "time_zone": "Pacific Time (US & Canada)",
211
212
  "type_of_2fa": "yubi",
213
+ "updated_at": "2000-01-01T01:00:00Z",
212
214
  "user_root": ""
213
215
  },
214
216
  "user_lockout": true,
data/docs/user.md CHANGED
@@ -22,6 +22,7 @@
22
22
  "dav_permission": true,
23
23
  "disabled": true,
24
24
  "email": "john.doe@files.com",
25
+ "first_login_at": "2000-01-01T01:00:00Z",
25
26
  "ftp_permission": true,
26
27
  "group_ids": "",
27
28
  "header_text": "User-specific message.",
@@ -53,6 +54,7 @@
53
54
  "externally_managed": true,
54
55
  "time_zone": "Pacific Time (US & Canada)",
55
56
  "type_of_2fa": "yubi",
57
+ "updated_at": "2000-01-01T01:00:00Z",
56
58
  "user_root": ""
57
59
  }
58
60
  ```
@@ -73,6 +75,7 @@
73
75
  * `dav_permission` (boolean): Can the user connect with WebDAV?
74
76
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
75
77
  * `email` (email): User email address
78
+ * `first_login_at` (date-time): User's first login time
76
79
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
77
80
  * `group_ids` (string): Comma-separated list of group IDs of which this user is a member
78
81
  * `header_text` (string): Text to display to the user in the header of the UI
@@ -104,6 +107,7 @@
104
107
  * `externally_managed` (boolean): Is this user managed by a SsoStrategy?
105
108
  * `time_zone` (string): User time zone
106
109
  * `type_of_2fa` (string): Type(s) of 2FA methods in use. Will be either `sms`, `totp`, `u2f`, `yubi`, or multiple values sorted alphabetically and joined by an underscore.
110
+ * `updated_at` (date-time): User record last updated at. Note this may be incremented because of internal or external updates.
107
111
  * `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
108
112
  * `avatar_file` (file): An image file for your user avatar.
109
113
  * `avatar_delete` (boolean): If true, the avatar will be deleted.
@@ -287,13 +287,13 @@ module Files
287
287
  code: error_data[:code] || resp.http_status,
288
288
  }
289
289
 
290
- return APIError.new(error_data[:message], opts) unless resp&.data&.dig(:type)
290
+ return APIError.new(error_data[:message], **opts) unless resp&.data&.dig(:type)
291
291
 
292
292
  begin
293
293
  error_class = Files.const_get(resp.data[:type].split("/").map { |piece| piece.split("-").map(&:capitalize).join('') + 'Error' }.join("::"))
294
- error_class.new(error_data[:message], opts)
294
+ error_class.new(error_data[:message], **opts)
295
295
  rescue NameError
296
- APIError.new(error_data[:message], opts)
296
+ APIError.new(error_data[:message], **opts)
297
297
  end
298
298
  end
299
299
 
@@ -158,6 +158,7 @@ module Files
158
158
 
159
159
  class ProcessingFailureError < APIError; end
160
160
  class BundleOnlyAllowsPreviewsError < ProcessingFailureError; end
161
+ class CouldNotCreateParentError < ProcessingFailureError; end
161
162
  class DestinationExistsError < ProcessingFailureError; end
162
163
  class DestinationFolderLimitedError < ProcessingFailureError; end
163
164
  class DestinationParentConflictError < ProcessingFailureError; end
@@ -149,6 +149,15 @@ module Files
149
149
  @attributes[:email] = value
150
150
  end
151
151
 
152
+ # date-time - User's first login time
153
+ def first_login_at
154
+ @attributes[:first_login_at]
155
+ end
156
+
157
+ def first_login_at=(value)
158
+ @attributes[:first_login_at] = value
159
+ end
160
+
152
161
  # boolean - Can the user access with FTP/FTPS?
153
162
  def ftp_permission
154
163
  @attributes[:ftp_permission]
@@ -428,6 +437,11 @@ module Files
428
437
  @attributes[:type_of_2fa] = value
429
438
  end
430
439
 
440
+ # date-time - User record last updated at. Note this may be incremented because of internal or external updates.
441
+ def updated_at
442
+ @attributes[:updated_at]
443
+ end
444
+
431
445
  # string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
432
446
  def user_root
433
447
  @attributes[:user_root]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.278
4
+ version: 1.0.281
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-29 00:00:00.000000000 Z
11
+ date: 2022-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable