files.com 1.0.280 → 1.0.283

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: 6d39207555c7eae5c6c7f42aabcfc586c07e2bbb29db6d9c087d2de805855e14
4
- data.tar.gz: efe9e9f17719999ead55806736796b7fc24e86d877d4ffe2efa7a33d6f79aa22
3
+ metadata.gz: 86744eb5977f68a3ef24927109fb50ba2bcb837fb361db79239ae121d564e689
4
+ data.tar.gz: 7f97c7796dcc67665aad86f6ec0b358aaf2cdbbea23db59798233a42fbbb15f6
5
5
  SHA512:
6
- metadata.gz: 161f29bb3db2a153780b14c3ed27d26981020113972986486b4416e2b286404963382b22b05cede2017606ad23f4d03004306d3fdd445cc77be2df85ea71b877
7
- data.tar.gz: a7a43333f57fa1dec4f87249dce0310bdebdb64f9d74b65451a32c569bc8d8d77017309e6a0d2847aa30365c5ac42cfe5ab45f82fc8c4fe10b86954fe5dcde4e
6
+ metadata.gz: 584b4cc29fdcd76171d4d18fc9c65e60344dd7c17a185d7fc8f30f3a9cded7352d4089e00b3f6e457841133cfdb3b32c1d3316e84caef88ef6c4952abedffad5
7
+ data.tar.gz: 822a8c82579f7c29a2dd2014c8a617bbba88751274dcd6e053db78efbc5eb32e6efdbd2726bf54142b9752475298885f6eb00be81970e478a81b04698cf912a4
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.280
1
+ 1.0.283
data/docs/file.md CHANGED
@@ -11,6 +11,7 @@ may places where a Ruby File object can be used.
11
11
  "display_name": "file.txt",
12
12
  "type": "file",
13
13
  "size": 1024,
14
+ "created_at": "2000-01-01T01:00:00Z",
14
15
  "mtime": "2000-01-01T01:00:00Z",
15
16
  "provided_mtime": "2000-01-01T01:00:00Z",
16
17
  "crc32": "70976923",
@@ -36,6 +37,7 @@ may places where a Ruby File object can be used.
36
37
  * `display_name` (string): File/Folder display name
37
38
  * `type` (string): Type: `directory` or `file`.
38
39
  * `size` (int64): File/Folder size
40
+ * `created_at` (date-time): File created date/time
39
41
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
40
42
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
41
43
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
data/docs/folder.md CHANGED
@@ -13,6 +13,7 @@ Files::Dir is an alias of Files::Folder
13
13
  "display_name": "file.txt",
14
14
  "type": "file",
15
15
  "size": 1024,
16
+ "created_at": "2000-01-01T01:00:00Z",
16
17
  "mtime": "2000-01-01T01:00:00Z",
17
18
  "provided_mtime": "2000-01-01T01:00:00Z",
18
19
  "crc32": "70976923",
@@ -38,6 +39,7 @@ Files::Dir is an alias of Files::Folder
38
39
  * `display_name` (string): File/Folder display name
39
40
  * `type` (string): Type: `directory` or `file`.
40
41
  * `size` (int64): File/Folder size
42
+ * `created_at` (date-time): File created date/time
41
43
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
42
44
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
43
45
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
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.
@@ -160,7 +160,7 @@ module Files
160
160
  buf = io.read(upload.partsize) || ""
161
161
  bytes_written += buf.length
162
162
  method = upload.http_method.downcase.to_sym
163
- response = client(options).remote_request(method, upload.upload_uri, { "Content-Length": buf.length.to_s }, buf)
163
+ response = client(options).remote_request(method, upload.upload_uri, { "Content-Length": buf.length.to_s, "Content-Type": "application/octet-stream" }, buf)
164
164
  etags << { etag: response.headers["ETag"], part: upload.part_number }
165
165
  return upload, etags, bytes_written if io.eof?
166
166
  end
@@ -628,6 +628,11 @@ module Files
628
628
  @attributes[:size] = value
629
629
  end
630
630
 
631
+ # date-time - File created date/time
632
+ def created_at
633
+ @attributes[:created_at]
634
+ end
635
+
631
636
  # date-time - File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
632
637
  def mtime
633
638
  @attributes[:mtime]
@@ -186,6 +186,11 @@ module Files
186
186
  @attributes[:size] = value
187
187
  end
188
188
 
189
+ # date-time - File created date/time
190
+ def created_at
191
+ @attributes[:created_at]
192
+ end
193
+
189
194
  # date-time - File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
190
195
  def mtime
191
196
  @attributes[:mtime]
@@ -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.280
4
+ version: 1.0.283
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-07-22 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable