files.com 1.1.639 → 1.1.641
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/notification.md +12 -4
- data/docs/site.md +4 -0
- data/lib/files.com/models/key_lifecycle_rule.rb +4 -4
- data/lib/files.com/models/notification.rb +17 -2
- data/lib/files.com/models/site.rb +7 -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: e86c6e57011fc81b6b86580334297b14845b2cebdb3ee23d2d3ff8372d209a99
|
|
4
|
+
data.tar.gz: 511e07781d82e027691e3ada0e3fcd20fe9a8978842c2bd01895003c49b0299c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10ab540261b5b9e3968fd712802423ecd4a533f66fbf53eaf90a438ddaaf506690a60434a0522e287e6c7b26d0d55c4c55a803ee0df7958f6662757d7d25459b
|
|
7
|
+
data.tar.gz: dbe335416162c24caf2a0861e0fc0af1bfdf5396edc57f469d1c1384c8dc082bbd97ccb478bf13244d66573d71e304e7db9621157fb876ad2d6bcd5071919323
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.641
|
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/notification.md
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"*.jpg",
|
|
36
36
|
"notify_file.txt"
|
|
37
37
|
],
|
|
38
|
+
"workspace_id": 1,
|
|
38
39
|
"unsubscribed": true,
|
|
39
40
|
"unsubscribed_reason": "example",
|
|
40
41
|
"user_id": 1,
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
* `subject` (string): Custom subject line to use for notification emails
|
|
64
65
|
* `message` (string): Custom message to include in notification emails
|
|
65
66
|
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
|
|
67
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
66
68
|
* `unsubscribed` (boolean): Is the user unsubscribed from this notification?
|
|
67
69
|
* `unsubscribed_reason` (string): The reason that the user unsubscribed
|
|
68
70
|
* `user_id` (int64): Notification user ID
|
|
@@ -85,8 +87,8 @@ Files::Notification.list(
|
|
|
85
87
|
|
|
86
88
|
* `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.
|
|
87
89
|
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
88
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `user_id` or `group_id`.
|
|
89
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
|
90
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `path`, `user_id` or `group_id`.
|
|
91
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id`, `workspace_id` or `group_id`. Valid field combinations are `[ workspace_id, path ]`, `[ workspace_id, user_id ]`, `[ workspace_id, group_id ]` or `[ workspace_id, user_id, path ]`.
|
|
90
92
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
91
93
|
* `path` (string): Show notifications for this Path.
|
|
92
94
|
* `include_ancestors` (boolean): If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
|
@@ -127,6 +129,7 @@ Files::Notification.create(
|
|
|
127
129
|
triggering_group_ids: [1],
|
|
128
130
|
triggering_user_ids: [1],
|
|
129
131
|
trigger_by_share_recipients: true,
|
|
132
|
+
workspace_id: 1,
|
|
130
133
|
group_id: 1,
|
|
131
134
|
group_ids: [1],
|
|
132
135
|
username: "User"
|
|
@@ -150,6 +153,7 @@ Files::Notification.create(
|
|
|
150
153
|
* `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
|
|
151
154
|
* `triggering_user_ids` (array(int64)): If set, will only notify on actions made one of the specified users
|
|
152
155
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
|
156
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
153
157
|
* `group_id` (int64): The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
|
154
158
|
* `group_ids` (string): Group IDs when the notification requires multiple groups. If sent as a string, it should be comma-delimited.
|
|
155
159
|
* `path` (string): Path
|
|
@@ -175,7 +179,8 @@ Files::Notification.update(id,
|
|
|
175
179
|
triggering_filenames: ["*.jpg","notify_file.txt"],
|
|
176
180
|
triggering_group_ids: [1],
|
|
177
181
|
triggering_user_ids: [1],
|
|
178
|
-
trigger_by_share_recipients: true
|
|
182
|
+
trigger_by_share_recipients: true,
|
|
183
|
+
workspace_id: 1
|
|
179
184
|
)
|
|
180
185
|
```
|
|
181
186
|
|
|
@@ -196,6 +201,7 @@ Files::Notification.update(id,
|
|
|
196
201
|
* `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
|
|
197
202
|
* `triggering_user_ids` (array(int64)): If set, will only notify on actions made one of the specified users
|
|
198
203
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
|
204
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
199
205
|
|
|
200
206
|
|
|
201
207
|
---
|
|
@@ -232,7 +238,8 @@ notification.update(
|
|
|
232
238
|
triggering_filenames: ["*.jpg","notify_file.txt"],
|
|
233
239
|
triggering_group_ids: [1],
|
|
234
240
|
triggering_user_ids: [1],
|
|
235
|
-
trigger_by_share_recipients: true
|
|
241
|
+
trigger_by_share_recipients: true,
|
|
242
|
+
workspace_id: 1
|
|
236
243
|
)
|
|
237
244
|
```
|
|
238
245
|
|
|
@@ -253,6 +260,7 @@ notification.update(
|
|
|
253
260
|
* `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
|
|
254
261
|
* `triggering_user_ids` (array(int64)): If set, will only notify on actions made one of the specified users
|
|
255
262
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
|
263
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
256
264
|
|
|
257
265
|
|
|
258
266
|
---
|
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.
|
|
@@ -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.
|
|
@@ -189,6 +189,15 @@ module Files
|
|
|
189
189
|
@attributes[:triggering_filenames] = value
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
+
# int64 - Workspace ID. `0` means the default workspace.
|
|
193
|
+
def workspace_id
|
|
194
|
+
@attributes[:workspace_id]
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
def workspace_id=(value)
|
|
198
|
+
@attributes[:workspace_id] = value
|
|
199
|
+
end
|
|
200
|
+
|
|
192
201
|
# boolean - Is the user unsubscribed from this notification?
|
|
193
202
|
def unsubscribed
|
|
194
203
|
@attributes[:unsubscribed]
|
|
@@ -249,6 +258,7 @@ module Files
|
|
|
249
258
|
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
250
259
|
# triggering_user_ids - array(int64) - If set, will only notify on actions made one of the specified users
|
|
251
260
|
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
261
|
+
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
252
262
|
def update(params = {})
|
|
253
263
|
params ||= {}
|
|
254
264
|
params[:id] = @attributes[:id]
|
|
@@ -260,6 +270,7 @@ module Files
|
|
|
260
270
|
raise InvalidParameterError.new("Bad parameter: triggering_filenames must be an Array") if params[:triggering_filenames] and !params[:triggering_filenames].is_a?(Array)
|
|
261
271
|
raise InvalidParameterError.new("Bad parameter: triggering_group_ids must be an Array") if params[:triggering_group_ids] and !params[:triggering_group_ids].is_a?(Array)
|
|
262
272
|
raise InvalidParameterError.new("Bad parameter: triggering_user_ids must be an Array") if params[:triggering_user_ids] and !params[:triggering_user_ids].is_a?(Array)
|
|
273
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
263
274
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
264
275
|
|
|
265
276
|
Api.send_request("/notifications/#{@attributes[:id]}", :patch, params, @options)
|
|
@@ -294,8 +305,8 @@ module Files
|
|
|
294
305
|
# Parameters:
|
|
295
306
|
# 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.
|
|
296
307
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
297
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `user_id` or `group_id`.
|
|
298
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
|
308
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `path`, `user_id` or `group_id`.
|
|
309
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id`, `workspace_id` or `group_id`. Valid field combinations are `[ workspace_id, path ]`, `[ workspace_id, user_id ]`, `[ workspace_id, group_id ]` or `[ workspace_id, user_id, path ]`.
|
|
299
310
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
300
311
|
# path - string - Show notifications for this Path.
|
|
301
312
|
# include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
|
@@ -350,6 +361,7 @@ module Files
|
|
|
350
361
|
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
351
362
|
# triggering_user_ids - array(int64) - If set, will only notify on actions made one of the specified users
|
|
352
363
|
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
364
|
+
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
353
365
|
# group_id - int64 - The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
|
354
366
|
# group_ids - string - Group IDs when the notification requires multiple groups. If sent as a string, it should be comma-delimited.
|
|
355
367
|
# path - string - Path
|
|
@@ -362,6 +374,7 @@ module Files
|
|
|
362
374
|
raise InvalidParameterError.new("Bad parameter: triggering_filenames must be an Array") if params[:triggering_filenames] and !params[:triggering_filenames].is_a?(Array)
|
|
363
375
|
raise InvalidParameterError.new("Bad parameter: triggering_group_ids must be an Array") if params[:triggering_group_ids] and !params[:triggering_group_ids].is_a?(Array)
|
|
364
376
|
raise InvalidParameterError.new("Bad parameter: triggering_user_ids must be an Array") if params[:triggering_user_ids] and !params[:triggering_user_ids].is_a?(Array)
|
|
377
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
365
378
|
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params[:group_id] and !params[:group_id].is_a?(Integer)
|
|
366
379
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
|
367
380
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
@@ -386,6 +399,7 @@ module Files
|
|
|
386
399
|
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
387
400
|
# triggering_user_ids - array(int64) - If set, will only notify on actions made one of the specified users
|
|
388
401
|
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
402
|
+
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
389
403
|
def self.update(id, params = {}, options = {})
|
|
390
404
|
params ||= {}
|
|
391
405
|
params[:id] = id
|
|
@@ -396,6 +410,7 @@ module Files
|
|
|
396
410
|
raise InvalidParameterError.new("Bad parameter: triggering_filenames must be an Array") if params[:triggering_filenames] and !params[:triggering_filenames].is_a?(Array)
|
|
397
411
|
raise InvalidParameterError.new("Bad parameter: triggering_group_ids must be an Array") if params[:triggering_group_ids] and !params[:triggering_group_ids].is_a?(Array)
|
|
398
412
|
raise InvalidParameterError.new("Bad parameter: triggering_user_ids must be an Array") if params[:triggering_user_ids] and !params[:triggering_user_ids].is_a?(Array)
|
|
413
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
399
414
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
400
415
|
|
|
401
416
|
response, options = Api.send_request("/notifications/#{params[:id]}", :patch, params, options)
|
|
@@ -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)
|
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.641
|
|
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
|