files.com 1.1.728 → 1.1.729
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/as2_partner.md +4 -4
- data/docs/bundle.md +13 -3
- data/docs/desktop_configuration_profile.md +4 -4
- data/docs/file.md +4 -4
- data/docs/folder.md +1 -1
- data/docs/integration_centric_profile.md +7 -4
- data/docs/secret.md +4 -4
- data/docs/siem_http_destination.md +5 -5
- data/docs/site.md +5 -3
- data/lib/files.com/models/bundle.rb +5 -0
- data/lib/files.com/models/site.rb +2 -2
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b18f71150e4b108a7f9cc83b7d08e3123b2edf875a0dc952c33840215460a39
|
|
4
|
+
data.tar.gz: 708e2f0575459db6d6f769335adfb52dc87fcb46660c6d7a03ef343942a078d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4153996df08529611c7ee9a176c2221977973e8271222058c03e624f40d716da64706751056f44b8644a5bf942298624c58193604d077ab5a8c1a59505bc314
|
|
7
|
+
data.tar.gz: 5a41b06f111f796adac8e17b805a5308b7ea7fdfdefb4a1bb01d327b9f7c234581f2781fded1fe5bd079e52965a52b4f93b8517699b9de80ffc30c1c0645e6bd
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.729
|
data/docs/as2_partner.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"server_certificate": "require_match",
|
|
13
13
|
"http_auth_username": "username",
|
|
14
14
|
"additional_http_headers": {
|
|
15
|
-
"
|
|
15
|
+
"X-Partner": "acme"
|
|
16
16
|
},
|
|
17
17
|
"default_mime_type": "application/octet-stream",
|
|
18
18
|
"mdn_validation_level": "none",
|
|
@@ -93,7 +93,7 @@ Files::As2Partner.create(
|
|
|
93
93
|
signature_validation_level: "normal",
|
|
94
94
|
server_certificate: "require_match",
|
|
95
95
|
default_mime_type: "application/octet-stream",
|
|
96
|
-
additional_http_headers: {"
|
|
96
|
+
additional_http_headers: {"X-Partner":"acme"},
|
|
97
97
|
as2_station_id: 1,
|
|
98
98
|
name: "AS2 Partner Name",
|
|
99
99
|
uri: "example",
|
|
@@ -129,7 +129,7 @@ Files::As2Partner.update(id,
|
|
|
129
129
|
signature_validation_level: "normal",
|
|
130
130
|
server_certificate: "require_match",
|
|
131
131
|
default_mime_type: "application/octet-stream",
|
|
132
|
-
additional_http_headers: {"
|
|
132
|
+
additional_http_headers: {"X-Partner":"acme"},
|
|
133
133
|
name: "AS2 Partner Name",
|
|
134
134
|
uri: "example",
|
|
135
135
|
public_certificate: "example"
|
|
@@ -179,7 +179,7 @@ as2_partner.update(
|
|
|
179
179
|
signature_validation_level: "normal",
|
|
180
180
|
server_certificate: "require_match",
|
|
181
181
|
default_mime_type: "application/octet-stream",
|
|
182
|
-
additional_http_headers: {"
|
|
182
|
+
additional_http_headers: {"X-Partner":"acme"},
|
|
183
183
|
name: "AS2 Partner Name",
|
|
184
184
|
uri: "example",
|
|
185
185
|
public_certificate: "example"
|
data/docs/bundle.md
CHANGED
|
@@ -77,14 +77,18 @@
|
|
|
77
77
|
"uri": "https://mysite.files.com/.../my_image.png"
|
|
78
78
|
},
|
|
79
79
|
"watermark_value": {
|
|
80
|
-
"
|
|
80
|
+
"gravity": "SouthWest",
|
|
81
|
+
"max_height_or_width": 20,
|
|
82
|
+
"transparency": 25
|
|
81
83
|
},
|
|
82
84
|
"send_one_time_password_to_recipient_at_registration": true,
|
|
83
85
|
"workspace_id": 1,
|
|
84
86
|
"has_inbox": true,
|
|
85
87
|
"dont_allow_folders_in_uploads": true,
|
|
86
88
|
"requested_upload_slots": [
|
|
87
|
-
|
|
89
|
+
{
|
|
90
|
+
"name": "Photo ID"
|
|
91
|
+
}
|
|
88
92
|
],
|
|
89
93
|
"paths": [
|
|
90
94
|
"file.txt"
|
|
@@ -231,7 +235,8 @@ Files::Bundle.create(
|
|
|
231
235
|
skip_company: true,
|
|
232
236
|
start_access_on_date: "2000-01-01T01:00:00Z",
|
|
233
237
|
snapshot_id: 1,
|
|
234
|
-
workspace_id: 1
|
|
238
|
+
workspace_id: 1,
|
|
239
|
+
watermark_value: {"gravity":"SouthWest","max_height_or_width":20,"transparency":25}
|
|
235
240
|
)
|
|
236
241
|
```
|
|
237
242
|
|
|
@@ -268,6 +273,7 @@ Files::Bundle.create(
|
|
|
268
273
|
* `snapshot_id` (int64): ID of the snapshot containing this bundle's contents.
|
|
269
274
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
270
275
|
* `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
|
|
276
|
+
* `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
271
277
|
|
|
272
278
|
|
|
273
279
|
---
|
|
@@ -325,6 +331,7 @@ Files::Bundle.update(id,
|
|
|
325
331
|
skip_name: true,
|
|
326
332
|
user_id: 1,
|
|
327
333
|
watermark_attachment_delete: false,
|
|
334
|
+
watermark_value: {"gravity":"SouthWest","max_height_or_width":20,"transparency":25},
|
|
328
335
|
workspace_id: 1
|
|
329
336
|
)
|
|
330
337
|
```
|
|
@@ -362,6 +369,7 @@ Files::Bundle.update(id,
|
|
|
362
369
|
* `user_id` (int64): The owning user id. Only site admins can set this.
|
|
363
370
|
* `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
|
|
364
371
|
* `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
|
|
372
|
+
* `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
365
373
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
366
374
|
|
|
367
375
|
|
|
@@ -437,6 +445,7 @@ bundle.update(
|
|
|
437
445
|
skip_name: true,
|
|
438
446
|
user_id: 1,
|
|
439
447
|
watermark_attachment_delete: false,
|
|
448
|
+
watermark_value: {"gravity":"SouthWest","max_height_or_width":20,"transparency":25},
|
|
440
449
|
workspace_id: 1
|
|
441
450
|
)
|
|
442
451
|
```
|
|
@@ -474,6 +483,7 @@ bundle.update(
|
|
|
474
483
|
* `user_id` (int64): The owning user id. Only site admins can set this.
|
|
475
484
|
* `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
|
|
476
485
|
* `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
|
|
486
|
+
* `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
477
487
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
478
488
|
|
|
479
489
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"use_for_all_users": false,
|
|
11
11
|
"disable_drive_mounting": false,
|
|
12
12
|
"mount_mappings": {
|
|
13
|
-
"
|
|
13
|
+
"W": "Americas"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
```
|
|
@@ -59,7 +59,7 @@ Files::DesktopConfigurationProfile.find(id)
|
|
|
59
59
|
```
|
|
60
60
|
Files::DesktopConfigurationProfile.create(
|
|
61
61
|
name: "North America Desktop Profile",
|
|
62
|
-
mount_mappings: {"
|
|
62
|
+
mount_mappings: {"W":"Americas"},
|
|
63
63
|
workspace_id: 1,
|
|
64
64
|
use_for_all_users: false,
|
|
65
65
|
disable_drive_mounting: false
|
|
@@ -83,7 +83,7 @@ Files::DesktopConfigurationProfile.create(
|
|
|
83
83
|
Files::DesktopConfigurationProfile.update(id,
|
|
84
84
|
name: "North America Desktop Profile",
|
|
85
85
|
workspace_id: 1,
|
|
86
|
-
mount_mappings: {"
|
|
86
|
+
mount_mappings: {"W":"Americas"},
|
|
87
87
|
use_for_all_users: false,
|
|
88
88
|
disable_drive_mounting: false
|
|
89
89
|
)
|
|
@@ -122,7 +122,7 @@ desktop_configuration_profile = Files::DesktopConfigurationProfile.find(id)
|
|
|
122
122
|
desktop_configuration_profile.update(
|
|
123
123
|
name: "North America Desktop Profile",
|
|
124
124
|
workspace_id: 1,
|
|
125
|
-
mount_mappings: {"
|
|
125
|
+
mount_mappings: {"W":"Americas"},
|
|
126
126
|
use_for_all_users: false,
|
|
127
127
|
disable_drive_mounting: false
|
|
128
128
|
)
|
data/docs/file.md
CHANGED
|
@@ -17,7 +17,7 @@ may places where a Ruby File object can be used.
|
|
|
17
17
|
"created_by_remote_server_id": 1,
|
|
18
18
|
"created_by_sync_id": 1,
|
|
19
19
|
"custom_metadata": {
|
|
20
|
-
"
|
|
20
|
+
"department": "finance"
|
|
21
21
|
},
|
|
22
22
|
"display_name": "file.txt",
|
|
23
23
|
"type": "file",
|
|
@@ -140,7 +140,7 @@ Files::File.download(path,
|
|
|
140
140
|
|
|
141
141
|
```
|
|
142
142
|
Files::File.create(path,
|
|
143
|
-
custom_metadata: {"
|
|
143
|
+
custom_metadata: {"department":"finance"},
|
|
144
144
|
length: 1,
|
|
145
145
|
mkdir_parents: false,
|
|
146
146
|
part: 1,
|
|
@@ -183,7 +183,7 @@ Files::File.create(path,
|
|
|
183
183
|
|
|
184
184
|
```
|
|
185
185
|
Files::File.update(path,
|
|
186
|
-
custom_metadata: {"
|
|
186
|
+
custom_metadata: {"department":"finance"},
|
|
187
187
|
provided_mtime: "2000-01-01T01:00:00Z",
|
|
188
188
|
priority_color: "red"
|
|
189
189
|
)
|
|
@@ -464,7 +464,7 @@ file.download(
|
|
|
464
464
|
file = Files::File.find(path)
|
|
465
465
|
|
|
466
466
|
file.update(
|
|
467
|
-
custom_metadata: {"
|
|
467
|
+
custom_metadata: {"department":"finance"},
|
|
468
468
|
provided_mtime: "2000-01-01T01:00:00Z",
|
|
469
469
|
priority_color: "red"
|
|
470
470
|
)
|
data/docs/folder.md
CHANGED
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
"workspace_id": 1,
|
|
10
10
|
"use_for_all_users": false,
|
|
11
11
|
"expected_remote_servers": [
|
|
12
|
-
|
|
12
|
+
{
|
|
13
|
+
"server_type": "dropbox",
|
|
14
|
+
"name": "Dropbox"
|
|
15
|
+
}
|
|
13
16
|
]
|
|
14
17
|
}
|
|
15
18
|
```
|
|
@@ -57,7 +60,7 @@ Files::IntegrationCentricProfile.find(id)
|
|
|
57
60
|
```
|
|
58
61
|
Files::IntegrationCentricProfile.create(
|
|
59
62
|
name: "Business Systems Onboarding",
|
|
60
|
-
expected_remote_servers: ["
|
|
63
|
+
expected_remote_servers: [{"server_type":"dropbox","name":"Dropbox"}],
|
|
61
64
|
workspace_id: 1,
|
|
62
65
|
use_for_all_users: false
|
|
63
66
|
)
|
|
@@ -79,7 +82,7 @@ Files::IntegrationCentricProfile.create(
|
|
|
79
82
|
Files::IntegrationCentricProfile.update(id,
|
|
80
83
|
name: "Business Systems Onboarding",
|
|
81
84
|
workspace_id: 1,
|
|
82
|
-
expected_remote_servers: ["
|
|
85
|
+
expected_remote_servers: [{"server_type":"dropbox","name":"Dropbox"}],
|
|
83
86
|
use_for_all_users: false
|
|
84
87
|
)
|
|
85
88
|
```
|
|
@@ -116,7 +119,7 @@ integration_centric_profile = Files::IntegrationCentricProfile.find(id)
|
|
|
116
119
|
integration_centric_profile.update(
|
|
117
120
|
name: "Business Systems Onboarding",
|
|
118
121
|
workspace_id: 1,
|
|
119
|
-
expected_remote_servers: ["
|
|
122
|
+
expected_remote_servers: [{"server_type":"dropbox","name":"Dropbox"}],
|
|
120
123
|
use_for_all_users: false
|
|
121
124
|
)
|
|
122
125
|
```
|
data/docs/secret.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "Used by production API integrations.",
|
|
11
11
|
"secret_type": "token",
|
|
12
12
|
"metadata": {
|
|
13
|
-
"
|
|
13
|
+
"header_name": "Authorization"
|
|
14
14
|
},
|
|
15
15
|
"value_field_names": [
|
|
16
16
|
"example"
|
|
@@ -70,7 +70,7 @@ Files::Secret.create(
|
|
|
70
70
|
name: "Production API token",
|
|
71
71
|
description: "Used by production API integrations.",
|
|
72
72
|
secret_type: "token",
|
|
73
|
-
metadata: {"
|
|
73
|
+
metadata: {"header_name":"Authorization"},
|
|
74
74
|
workspace_id: 0
|
|
75
75
|
)
|
|
76
76
|
```
|
|
@@ -93,7 +93,7 @@ Files::Secret.update(id,
|
|
|
93
93
|
name: "Production API token",
|
|
94
94
|
description: "Used by production API integrations.",
|
|
95
95
|
secret_type: "token",
|
|
96
|
-
metadata: {"
|
|
96
|
+
metadata: {"header_name":"Authorization"}
|
|
97
97
|
)
|
|
98
98
|
```
|
|
99
99
|
|
|
@@ -130,7 +130,7 @@ secret.update(
|
|
|
130
130
|
name: "Production API token",
|
|
131
131
|
description: "Used by production API integrations.",
|
|
132
132
|
secret_type: "token",
|
|
133
|
-
metadata: {"
|
|
133
|
+
metadata: {"header_name":"Authorization"}
|
|
134
134
|
)
|
|
135
135
|
```
|
|
136
136
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"file_format": "example",
|
|
13
13
|
"file_interval_minutes": 1,
|
|
14
14
|
"additional_headers": {
|
|
15
|
-
"
|
|
15
|
+
"Authorization": "Bearer YOUR_TOKEN"
|
|
16
16
|
},
|
|
17
17
|
"sending_active": true,
|
|
18
18
|
"generic_payload_type": "example",
|
|
@@ -162,7 +162,7 @@ Files::SiemHttpDestination.find(id)
|
|
|
162
162
|
```
|
|
163
163
|
Files::SiemHttpDestination.create(
|
|
164
164
|
name: "example",
|
|
165
|
-
additional_headers: {"
|
|
165
|
+
additional_headers: {"Authorization":"Bearer YOUR_TOKEN"},
|
|
166
166
|
sending_active: true,
|
|
167
167
|
generic_payload_type: "example",
|
|
168
168
|
file_destination_path: "example",
|
|
@@ -237,7 +237,7 @@ Files::SiemHttpDestination.send_test_entry(
|
|
|
237
237
|
destination_type: "example",
|
|
238
238
|
destination_url: "example",
|
|
239
239
|
name: "example",
|
|
240
|
-
additional_headers: {"
|
|
240
|
+
additional_headers: {"Authorization":"Bearer YOUR_TOKEN"},
|
|
241
241
|
sending_active: true,
|
|
242
242
|
generic_payload_type: "example",
|
|
243
243
|
file_destination_path: "example",
|
|
@@ -308,7 +308,7 @@ Files::SiemHttpDestination.send_test_entry(
|
|
|
308
308
|
```
|
|
309
309
|
Files::SiemHttpDestination.update(id,
|
|
310
310
|
name: "example",
|
|
311
|
-
additional_headers: {"
|
|
311
|
+
additional_headers: {"Authorization":"Bearer YOUR_TOKEN"},
|
|
312
312
|
sending_active: true,
|
|
313
313
|
generic_payload_type: "example",
|
|
314
314
|
file_destination_path: "example",
|
|
@@ -396,7 +396,7 @@ siem_http_destination = Files::SiemHttpDestination.find(id)
|
|
|
396
396
|
|
|
397
397
|
siem_http_destination.update(
|
|
398
398
|
name: "example",
|
|
399
|
-
additional_headers: {"
|
|
399
|
+
additional_headers: {"Authorization":"Bearer YOUR_TOKEN"},
|
|
400
400
|
sending_active: true,
|
|
401
401
|
generic_payload_type: "example",
|
|
402
402
|
file_destination_path: "example",
|
data/docs/site.md
CHANGED
|
@@ -56,7 +56,9 @@
|
|
|
56
56
|
"uri": "https://mysite.files.com/.../my_image.png"
|
|
57
57
|
},
|
|
58
58
|
"bundle_watermark_value": {
|
|
59
|
-
"
|
|
59
|
+
"gravity": "SouthWest",
|
|
60
|
+
"max_height_or_width": 20,
|
|
61
|
+
"transparency": 25
|
|
60
62
|
},
|
|
61
63
|
"calculate_file_checksums_crc32": true,
|
|
62
64
|
"calculate_file_checksums_md5": true,
|
|
@@ -699,7 +701,6 @@ Files::Site.update(
|
|
|
699
701
|
active_sftp_host_key_ids: [1],
|
|
700
702
|
protocol_access_groups_only: false,
|
|
701
703
|
revoke_bundle_access_on_disable_or_delete: false,
|
|
702
|
-
bundle_watermark_value: {"key":"example value"},
|
|
703
704
|
group_admins_can_add_users: false,
|
|
704
705
|
group_admins_can_manage_group_memberships: false,
|
|
705
706
|
group_admins_can_delete_users: false,
|
|
@@ -755,6 +756,7 @@ Files::Site.update(
|
|
|
755
756
|
ldap_group_inclusion: "example",
|
|
756
757
|
ldap_base_dn: "example",
|
|
757
758
|
uploads_via_email_authentication: false,
|
|
759
|
+
bundle_watermark_value: {"gravity":"SouthWest","max_height_or_width":20,"transparency":25},
|
|
758
760
|
icon16_delete: false,
|
|
759
761
|
icon32_delete: false,
|
|
760
762
|
icon48_delete: false,
|
|
@@ -883,7 +885,6 @@ Files::Site.update(
|
|
|
883
885
|
* `active_sftp_host_key_ids` (array(int64)): Ids of the selected custom SFTP Host Keys
|
|
884
886
|
* `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
885
887
|
* `revoke_bundle_access_on_disable_or_delete` (boolean): Auto-removes bundles for disabled/deleted users and enforces bundle expiry within user access period.
|
|
886
|
-
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
887
888
|
* `group_admins_can_add_users` (boolean): Allow group admins to create users in their groups
|
|
888
889
|
* `group_admins_can_manage_group_memberships` (boolean): Allow group admins to add or remove existing users in their groups
|
|
889
890
|
* `group_admins_can_delete_users` (boolean): Allow group admins to delete users in their groups
|
|
@@ -939,6 +940,7 @@ Files::Site.update(
|
|
|
939
940
|
* `ldap_group_inclusion` (string): Comma or newline separated list of group names (with optional wildcards) to include when syncing.
|
|
940
941
|
* `ldap_base_dn` (string): Base DN for looking up users in LDAP server
|
|
941
942
|
* `uploads_via_email_authentication` (boolean): Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
|
|
943
|
+
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
942
944
|
* `icon16_file` (file):
|
|
943
945
|
* `icon16_delete` (boolean): If true, will delete the file stored in icon16
|
|
944
946
|
* `icon32_file` (file):
|
|
@@ -541,6 +541,7 @@ module Files
|
|
|
541
541
|
# user_id - int64 - The owning user id. Only site admins can set this.
|
|
542
542
|
# watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
|
|
543
543
|
# watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
|
544
|
+
# watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
544
545
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
545
546
|
def update(params = {})
|
|
546
547
|
params ||= {}
|
|
@@ -678,6 +679,7 @@ module Files
|
|
|
678
679
|
# snapshot_id - int64 - ID of the snapshot containing this bundle's contents.
|
|
679
680
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
680
681
|
# watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
|
682
|
+
# watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
681
683
|
def self.create(params = {}, options = {})
|
|
682
684
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
683
685
|
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params[:paths] and !params[:paths].is_a?(Array)
|
|
@@ -698,6 +700,7 @@ module Files
|
|
|
698
700
|
raise InvalidParameterError.new("Bad parameter: start_access_on_date must be an String") if params[:start_access_on_date] and !params[:start_access_on_date].is_a?(String)
|
|
699
701
|
raise InvalidParameterError.new("Bad parameter: snapshot_id must be an Integer") if params[:snapshot_id] and !params[:snapshot_id].is_a?(Integer)
|
|
700
702
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
703
|
+
raise InvalidParameterError.new("Bad parameter: watermark_value must be an Hash") if params[:watermark_value] and !params[:watermark_value].is_a?(Hash)
|
|
701
704
|
raise MissingParameterError.new("Parameter missing: paths") unless params[:paths]
|
|
702
705
|
|
|
703
706
|
response, options = Api.send_request("/bundles", :post, params, options)
|
|
@@ -754,6 +757,7 @@ module Files
|
|
|
754
757
|
# user_id - int64 - The owning user id. Only site admins can set this.
|
|
755
758
|
# watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
|
|
756
759
|
# watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
|
760
|
+
# watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
757
761
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
758
762
|
def self.update(id, params = {}, options = {})
|
|
759
763
|
params ||= {}
|
|
@@ -776,6 +780,7 @@ module Files
|
|
|
776
780
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
|
777
781
|
raise InvalidParameterError.new("Bad parameter: start_access_on_date must be an String") if params[:start_access_on_date] and !params[:start_access_on_date].is_a?(String)
|
|
778
782
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
783
|
+
raise InvalidParameterError.new("Bad parameter: watermark_value must be an Hash") if params[:watermark_value] and !params[:watermark_value].is_a?(Hash)
|
|
779
784
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
780
785
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
781
786
|
|
|
@@ -1114,7 +1114,6 @@ module Files
|
|
|
1114
1114
|
# active_sftp_host_key_ids - array(int64) - Ids of the selected custom SFTP Host Keys
|
|
1115
1115
|
# protocol_access_groups_only - boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
1116
1116
|
# revoke_bundle_access_on_disable_or_delete - boolean - Auto-removes bundles for disabled/deleted users and enforces bundle expiry within user access period.
|
|
1117
|
-
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
1118
1117
|
# group_admins_can_add_users - boolean - Allow group admins to create users in their groups
|
|
1119
1118
|
# group_admins_can_manage_group_memberships - boolean - Allow group admins to add or remove existing users in their groups
|
|
1120
1119
|
# group_admins_can_delete_users - boolean - Allow group admins to delete users in their groups
|
|
@@ -1170,6 +1169,7 @@ module Files
|
|
|
1170
1169
|
# ldap_group_inclusion - string - Comma or newline separated list of group names (with optional wildcards) to include when syncing.
|
|
1171
1170
|
# ldap_base_dn - string - Base DN for looking up users in LDAP server
|
|
1172
1171
|
# uploads_via_email_authentication - boolean - Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
|
|
1172
|
+
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
1173
1173
|
# icon16_file - file
|
|
1174
1174
|
# icon16_delete - boolean - If true, will delete the file stored in icon16
|
|
1175
1175
|
# icon32_file - file
|
|
@@ -1230,7 +1230,6 @@ module Files
|
|
|
1230
1230
|
raise InvalidParameterError.new("Bad parameter: sftp_host_key_type must be an String") if params[:sftp_host_key_type] and !params[:sftp_host_key_type].is_a?(String)
|
|
1231
1231
|
raise InvalidParameterError.new("Bad parameter: active_sftp_host_key_id must be an Integer") if params[:active_sftp_host_key_id] and !params[:active_sftp_host_key_id].is_a?(Integer)
|
|
1232
1232
|
raise InvalidParameterError.new("Bad parameter: active_sftp_host_key_ids must be an Array") if params[:active_sftp_host_key_ids] and !params[:active_sftp_host_key_ids].is_a?(Array)
|
|
1233
|
-
raise InvalidParameterError.new("Bad parameter: bundle_watermark_value must be an Hash") if params[:bundle_watermark_value] and !params[:bundle_watermark_value].is_a?(Hash)
|
|
1234
1233
|
raise InvalidParameterError.new("Bad parameter: bundle_recipient_blacklist_domains must be an Array") if params[:bundle_recipient_blacklist_domains] and !params[:bundle_recipient_blacklist_domains].is_a?(Array)
|
|
1235
1234
|
raise InvalidParameterError.new("Bad parameter: require_2fa_user_type must be an String") if params[:require_2fa_user_type] and !params[:require_2fa_user_type].is_a?(String)
|
|
1236
1235
|
raise InvalidParameterError.new("Bad parameter: color2_top must be an String") if params[:color2_top] and !params[:color2_top].is_a?(String)
|
|
@@ -1263,6 +1262,7 @@ module Files
|
|
|
1263
1262
|
raise InvalidParameterError.new("Bad parameter: ldap_group_exclusion must be an String") if params[:ldap_group_exclusion] and !params[:ldap_group_exclusion].is_a?(String)
|
|
1264
1263
|
raise InvalidParameterError.new("Bad parameter: ldap_group_inclusion must be an String") if params[:ldap_group_inclusion] and !params[:ldap_group_inclusion].is_a?(String)
|
|
1265
1264
|
raise InvalidParameterError.new("Bad parameter: ldap_base_dn must be an String") if params[:ldap_base_dn] and !params[:ldap_base_dn].is_a?(String)
|
|
1265
|
+
raise InvalidParameterError.new("Bad parameter: bundle_watermark_value must be an Hash") if params[:bundle_watermark_value] and !params[:bundle_watermark_value].is_a?(Hash)
|
|
1266
1266
|
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)
|
|
1267
1267
|
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)
|
|
1268
1268
|
raise InvalidParameterError.new("Bad parameter: smtp_password must be an String") if params[:smtp_password] and !params[:smtp_password].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED