files.com 1.0.318 → 1.0.320

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: 385ed6a3ae32dcc114475e66bcf7ec98888b6311bef2790843e029a9315aac6f
4
- data.tar.gz: 499d2d9661ff3067c02b87d7c522d8d0fc42ad35487123980b81cfcd1db8380b
3
+ metadata.gz: 838645d8ae2133a64f6236b3f41e5bd31e60745fa2fac8c8d89763f74410959b
4
+ data.tar.gz: 41b4c99699a4e57a0060bcefcd50f20e4ddf977270029d06ace53f41c8b74b91
5
5
  SHA512:
6
- metadata.gz: 87c3191465e6206bc5ef67e3d39af6a593f51e3b00bbbf19f14c812f4a59bff03a784b89bf57361cf9d8603c82c9761818d1560b8b8fbf89dec4ca655bc5859c
7
- data.tar.gz: 15d128e97240126b3e330b0edd9d0069db811d6cde2400a12d525da910afcee6f9cce9115099ffab2b9544515c5ca6e7681d64cd561ba81dd835ef3ffdec1b13
6
+ metadata.gz: 61764026c8ca7d5c29018ea55ecdc8faf180fe82d86a41ed74b461bfdc5dec20e33791bbdcbae55a13ef9034c98e1eedb3f52107bec16cd2c2a9790ee0d702a8
7
+ data.tar.gz: 0a918e1e0276c6ffc26624b760547b980e31bf7d1afd6c442db1e848db947c45e5edf7b825ec4bf933702d8c31a66e4183262dd199b744f962af600ae49efa90
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.318
1
+ 1.0.320
@@ -6,6 +6,7 @@
6
6
  {
7
7
  "id": 1,
8
8
  "created_at": 1,
9
+ "created_at_iso8601": 1,
9
10
  "user_id": 1,
10
11
  "file_id": 1,
11
12
  "parent_id": 1,
@@ -32,6 +33,7 @@
32
33
 
33
34
  * `id` (int64): Action ID
34
35
  * `created_at` (int64): When the action happened
36
+ * `created_at_iso8601` (int64): When the action happened, in ISO8601 format.
35
37
  * `user_id` (int64): User ID
36
38
  * `file_id` (int64): File ID related to the action
37
39
  * `parent_id` (int64): ID of the parent folder
data/docs/site.md CHANGED
@@ -438,7 +438,8 @@ Files::Site.update(
438
438
  icon128_delete: true,
439
439
  logo_delete: true,
440
440
  bundle_watermark_attachment_delete: true,
441
- disable_2fa_with_delay: true
441
+ disable_2fa_with_delay: true,
442
+ session_expiry_minutes: 1
442
443
  )
443
444
  ```
444
445
 
@@ -575,3 +576,4 @@ Files::Site.update(
575
576
  * `ldap_password_change` (string): New LDAP password.
576
577
  * `ldap_password_change_confirmation` (string): Confirm new LDAP password.
577
578
  * `smtp_password` (string): Password for SMTP server.
579
+ * `session_expiry_minutes` (int64): Session expiry in minutes
@@ -19,6 +19,11 @@ module Files
19
19
  @attributes[:created_at]
20
20
  end
21
21
 
22
+ # int64 - When the action happened, in ISO8601 format.
23
+ def created_at_iso8601
24
+ @attributes[:created_at_iso8601]
25
+ end
26
+
22
27
  # int64 - User ID
23
28
  def user_id
24
29
  @attributes[:user_id]
@@ -856,6 +856,7 @@ module Files
856
856
  # ldap_password_change - string - New LDAP password.
857
857
  # ldap_password_change_confirmation - string - Confirm new LDAP password.
858
858
  # smtp_password - string - Password for SMTP server.
859
+ # session_expiry_minutes - int64 - Session expiry in minutes
859
860
  def self.update(params = {}, options = {})
860
861
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
861
862
  raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params[:subdomain] and !params[:subdomain].is_a?(String)
@@ -922,6 +923,7 @@ module Files
922
923
  raise InvalidParameterError.new("Bad parameter: ldap_password_change must be an String") if params[:ldap_password_change] and !params[:ldap_password_change].is_a?(String)
923
924
  raise InvalidParameterError.new("Bad parameter: ldap_password_change_confirmation must be an String") if params[:ldap_password_change_confirmation] and !params[:ldap_password_change_confirmation].is_a?(String)
924
925
  raise InvalidParameterError.new("Bad parameter: smtp_password must be an String") if params[:smtp_password] and !params[:smtp_password].is_a?(String)
926
+ raise InvalidParameterError.new("Bad parameter: session_expiry_minutes must be an Integer") if params[:session_expiry_minutes] and !params[:session_expiry_minutes].is_a?(Integer)
925
927
 
926
928
  response, options = Api.send_request("/site", :patch, params, options)
927
929
  Site.new(response.data, options)
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.318
4
+ version: 1.0.320
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable