files.com 1.1.640 → 1.1.642
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/key_lifecycle_rule.md +4 -4
- data/docs/site.md +4 -0
- data/docs/sync.md +10 -2
- data/lib/files.com/models/key_lifecycle_rule.rb +4 -4
- data/lib/files.com/models/site.rb +7 -0
- data/lib/files.com/models/sync.rb +12 -0
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae221e1554e5194299d577bc71a497aa8f80cb790a0eb54c33aef44adcde76db
|
|
4
|
+
data.tar.gz: 9febc3638c79d6d415527049c6d8462d97dd0d8b8cd5638f06aed113337e0004
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 660cc67b383441d2c8b91d057c197d4b67de7a1786f803a322f48ac960dab908562e5584e2bcb047ca04f915fc61cba393fc008922e07f4d98c0bcaec3504f81
|
|
7
|
+
data.tar.gz: b56abafc82b321f0900a73d4772d0c99ba77b9eeb0302e292bcb44d1f39adbb20b04f7c8d51abe9a809c8a737d5f0457ebe64b1ebbc610b561973cb0a8c4c6d7
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.642
|
data/docs/key_lifecycle_rule.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
* `id` (int64): Key Lifecycle Rule ID
|
|
18
|
-
* `key_type` (string): Key type for which the rule will apply (gpg or
|
|
18
|
+
* `key_type` (string): Key type for which the rule will apply (gpg, ssh, or api).
|
|
19
19
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies.
|
|
20
20
|
* `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
|
|
21
21
|
* `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
|
|
@@ -71,7 +71,7 @@ Files::KeyLifecycleRule.create(
|
|
|
71
71
|
|
|
72
72
|
* `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
|
|
73
73
|
* `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
|
|
74
|
-
* `key_type` (string): Key type for which the rule will apply (gpg or
|
|
74
|
+
* `key_type` (string): Key type for which the rule will apply (gpg, ssh, or api).
|
|
75
75
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies.
|
|
76
76
|
* `name` (string): Key Lifecycle Rule name
|
|
77
77
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
@@ -97,7 +97,7 @@ Files::KeyLifecycleRule.update(id,
|
|
|
97
97
|
* `id` (int64): Required - Key Lifecycle Rule ID.
|
|
98
98
|
* `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
|
|
99
99
|
* `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
|
|
100
|
-
* `key_type` (string): Key type for which the rule will apply (gpg or
|
|
100
|
+
* `key_type` (string): Key type for which the rule will apply (gpg, ssh, or api).
|
|
101
101
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies.
|
|
102
102
|
* `name` (string): Key Lifecycle Rule name
|
|
103
103
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
@@ -138,7 +138,7 @@ key_lifecycle_rule.update(
|
|
|
138
138
|
* `id` (int64): Required - Key Lifecycle Rule ID.
|
|
139
139
|
* `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
|
|
140
140
|
* `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
|
|
141
|
-
* `key_type` (string): Key type for which the rule will apply (gpg or
|
|
141
|
+
* `key_type` (string): Key type for which the rule will apply (gpg, ssh, or api).
|
|
142
142
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies.
|
|
143
143
|
* `name` (string): Key Lifecycle Rule name
|
|
144
144
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
data/docs/site.md
CHANGED
|
@@ -339,6 +339,7 @@
|
|
|
339
339
|
"user_requests_notify_admins": true,
|
|
340
340
|
"users_can_create_api_keys": true,
|
|
341
341
|
"users_can_create_ssh_keys": true,
|
|
342
|
+
"username_display": "username_only",
|
|
342
343
|
"welcome_custom_text": "Welcome to my site!",
|
|
343
344
|
"email_footer_custom_text": "Copyright © %Y MyCompany Inc.",
|
|
344
345
|
"welcome_email_cc": "example",
|
|
@@ -529,6 +530,7 @@
|
|
|
529
530
|
* `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
|
|
530
531
|
* `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
|
|
531
532
|
* `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
|
|
533
|
+
* `username_display` (string): How usernames are displayed in the web UI. Can be `username_only`, `full_name_only`, `full_name_username`, `full_name_company`, or `full_name_username_company`.
|
|
532
534
|
* `welcome_custom_text` (string): Custom text send in user welcome email
|
|
533
535
|
* `email_footer_custom_text` (string): Custom footer text for system-generated emails. Supports standard strftime date/time patterns like %Y (4-digit year), %m (month), %d (day).
|
|
534
536
|
* `welcome_email_cc` (email): Include this email in welcome emails if enabled
|
|
@@ -608,6 +610,7 @@ Files::Site.update(
|
|
|
608
610
|
legacy_checksums_mode: false,
|
|
609
611
|
migrate_remote_server_sync_to_sync: false,
|
|
610
612
|
as2_message_retention_days: 1,
|
|
613
|
+
username_display: "username_only",
|
|
611
614
|
session_expiry_minutes: 1,
|
|
612
615
|
ssl_required: false,
|
|
613
616
|
sftp_insecure_ciphers: false,
|
|
@@ -784,6 +787,7 @@ Files::Site.update(
|
|
|
784
787
|
* `legacy_checksums_mode` (boolean): Use legacy checksums mode?
|
|
785
788
|
* `migrate_remote_server_sync_to_sync` (boolean): If true, we will migrate all remote server syncs to the new Sync model.
|
|
786
789
|
* `as2_message_retention_days` (int64): Number of days to retain AS2 messages (incoming and outgoing).
|
|
790
|
+
* `username_display` (string): How usernames are displayed in the web UI. Can be `username_only`, `full_name_only`, `full_name_username`, `full_name_company`, or `full_name_username_company`.
|
|
787
791
|
* `session_expiry_minutes` (int64): Session expiry in minutes
|
|
788
792
|
* `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
|
|
789
793
|
* `sftp_insecure_ciphers` (boolean): If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
|
data/docs/sync.md
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"disabled": true,
|
|
23
23
|
"trigger": "example",
|
|
24
24
|
"trigger_file": "example",
|
|
25
|
+
"always_write_trigger_file": true,
|
|
25
26
|
"include_patterns": [
|
|
26
27
|
"example"
|
|
27
28
|
],
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
* `disabled` (boolean): Is this sync disabled?
|
|
103
104
|
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
|
|
104
105
|
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
106
|
+
* `always_write_trigger_file` (boolean): If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
105
107
|
* `include_patterns` (array(string)): Array of glob patterns to include
|
|
106
108
|
* `exclude_patterns` (array(string)): Array of glob patterns to exclude
|
|
107
109
|
* `created_at` (date-time): When this sync was created
|
|
@@ -171,6 +173,7 @@ Files::Sync.create(
|
|
|
171
173
|
sync_interval_minutes: 1,
|
|
172
174
|
trigger: "example",
|
|
173
175
|
trigger_file: "example",
|
|
176
|
+
always_write_trigger_file: true,
|
|
174
177
|
workspace_id: 1
|
|
175
178
|
)
|
|
176
179
|
```
|
|
@@ -197,6 +200,7 @@ Files::Sync.create(
|
|
|
197
200
|
* `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
|
|
198
201
|
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
|
|
199
202
|
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
203
|
+
* `always_write_trigger_file` (boolean): If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
200
204
|
* `workspace_id` (int64): Workspace ID this sync belongs to
|
|
201
205
|
|
|
202
206
|
|
|
@@ -251,7 +255,8 @@ Files::Sync.update(id,
|
|
|
251
255
|
src_remote_server_id: 1,
|
|
252
256
|
sync_interval_minutes: 1,
|
|
253
257
|
trigger: "example",
|
|
254
|
-
trigger_file: "example"
|
|
258
|
+
trigger_file: "example",
|
|
259
|
+
always_write_trigger_file: true
|
|
255
260
|
)
|
|
256
261
|
```
|
|
257
262
|
|
|
@@ -278,6 +283,7 @@ Files::Sync.update(id,
|
|
|
278
283
|
* `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
|
|
279
284
|
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
|
|
280
285
|
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
286
|
+
* `always_write_trigger_file` (boolean): If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
281
287
|
|
|
282
288
|
|
|
283
289
|
---
|
|
@@ -350,7 +356,8 @@ sync.update(
|
|
|
350
356
|
src_remote_server_id: 1,
|
|
351
357
|
sync_interval_minutes: 1,
|
|
352
358
|
trigger: "example",
|
|
353
|
-
trigger_file: "example"
|
|
359
|
+
trigger_file: "example",
|
|
360
|
+
always_write_trigger_file: true
|
|
354
361
|
)
|
|
355
362
|
```
|
|
356
363
|
|
|
@@ -377,6 +384,7 @@ sync.update(
|
|
|
377
384
|
* `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
|
|
378
385
|
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
|
|
379
386
|
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
387
|
+
* `always_write_trigger_file` (boolean): If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
380
388
|
|
|
381
389
|
|
|
382
390
|
---
|
|
@@ -18,7 +18,7 @@ module Files
|
|
|
18
18
|
@attributes[:id] = value
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
# string - Key type for which the rule will apply (gpg or
|
|
21
|
+
# string - Key type for which the rule will apply (gpg, ssh, or api).
|
|
22
22
|
def key_type
|
|
23
23
|
@attributes[:key_type]
|
|
24
24
|
end
|
|
@@ -75,7 +75,7 @@ module Files
|
|
|
75
75
|
# Parameters:
|
|
76
76
|
# apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
|
|
77
77
|
# expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
|
|
78
|
-
# key_type - string - Key type for which the rule will apply (gpg or
|
|
78
|
+
# key_type - string - Key type for which the rule will apply (gpg, ssh, or api).
|
|
79
79
|
# inactivity_days - int64 - Number of days of inactivity before the rule applies.
|
|
80
80
|
# name - string - Key Lifecycle Rule name
|
|
81
81
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
@@ -159,7 +159,7 @@ module Files
|
|
|
159
159
|
# Parameters:
|
|
160
160
|
# apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
|
|
161
161
|
# expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
|
|
162
|
-
# key_type - string - Key type for which the rule will apply (gpg or
|
|
162
|
+
# key_type - string - Key type for which the rule will apply (gpg, ssh, or api).
|
|
163
163
|
# inactivity_days - int64 - Number of days of inactivity before the rule applies.
|
|
164
164
|
# name - string - Key Lifecycle Rule name
|
|
165
165
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
@@ -177,7 +177,7 @@ module Files
|
|
|
177
177
|
# Parameters:
|
|
178
178
|
# apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
|
|
179
179
|
# expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
|
|
180
|
-
# key_type - string - Key type for which the rule will apply (gpg or
|
|
180
|
+
# key_type - string - Key type for which the rule will apply (gpg, ssh, or api).
|
|
181
181
|
# inactivity_days - int64 - Number of days of inactivity before the rule applies.
|
|
182
182
|
# name - string - Key Lifecycle Rule name
|
|
183
183
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
@@ -914,6 +914,11 @@ module Files
|
|
|
914
914
|
@attributes[:users_can_create_ssh_keys]
|
|
915
915
|
end
|
|
916
916
|
|
|
917
|
+
# string - How usernames are displayed in the web UI. Can be `username_only`, `full_name_only`, `full_name_username`, `full_name_company`, or `full_name_username_company`.
|
|
918
|
+
def username_display
|
|
919
|
+
@attributes[:username_display]
|
|
920
|
+
end
|
|
921
|
+
|
|
917
922
|
# string - Custom text send in user welcome email
|
|
918
923
|
def welcome_custom_text
|
|
919
924
|
@attributes[:welcome_custom_text]
|
|
@@ -1007,6 +1012,7 @@ module Files
|
|
|
1007
1012
|
# legacy_checksums_mode - boolean - Use legacy checksums mode?
|
|
1008
1013
|
# migrate_remote_server_sync_to_sync - boolean - If true, we will migrate all remote server syncs to the new Sync model.
|
|
1009
1014
|
# as2_message_retention_days - int64 - Number of days to retain AS2 messages (incoming and outgoing).
|
|
1015
|
+
# username_display - string - How usernames are displayed in the web UI. Can be `username_only`, `full_name_only`, `full_name_username`, `full_name_company`, or `full_name_username_company`.
|
|
1010
1016
|
# session_expiry_minutes - int64 - Session expiry in minutes
|
|
1011
1017
|
# ssl_required - boolean - Is SSL required? Disabling this is insecure.
|
|
1012
1018
|
# sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
|
|
@@ -1163,6 +1169,7 @@ module Files
|
|
|
1163
1169
|
raise InvalidParameterError.new("Bad parameter: ai_feature_availability must be an Hash") if params[:ai_feature_availability] and !params[:ai_feature_availability].is_a?(Hash)
|
|
1164
1170
|
raise InvalidParameterError.new("Bad parameter: additional_text_file_types must be an Array") if params[:additional_text_file_types] and !params[:additional_text_file_types].is_a?(Array)
|
|
1165
1171
|
raise InvalidParameterError.new("Bad parameter: as2_message_retention_days must be an Integer") if params[:as2_message_retention_days] and !params[:as2_message_retention_days].is_a?(Integer)
|
|
1172
|
+
raise InvalidParameterError.new("Bad parameter: username_display must be an String") if params[:username_display] and !params[:username_display].is_a?(String)
|
|
1166
1173
|
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)
|
|
1167
1174
|
raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params[:user_lockout_tries] and !params[:user_lockout_tries].is_a?(Integer)
|
|
1168
1175
|
raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params[:user_lockout_within] and !params[:user_lockout_within].is_a?(Integer)
|
|
@@ -171,6 +171,15 @@ module Files
|
|
|
171
171
|
@attributes[:trigger_file] = value
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
+
# boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
175
|
+
def always_write_trigger_file
|
|
176
|
+
@attributes[:always_write_trigger_file]
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
def always_write_trigger_file=(value)
|
|
180
|
+
@attributes[:always_write_trigger_file] = value
|
|
181
|
+
end
|
|
182
|
+
|
|
174
183
|
# array(string) - Array of glob patterns to include
|
|
175
184
|
def include_patterns
|
|
176
185
|
@attributes[:include_patterns]
|
|
@@ -314,6 +323,7 @@ module Files
|
|
|
314
323
|
# sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
|
|
315
324
|
# trigger - string - Trigger type: daily, custom_schedule, or manual
|
|
316
325
|
# trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
326
|
+
# always_write_trigger_file - boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
317
327
|
def update(params = {})
|
|
318
328
|
params ||= {}
|
|
319
329
|
params[:id] = @attributes[:id]
|
|
@@ -424,6 +434,7 @@ module Files
|
|
|
424
434
|
# sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
|
|
425
435
|
# trigger - string - Trigger type: daily, custom_schedule, or manual
|
|
426
436
|
# trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
437
|
+
# always_write_trigger_file - boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
427
438
|
# workspace_id - int64 - Workspace ID this sync belongs to
|
|
428
439
|
def self.create(params = {}, options = {})
|
|
429
440
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
@@ -492,6 +503,7 @@ module Files
|
|
|
492
503
|
# sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
|
|
493
504
|
# trigger - string - Trigger type: daily, custom_schedule, or manual
|
|
494
505
|
# trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
506
|
+
# always_write_trigger_file - boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
|
|
495
507
|
def self.update(id, params = {}, options = {})
|
|
496
508
|
params ||= {}
|
|
497
509
|
params[:id] = id
|
data/lib/files.com/version.rb
CHANGED
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.1.
|
|
4
|
+
version: 1.1.642
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|