files.com 1.0.472 → 1.0.474

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: 661e7e1d906ea7a9f725b50e717d02a08ba346266ea5d952aebd73864662d931
4
- data.tar.gz: e232200e403e81076713aca18ff405c3d526f62d1883822a4b9c9b1f1b73ff01
3
+ metadata.gz: 370ff07ee9b9252570725531731411b9e7ee889fdff12ef1a8302873aebbfb5b
4
+ data.tar.gz: f0f6213023d8448ab54b5192e61b91f85002e8735e4f50e45f2e66c7374d7d4d
5
5
  SHA512:
6
- metadata.gz: b46d7c6bd28e94fad2f365f1071a5fb8c308acfdf6070ad92a5628c223addbe0f9e5c8dd0c0d125476930faeb5b7abb4fac0b87d5dd471b21f79b8f78a55a252
7
- data.tar.gz: d2c1e147369617e3915409239ba542e237a70a58b26f5093a65d4801cf0069f53ed8246c3c06898983a4dfa467b45b4d9ffbc69789cd82c0f70060a73bf2440e
6
+ metadata.gz: fe53207653ae0a14aac694fe0d51151798a8af6da7d3bb7068cbc39e6268a31867cff54baccfcef76acbc33720f5dc1f8751b2ddd9217c7e62705a676104f4a3
7
+ data.tar.gz: c537fcb5dbe8e5b7b49bf7adf7df8699574794a695cc08d898ae76f89843a1f6ef88db9cb10fd97552fc05422a62797c50de0a111440c8d253e8967212dbe852
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.472
1
+ 1.0.474
data/docs/gpg_key.md CHANGED
@@ -39,6 +39,7 @@ Files::GpgKey.list(
39
39
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
40
40
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
41
41
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name` and `expires_at`.
42
43
 
43
44
 
44
45
  ---
data/docs/site.md CHANGED
@@ -84,6 +84,7 @@
84
84
  "ldap_username_field": "sAMAccountName",
85
85
  "login_help_text": "Login page help text.",
86
86
  "logo": null,
87
+ "login_page_background_image": null,
87
88
  "max_prior_passwords": 1,
88
89
  "motd_text": "example",
89
90
  "motd_use_for_ftp": true,
@@ -300,6 +301,7 @@
300
301
  * `ldap_username_field` (string): LDAP username field
301
302
  * `login_help_text` (string): Login help text
302
303
  * `logo` (Image): Branded logo
304
+ * `login_page_background_image` (Image): Branded login page background
303
305
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
304
306
  * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
305
307
  * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
@@ -519,6 +521,7 @@ Files::Site.update(
519
521
  icon128_delete: true,
520
522
  logo_delete: true,
521
523
  bundle_watermark_attachment_delete: true,
524
+ login_page_background_image_delete: true,
522
525
  disable_2fa_with_delay: true,
523
526
  session_expiry_minutes: 1
524
527
  )
@@ -658,6 +661,8 @@ Files::Site.update(
658
661
  * `logo_delete` (boolean): If true, will delete the file stored in logo
659
662
  * `bundle_watermark_attachment_file` (file):
660
663
  * `bundle_watermark_attachment_delete` (boolean): If true, will delete the file stored in bundle_watermark_attachment
664
+ * `login_page_background_image_file` (file):
665
+ * `login_page_background_image_delete` (boolean): If true, will delete the file stored in login_page_background_image
661
666
  * `disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
662
667
  * `ldap_password_change` (string): New LDAP password.
663
668
  * `ldap_password_change_confirmation` (string): Confirm new LDAP password.
@@ -118,10 +118,12 @@ module Files
118
118
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
119
119
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
120
120
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
121
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name` and `expires_at`.
121
122
  def self.list(params = {}, options = {})
122
123
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
123
124
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
124
125
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
126
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
125
127
 
126
128
  List.new(GpgKey, params) do
127
129
  Api.send_request("/gpg_keys", :get, params, options)
@@ -399,6 +399,11 @@ module Files
399
399
  @attributes[:logo]
400
400
  end
401
401
 
402
+ # Image - Branded login page background
403
+ def login_page_background_image
404
+ @attributes[:login_page_background_image]
405
+ end
406
+
402
407
  # int64 - Number of prior passwords to disallow
403
408
  def max_prior_passwords
404
409
  @attributes[:max_prior_passwords]
@@ -877,6 +882,8 @@ module Files
877
882
  # logo_delete - boolean - If true, will delete the file stored in logo
878
883
  # bundle_watermark_attachment_file - file
879
884
  # bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
885
+ # login_page_background_image_file - file
886
+ # login_page_background_image_delete - boolean - If true, will delete the file stored in login_page_background_image
880
887
  # disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
881
888
  # ldap_password_change - string - New LDAP password.
882
889
  # ldap_password_change_confirmation - string - Confirm new LDAP password.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.0.472"
4
+ VERSION = "1.0.474"
5
5
  end
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.472
4
+ version: 1.0.474
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-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable