files.com 1.0.295 → 1.0.297

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. data/docs/account_line_item.md +3 -19
  4. data/docs/action_notification_export.md +1 -1
  5. data/docs/api_key.md +4 -1
  6. data/docs/app.md +17 -15
  7. data/docs/as2_incoming_message.md +29 -25
  8. data/docs/as2_outgoing_message.md +24 -20
  9. data/docs/as2_partner.md +9 -7
  10. data/docs/as2_station.md +9 -9
  11. data/docs/automation.md +28 -24
  12. data/docs/behavior.md +15 -7
  13. data/docs/bundle.md +4 -33
  14. data/docs/bundle_download.md +2 -2
  15. data/docs/bundle_registration.md +5 -3
  16. data/docs/clickwrap.md +15 -6
  17. data/docs/dns_record.md +1 -1
  18. data/docs/external_event.md +7 -7
  19. data/docs/file.md +1 -7
  20. data/docs/file_action.md +1 -1
  21. data/docs/file_comment.md +1 -4
  22. data/docs/file_upload_part.md +11 -5
  23. data/docs/folder.md +1 -7
  24. data/docs/form_field_set.md +4 -17
  25. data/docs/group.md +5 -2
  26. data/docs/group_user.md +1 -1
  27. data/docs/history_export.md +1 -1
  28. data/docs/inbox_registration.md +5 -3
  29. data/docs/inbox_upload.md +2 -2
  30. data/docs/invoice.md +3 -19
  31. data/docs/lock.md +1 -1
  32. data/docs/message.md +1 -10
  33. data/docs/message_comment.md +1 -4
  34. data/docs/notification.md +2 -2
  35. data/docs/payment.md +3 -19
  36. data/docs/permission.md +4 -2
  37. data/docs/public_ip_address.md +2 -2
  38. data/docs/remote_server.md +15 -6
  39. data/docs/request.md +7 -6
  40. data/docs/settings_change.md +1 -1
  41. data/docs/sftp_host_key.md +6 -9
  42. data/docs/site.md +47 -114
  43. data/docs/sso_strategy.md +12 -12
  44. data/docs/status.md +4 -11
  45. data/docs/style.md +2 -2
  46. data/docs/usage_daily_snapshot.md +11 -9
  47. data/docs/usage_snapshot.md +3 -1
  48. data/docs/user.md +14 -8
  49. data/docs/user_request.md +1 -1
  50. data/docs/webhook_test.md +4 -4
  51. data/lib/files.com/models/site.rb +19 -0
  52. metadata +2 -2
data/docs/site.md CHANGED
@@ -14,16 +14,15 @@
14
14
  "admin_user_id": 1,
15
15
  "allow_bundle_names": true,
16
16
  "allowed_countries": "US,DE",
17
- "allowed_ips": "",
17
+ "allowed_ips": "example",
18
18
  "ask_about_overwrites": true,
19
19
  "bundle_expiration": 1,
20
20
  "bundle_password_required": true,
21
21
  "bundle_require_share_recipient": true,
22
- "bundle_watermark_attachment": {
23
- "name": "My logo",
24
- "uri": "https://mysite.files.com/.../my_image.png"
22
+ "bundle_watermark_attachment": "",
23
+ "bundle_watermark_value": {
24
+ "key": "example value"
25
25
  },
26
- "bundle_watermark_value": "",
27
26
  "color2_left": "#0066a7",
28
27
  "color2_link": "#d34f5d",
29
28
  "color2_text": "#0066a7",
@@ -47,39 +46,27 @@
47
46
  "disable_password_reset": true,
48
47
  "domain": "my-custom-domain.com",
49
48
  "domain_hsts_header": true,
50
- "domain_letsencrypt_chain": "",
51
- "email": "john.doe@files.com",
49
+ "domain_letsencrypt_chain": "example",
50
+ "email": "example",
52
51
  "ftp_enabled": true,
53
- "reply_to_email": "jane.doe@files.com",
52
+ "reply_to_email": "example",
54
53
  "non_sso_groups_allowed": true,
55
54
  "non_sso_users_allowed": true,
56
55
  "folder_permissions_groups_only": true,
57
56
  "hipaa": true,
58
- "icon128": {
59
- "name": "My logo",
60
- "uri": "https://mysite.files.com/.../my_image.png"
61
- },
62
- "icon16": {
63
- "name": "My logo",
64
- "uri": "https://mysite.files.com/.../my_image.png"
65
- },
66
- "icon32": {
67
- "name": "My logo",
68
- "uri": "https://mysite.files.com/.../my_image.png"
69
- },
70
- "icon48": {
71
- "name": "My logo",
72
- "uri": "https://mysite.files.com/.../my_image.png"
73
- },
57
+ "icon128": "",
58
+ "icon16": "",
59
+ "icon32": "",
60
+ "icon48": "",
74
61
  "immutable_files_set_at": "2000-01-01T01:00:00Z",
75
62
  "include_password_in_welcome_email": true,
76
63
  "language": "en",
77
- "ldap_base_dn": "",
64
+ "ldap_base_dn": "example",
78
65
  "ldap_domain": "mysite.com",
79
66
  "ldap_enabled": true,
80
67
  "ldap_group_action": "disabled",
81
- "ldap_group_exclusion": "",
82
- "ldap_group_inclusion": "",
68
+ "ldap_group_exclusion": "example",
69
+ "ldap_group_inclusion": "example",
83
70
  "ldap_host": "ldap.site.com",
84
71
  "ldap_host_2": "ldap2.site.com",
85
72
  "ldap_host_3": "ldap3.site.com",
@@ -87,15 +74,15 @@
87
74
  "ldap_secure": true,
88
75
  "ldap_type": "open_ldap",
89
76
  "ldap_user_action": "disabled",
90
- "ldap_user_include_groups": "",
77
+ "ldap_user_include_groups": "example",
91
78
  "ldap_username": "[ldap username]",
92
79
  "ldap_username_field": "sAMAccountName",
93
80
  "login_help_text": "Login page help text.",
94
- "logo": {
95
- "name": "My logo",
96
- "uri": "https://mysite.files.com/.../my_image.png"
97
- },
81
+ "logo": "",
98
82
  "max_prior_passwords": 1,
83
+ "motd_text": "example",
84
+ "motd_use_for_ftp": true,
85
+ "motd_use_for_sftp": true,
99
86
  "next_billing_amount": 1.0,
100
87
  "next_billing_date": "Apr 20",
101
88
  "office_integration_available": true,
@@ -117,36 +104,15 @@
117
104
  "require_2fa": true,
118
105
  "require_2fa_stop_time": "2000-01-01T01:00:00Z",
119
106
  "require_2fa_user_type": "`site_admins`",
120
- "session": {
121
- "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
122
- "language": "en",
123
- "login_token": "@tok-randomcode",
124
- "login_token_domain": "https://mysite.files.com",
125
- "max_dir_listing_size": false,
126
- "multiple_regions": true,
127
- "read_only": true,
128
- "root_path": "",
129
- "sftp_insecure_ciphers": false,
130
- "site_id": 1,
131
- "ssl_required": true,
132
- "tls_disabled": false,
133
- "two_factor_setup_needed": false,
134
- "allowed_2fa_method_sms": true,
135
- "allowed_2fa_method_totp": true,
136
- "allowed_2fa_method_u2f": true,
137
- "allowed_2fa_method_webauthn": true,
138
- "allowed_2fa_method_yubi": true,
139
- "use_provided_modified_at": true,
140
- "windows_mode_ftp": false
141
- },
107
+ "session": "",
142
108
  "session_pinned_by_ip": true,
143
109
  "sftp_enabled": true,
144
110
  "sftp_insecure_ciphers": true,
145
111
  "sftp_user_root_enabled": true,
146
112
  "sharing_enabled": true,
147
113
  "show_request_access_link": true,
148
- "site_footer": "",
149
- "site_header": "",
114
+ "site_footer": "example",
115
+ "site_header": "example",
150
116
  "smtp_address": "smtp.my-mail-server.com",
151
117
  "smtp_authentication": "plain",
152
118
  "smtp_from": "me@my-mail-server.com",
@@ -161,60 +127,7 @@
161
127
  "trial_until": "2000-01-01T01:00:00Z",
162
128
  "updated_at": "2000-01-01T01:00:00Z",
163
129
  "use_provided_modified_at": true,
164
- "user": {
165
- "id": 1,
166
- "username": "user",
167
- "admin_group_ids": [
168
- 1
169
- ],
170
- "allowed_ips": "127.0.0.1",
171
- "attachments_permission": true,
172
- "api_keys_count": 1,
173
- "authenticate_until": "2000-01-01T01:00:00Z",
174
- "authentication_method": "password",
175
- "avatar_url": "",
176
- "billing_permission": false,
177
- "bypass_site_allowed_ips": false,
178
- "bypass_inactive_disable": false,
179
- "created_at": "2000-01-01T01:00:00Z",
180
- "dav_permission": true,
181
- "disabled": true,
182
- "email": "john.doe@files.com",
183
- "first_login_at": "2000-01-01T01:00:00Z",
184
- "ftp_permission": true,
185
- "group_ids": "",
186
- "header_text": "User-specific message.",
187
- "language": "en",
188
- "last_login_at": "2000-01-01T01:00:00Z",
189
- "last_protocol_cipher": "",
190
- "lockout_expires": "2000-01-01T01:00:00Z",
191
- "name": "John Doe",
192
- "company": "ACME Corp.",
193
- "notes": "Internal notes on this user.",
194
- "notification_daily_send_time": 18,
195
- "office_integration_enabled": true,
196
- "password_set_at": "2000-01-01T01:00:00Z",
197
- "password_validity_days": 1,
198
- "public_keys_count": 1,
199
- "receive_admin_alerts": true,
200
- "require_2fa": "always_require",
201
- "active_2fa": true,
202
- "require_password_change": true,
203
- "password_expired": true,
204
- "restapi_permission": true,
205
- "self_managed": true,
206
- "sftp_permission": true,
207
- "site_admin": true,
208
- "skip_welcome_screen": true,
209
- "ssl_required": "always_require",
210
- "sso_strategy_id": 1,
211
- "subscribe_to_newsletter": true,
212
- "externally_managed": true,
213
- "time_zone": "Pacific Time (US & Canada)",
214
- "type_of_2fa": "yubi",
215
- "updated_at": "2000-01-01T01:00:00Z",
216
- "user_root": ""
217
- },
130
+ "user": "",
218
131
  "user_lockout": true,
219
132
  "user_lockout_lock_period": 1,
220
133
  "user_lockout_tries": 1,
@@ -222,8 +135,8 @@
222
135
  "user_requests_enabled": true,
223
136
  "user_requests_notify_admins": true,
224
137
  "welcome_custom_text": "Welcome to my site!",
225
- "welcome_email_cc": "",
226
- "welcome_email_subject": "",
138
+ "welcome_email_cc": "example",
139
+ "welcome_email_subject": "example",
227
140
  "welcome_email_enabled": true,
228
141
  "welcome_screen": "user_controlled",
229
142
  "windows_mode_ftp": true,
@@ -305,6 +218,9 @@
305
218
  * `login_help_text` (string): Login help text
306
219
  * `logo` (Image): Branded logo
307
220
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
221
+ * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
222
+ * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
223
+ * `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
308
224
  * `next_billing_amount` (double): Next billing amount
309
225
  * `next_billing_date` (string): Next billing date
310
226
  * `office_integration_available` (boolean): Allow users to use Office for the web?
@@ -393,14 +309,17 @@ Files::Site.update(
393
309
  subdomain: "mysite",
394
310
  domain: "my-custom-domain.com",
395
311
  domain_hsts_header: true,
396
- email: "john.doe@files.com",
397
- reply_to_email: "jane.doe@files.com",
312
+ domain_letsencrypt_chain: "example",
313
+ email: "example",
314
+ reply_to_email: "example",
398
315
  allow_bundle_names: true,
399
316
  bundle_expiration: 1,
400
317
  overage_notify: true,
401
318
  welcome_email_enabled: true,
402
319
  ask_about_overwrites: true,
403
320
  show_request_access_link: true,
321
+ welcome_email_cc: "example",
322
+ welcome_email_subject: "example",
404
323
  welcome_custom_text: "Welcome to my site!",
405
324
  language: "en",
406
325
  windows_mode_ftp: true,
@@ -415,6 +334,9 @@ Files::Site.update(
415
334
  welcome_screen: "user_controlled",
416
335
  office_integration_available: true,
417
336
  pin_all_remote_servers_to_site_region: true,
337
+ motd_text: "example",
338
+ motd_use_for_ftp: true,
339
+ motd_use_for_sftp: true,
418
340
  session_expiry: 1.0,
419
341
  ssl_required: true,
420
342
  tls_disabled: true,
@@ -426,6 +348,7 @@ Files::Site.update(
426
348
  user_lockout_lock_period: 1,
427
349
  include_password_in_welcome_email: true,
428
350
  allowed_countries: "US,DE",
351
+ allowed_ips: "example",
429
352
  disallowed_countries: "US,DE",
430
353
  days_to_retain_backups: 1,
431
354
  max_prior_passwords: 1,
@@ -454,6 +377,7 @@ Files::Site.update(
454
377
  user_requests_notify_admins: true,
455
378
  ftp_enabled: true,
456
379
  sftp_enabled: true,
380
+ bundle_watermark_value: {"key":"example value"},
457
381
  allowed_2fa_method_sms: true,
458
382
  allowed_2fa_method_u2f: true,
459
383
  allowed_2fa_method_totp: true,
@@ -467,6 +391,8 @@ Files::Site.update(
467
391
  color2_link: "#d34f5d",
468
392
  color2_text: "#0066a7",
469
393
  color2_top_text: "#ffffff",
394
+ site_header: "example",
395
+ site_footer: "example",
470
396
  login_help_text: "Login page help text.",
471
397
  smtp_address: "smtp.my-mail-server.com",
472
398
  smtp_authentication: "plain",
@@ -485,6 +411,10 @@ Files::Site.update(
485
411
  ldap_domain: "mysite.com",
486
412
  ldap_user_action: "disabled",
487
413
  ldap_group_action: "disabled",
414
+ ldap_user_include_groups: "example",
415
+ ldap_group_exclusion: "example",
416
+ ldap_group_inclusion: "example",
417
+ ldap_base_dn: "example",
488
418
  icon16_delete: true,
489
419
  icon32_delete: true,
490
420
  icon48_delete: true,
@@ -526,6 +456,9 @@ Files::Site.update(
526
456
  * `welcome_screen` (string): Does the welcome screen appear?
527
457
  * `office_integration_available` (boolean): Allow users to use Office for the web?
528
458
  * `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
459
+ * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
460
+ * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
461
+ * `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
529
462
  * `session_expiry` (double): Session expiry in hours
530
463
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
531
464
  * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
data/docs/sso_strategy.md CHANGED
@@ -9,16 +9,16 @@
9
9
  "label": "My Corporate SSO Provider",
10
10
  "logo_url": "https://mysite.files.com/.../logo.png",
11
11
  "id": 1,
12
- "saml_provider_cert_fingerprint": "",
13
- "saml_provider_issuer_url": "",
14
- "saml_provider_metadata_content": "",
15
- "saml_provider_metadata_url": "",
16
- "saml_provider_slo_target_url": "",
17
- "saml_provider_sso_target_url": "",
18
- "scim_authentication_method": "",
19
- "scim_username": "",
20
- "scim_oauth_access_token": "",
21
- "scim_oauth_access_token_expires_at": "",
12
+ "saml_provider_cert_fingerprint": "example",
13
+ "saml_provider_issuer_url": "example",
14
+ "saml_provider_metadata_content": "example",
15
+ "saml_provider_metadata_url": "example",
16
+ "saml_provider_slo_target_url": "example",
17
+ "saml_provider_sso_target_url": "example",
18
+ "scim_authentication_method": "example",
19
+ "scim_username": "example",
20
+ "scim_oauth_access_token": "example",
21
+ "scim_oauth_access_token_expires_at": "example",
22
22
  "subdomain": "my-site",
23
23
  "provision_users": true,
24
24
  "provision_groups": true,
@@ -28,7 +28,7 @@
28
28
  "provision_group_default": "Employees",
29
29
  "provision_group_exclusion": "Employees",
30
30
  "provision_group_inclusion": "Employees",
31
- "provision_group_required": "",
31
+ "provision_group_required": "example",
32
32
  "provision_email_signup_groups": "Employees",
33
33
  "provision_site_admin_groups": "Employees",
34
34
  "provision_attachments_permission": true,
@@ -37,7 +37,7 @@
37
37
  "provision_sftp_permission": true,
38
38
  "provision_time_zone": "Eastern Time (US & Canada)",
39
39
  "provision_company": "ACME Corp.",
40
- "ldap_base_dn": "",
40
+ "ldap_base_dn": "example",
41
41
  "ldap_domain": "mysite.com",
42
42
  "enabled": true,
43
43
  "ldap_host": "ldap.site.com",
data/docs/status.md CHANGED
@@ -5,21 +5,14 @@
5
5
  ```
6
6
  {
7
7
  "code": 200,
8
- "message": "",
8
+ "message": "example",
9
9
  "status": "",
10
- "data": "",
10
+ "data": "example",
11
11
  "errors": [
12
- {
13
- "fields": [
14
-
15
- ],
16
- "messages": [
17
-
18
- ]
19
- }
12
+ null
20
13
  ],
21
14
  "clickwrap_id": 1,
22
- "clickwrap_body": ""
15
+ "clickwrap_body": "example"
23
16
  }
24
17
  ```
25
18
 
data/docs/style.md CHANGED
@@ -5,9 +5,9 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "path": "",
8
+ "path": "example",
9
9
  "logo": "https://mysite.files.com/...",
10
- "thumbnail": ""
10
+ "thumbnail": "example"
11
11
  }
12
12
  ```
13
13
 
@@ -5,16 +5,18 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "date": "2020-11-21",
8
+ "date": "2000-01-01T01:00:00Z",
9
9
  "api_usage_available": true,
10
- "read_api_usage": "100",
11
- "write_api_usage": "50",
12
- "user_count": "25",
13
- "current_storage": "65536",
14
- "deleted_files_storage": "65536",
15
- "deleted_files_counted_in_minimum": "65536",
16
- "root_storage": "65536",
17
- "usage_by_top_level_dir": ""
10
+ "read_api_usage": 1,
11
+ "write_api_usage": 1,
12
+ "user_count": 1,
13
+ "current_storage": 1,
14
+ "deleted_files_storage": 1,
15
+ "deleted_files_counted_in_minimum": 1,
16
+ "root_storage": 1,
17
+ "usage_by_top_level_dir": {
18
+ "key": "example value"
19
+ }
18
20
  }
19
21
  ```
20
22
 
@@ -14,7 +14,9 @@
14
14
  "total_downloads": 1,
15
15
  "total_uploads": 1,
16
16
  "updated_at": "2000-01-01T01:00:00Z",
17
- "usage_by_top_level_dir": "",
17
+ "usage_by_top_level_dir": {
18
+ "key": "example value"
19
+ },
18
20
  "root_storage": 1.0,
19
21
  "deleted_files_counted_in_minimum": 1.0,
20
22
  "deleted_files_storage": 1.0,
data/docs/user.md CHANGED
@@ -14,21 +14,21 @@
14
14
  "api_keys_count": 1,
15
15
  "authenticate_until": "2000-01-01T01:00:00Z",
16
16
  "authentication_method": "password",
17
- "avatar_url": "",
17
+ "avatar_url": "example",
18
18
  "billing_permission": true,
19
19
  "bypass_site_allowed_ips": true,
20
20
  "bypass_inactive_disable": true,
21
21
  "created_at": "2000-01-01T01:00:00Z",
22
22
  "dav_permission": true,
23
23
  "disabled": true,
24
- "email": "john.doe@files.com",
24
+ "email": "example",
25
25
  "first_login_at": "2000-01-01T01:00:00Z",
26
26
  "ftp_permission": true,
27
- "group_ids": "",
27
+ "group_ids": "example",
28
28
  "header_text": "User-specific message.",
29
29
  "language": "en",
30
30
  "last_login_at": "2000-01-01T01:00:00Z",
31
- "last_protocol_cipher": "",
31
+ "last_protocol_cipher": "example",
32
32
  "lockout_expires": "2000-01-01T01:00:00Z",
33
33
  "name": "John Doe",
34
34
  "company": "ACME Corp.",
@@ -55,7 +55,7 @@
55
55
  "time_zone": "Pacific Time (US & Canada)",
56
56
  "type_of_2fa": "yubi",
57
57
  "updated_at": "2000-01-01T01:00:00Z",
58
- "user_root": ""
58
+ "user_root": "example"
59
59
  }
60
60
  ```
61
61
 
@@ -173,8 +173,9 @@ Files::User.find(id)
173
173
  ```
174
174
  Files::User.create(
175
175
  avatar_delete: true,
176
- email: "john.doe@files.com",
176
+ email: "example",
177
177
  group_id: 1,
178
+ group_ids: "example",
178
179
  announcements_read: true,
179
180
  allowed_ips: "127.0.0.1",
180
181
  attachments_permission: true,
@@ -206,6 +207,7 @@ Files::User.create(
206
207
  subscribe_to_newsletter: true,
207
208
  require_2fa: "always_require",
208
209
  time_zone: "Pacific Time (US & Canada)",
210
+ user_root: "example",
209
211
  username: "user"
210
212
  )
211
213
  ```
@@ -304,8 +306,9 @@ Files::User.user_2fa_reset(id)
304
306
  ```
305
307
  Files::User.update(id,
306
308
  avatar_delete: true,
307
- email: "john.doe@files.com",
309
+ email: "example",
308
310
  group_id: 1,
311
+ group_ids: "example",
309
312
  announcements_read: true,
310
313
  allowed_ips: "127.0.0.1",
311
314
  attachments_permission: true,
@@ -337,6 +340,7 @@ Files::User.update(id,
337
340
  subscribe_to_newsletter: true,
338
341
  require_2fa: "always_require",
339
342
  time_zone: "Pacific Time (US & Canada)",
343
+ user_root: "example",
340
344
  username: "user"
341
345
  )
342
346
  ```
@@ -457,8 +461,9 @@ user = Files::User.list.first
457
461
 
458
462
  user.update(
459
463
  avatar_delete: true,
460
- email: "john.doe@files.com",
464
+ email: "example",
461
465
  group_id: 1,
466
+ group_ids: "example",
462
467
  announcements_read: true,
463
468
  allowed_ips: "127.0.0.1",
464
469
  attachments_permission: true,
@@ -490,6 +495,7 @@ user.update(
490
495
  subscribe_to_newsletter: true,
491
496
  require_2fa: "always_require",
492
497
  time_zone: "Pacific Time (US & Canada)",
498
+ user_root: "example",
493
499
  username: "user"
494
500
  )
495
501
  ```
data/docs/user_request.md CHANGED
@@ -6,7 +6,7 @@
6
6
  {
7
7
  "id": 1,
8
8
  "name": "John Doe",
9
- "email": "john.doe@files.com",
9
+ "email": "example",
10
10
  "details": "Changed Departments"
11
11
  }
12
12
  ```
data/docs/webhook_test.md CHANGED
@@ -7,7 +7,7 @@
7
7
  "code": 200,
8
8
  "message": "",
9
9
  "status": "",
10
- "data": "",
10
+ "data": "example",
11
11
  "success": true
12
12
  }
13
13
  ```
@@ -37,10 +37,10 @@ Files::WebhookTest.create(
37
37
  url: "https://www.site.com/...",
38
38
  method: "GET",
39
39
  encoding: "RAW",
40
- headers: "x-test-header => testvalue",
41
- body: "test-param => testvalue",
40
+ headers: {"x-test-header":"testvalue"},
41
+ body: {"test-param":"testvalue"},
42
42
  raw_body: "test body",
43
- file_as_body: "false",
43
+ file_as_body: true,
44
44
  file_form_field: "upload_file_data",
45
45
  action: "test"
46
46
  )
@@ -379,6 +379,21 @@ module Files
379
379
  @attributes[:max_prior_passwords]
380
380
  end
381
381
 
382
+ # string - A message to show users when they connect via FTP or SFTP.
383
+ def motd_text
384
+ @attributes[:motd_text]
385
+ end
386
+
387
+ # boolean - Show message to users connecting via FTP
388
+ def motd_use_for_ftp
389
+ @attributes[:motd_use_for_ftp]
390
+ end
391
+
392
+ # boolean - Show message to users connecting via SFTP
393
+ def motd_use_for_sftp
394
+ @attributes[:motd_use_for_sftp]
395
+ end
396
+
382
397
  # double - Next billing amount
383
398
  def next_billing_amount
384
399
  @attributes[:next_billing_amount]
@@ -709,6 +724,9 @@ module Files
709
724
  # welcome_screen - string - Does the welcome screen appear?
710
725
  # office_integration_available - boolean - Allow users to use Office for the web?
711
726
  # pin_all_remote_servers_to_site_region - boolean - If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
727
+ # motd_text - string - A message to show users when they connect via FTP or SFTP.
728
+ # motd_use_for_ftp - boolean - Show message to users connecting via FTP
729
+ # motd_use_for_sftp - boolean - Show message to users connecting via SFTP
712
730
  # session_expiry - double - Session expiry in hours
713
731
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
714
732
  # tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -819,6 +837,7 @@ module Files
819
837
  raise InvalidParameterError.new("Bad parameter: desktop_app_session_lifetime must be an Integer") if params[:desktop_app_session_lifetime] and !params[:desktop_app_session_lifetime].is_a?(Integer)
820
838
  raise InvalidParameterError.new("Bad parameter: mobile_app_session_lifetime must be an Integer") if params[:mobile_app_session_lifetime] and !params[:mobile_app_session_lifetime].is_a?(Integer)
821
839
  raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params[:welcome_screen] and !params[:welcome_screen].is_a?(String)
840
+ raise InvalidParameterError.new("Bad parameter: motd_text must be an String") if params[:motd_text] and !params[:motd_text].is_a?(String)
822
841
  raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params[:session_expiry] and !params[:session_expiry].is_a?(Float)
823
842
  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)
824
843
  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)
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.295
4
+ version: 1.0.297
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-22 00:00:00.000000000 Z
11
+ date: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable