files.com 1.0.114 → 1.0.119

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0140009d9239b550428a77cf0b980aafe955f6d4af1b070006b37f429862cdc2'
4
- data.tar.gz: a75744cf9cfa245c436809bcbefc6f6304f4761fb18781b42cf893558009d4ec
3
+ metadata.gz: 0b2294423fdd66aafad438d386bc6af4b46a335300a3210ef1a004c7301d957e
4
+ data.tar.gz: ee4436309d71628148785b905f57769c78adc477bca0368fc24d1a1e77ac65ce
5
5
  SHA512:
6
- metadata.gz: 1662972d5f44f7169d8a74beff8f232b686832a8e4af6f8dacbc452b294363b652ba45f2bacba8c3ef7df6856c6dda675197b21e0db908d5284b4c69a31add67
7
- data.tar.gz: a1407444578059eddc21287416770218c3420b3246bd7eb220dc4e1c487014807c47be050b54379793e13157217f1d33f4ea2e8e7e941ec1c621421818b1ce2e
6
+ metadata.gz: 58985e92223a845d9a558a35f507ef871ee70305e25b589a72ce5dcc78bce6e1c6bb81c64aaa5a6a89b21fd59ecd9eb3e80fd0fd3ebc2f83d5047013df4e4eff
7
+ data.tar.gz: 115bff67bf99614deb62886c5c7264f1cff582e0db8ec1f4909b5abc5f9fb77138e3410ba3e2b7bab766f88d60808f9468d9588f53ff3ec03f543c5223157db8
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.114
1
+ 1.0.119
@@ -156,7 +156,7 @@ Files::ApiKey.update(id,
156
156
  ## Delete current API key. (Requires current API connection to be using an API key.)
157
157
 
158
158
  ```
159
- Files::ApiKey.current(
159
+ Files::ApiKey.delete_current(
160
160
  format: "",
161
161
  api_key: ""
162
162
  )
@@ -46,7 +46,7 @@
46
46
  * `query_destination` (string): Return results that are file moves with this path as destination.
47
47
  * `query_ip` (string): Filter results by this IP address.
48
48
  * `query_username` (string): Filter results by this username.
49
- * `query_failure_type` (string): If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`
49
+ * `query_failure_type` (string): If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
50
50
  * `query_target_id` (string): If searching for Histories about specific objects (such as Users, or API Keys), this paremeter restricts results to objects that match this ID.
51
51
  * `query_target_name` (string): If searching for Histories about Users, Groups or other objects with names, this parameter restricts results to objects with this name/username.
52
52
  * `query_target_permission` (string): If searching for Histories about Permisisons, this parameter restricts results to permissions of this level.
@@ -118,7 +118,7 @@ Files::HistoryExport.create(
118
118
  * `query_destination` (string): Return results that are file moves with this path as destination.
119
119
  * `query_ip` (string): Filter results by this IP address.
120
120
  * `query_username` (string): Filter results by this username.
121
- * `query_failure_type` (string): If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`
121
+ * `query_failure_type` (string): If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
122
122
  * `query_target_id` (string): If searching for Histories about specific objects (such as Users, or API Keys), this paremeter restricts results to objects that match this ID.
123
123
  * `query_target_name` (string): If searching for Histories about Users, Groups or other objects with names, this parameter restricts results to objects with this name/username.
124
124
  * `query_target_permission` (string): If searching for Histories about Permisisons, this parameter restricts results to permissions of this level.
@@ -42,7 +42,7 @@
42
42
  * `ip` (string): Client IP that performed the action
43
43
  * `username` (string): Username of the user that performed the action
44
44
  * `action` (string): What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
45
- * `failure_type` (string): The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`
45
+ * `failure_type` (string): The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
46
46
  * `interface` (string): Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
47
47
  * `target_id` (int64): ID of the object (such as Users, or API Keys) on which the action was taken
48
48
  * `target_name` (string): Name of the User, Group or other object with a name related to this action
@@ -10,6 +10,7 @@
10
10
  "group_name": "",
11
11
  "notify_user_actions": true,
12
12
  "notify_on_copy": true,
13
+ "recursive": true,
13
14
  "send_interval": "fifteen_minutes",
14
15
  "unsubscribed": true,
15
16
  "unsubscribed_reason": "",
@@ -25,6 +26,7 @@
25
26
  * `group_name` (string): Group name if applicable
26
27
  * `notify_user_actions` (boolean): Trigger notification on notification user actions?
27
28
  * `notify_on_copy` (boolean): Triggers notification when moving or copying files to this path
29
+ * `recursive` (boolean): Enable notifications for each subfolder in this path
28
30
  * `send_interval` (string): The time interval that notifications are aggregated to
29
31
  * `unsubscribed` (boolean): Is the user unsubscribed from this notification?
30
32
  * `unsubscribed_reason` (string): The reason that the user unsubscribed
@@ -88,6 +90,7 @@ Files::Notification.create(
88
90
  user_id: 1,
89
91
  notify_on_copy: true,
90
92
  notify_user_actions: true,
93
+ recursive: true,
91
94
  send_interval: "daily",
92
95
  group_id: 1,
93
96
  username: "User"
@@ -99,6 +102,7 @@ Files::Notification.create(
99
102
  * `user_id` (int64): The id of the user to notify. Provide `user_id`, `username` or `group_id`.
100
103
  * `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
101
104
  * `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
105
+ * `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
102
106
  * `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
103
107
  * `group_id` (int64): The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
104
108
  * `path` (string): Path
@@ -113,6 +117,7 @@ Files::Notification.create(
113
117
  Files::Notification.update(id,
114
118
  notify_on_copy: true,
115
119
  notify_user_actions: true,
120
+ recursive: true,
116
121
  send_interval: "daily"
117
122
  )
118
123
  ```
@@ -122,6 +127,7 @@ Files::Notification.update(id,
122
127
  * `id` (int64): Required - Notification ID.
123
128
  * `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
124
129
  * `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
130
+ * `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
125
131
  * `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
126
132
 
127
133
 
@@ -148,6 +154,7 @@ notification = Files::Notification.list_for(path).first
148
154
  notification.update(
149
155
  notify_on_copy: true,
150
156
  notify_user_actions: true,
157
+ recursive: true,
151
158
  send_interval: "daily"
152
159
  )
153
160
  ```
@@ -157,6 +164,7 @@ notification.update(
157
164
  * `id` (int64): Required - Notification ID.
158
165
  * `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
159
166
  * `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
167
+ * `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
160
168
  * `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
161
169
 
162
170
 
@@ -11,6 +11,7 @@
11
11
  "allowed_2fa_method_yubi": true,
12
12
  "admin_user_id": 1,
13
13
  "allow_bundle_names": true,
14
+ "allowed_countries": "US,DE",
14
15
  "allowed_ips": "",
15
16
  "ask_about_overwrites": true,
16
17
  "bundle_expiration": 1,
@@ -28,6 +29,7 @@
28
29
  "desktop_app": true,
29
30
  "desktop_app_session_ip_pinning": true,
30
31
  "desktop_app_session_lifetime": 1,
32
+ "disallowed_countries": "US,DE",
31
33
  "disable_notifications": true,
32
34
  "disable_password_reset": true,
33
35
  "domain": "my-custom-domain.com",
@@ -125,6 +127,7 @@
125
127
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
126
128
  * `admin_user_id` (int64): User ID for the main site administrator
127
129
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
130
+ * `allowed_countries` (string): Comma seperated list of allowed Country codes
128
131
  * `allowed_ips` (string): List of allowed IP addresses
129
132
  * `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
130
133
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
@@ -142,6 +145,7 @@
142
145
  * `desktop_app` (boolean): Is the desktop app enabled?
143
146
  * `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
144
147
  * `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
148
+ * `disallowed_countries` (string): Comma seperated list of disallowed Country codes
145
149
  * `disable_notifications` (boolean): Are notifications disabled?
146
150
  * `disable_password_reset` (boolean): Is password reset disabled?
147
151
  * `domain` (string): Custom domain
@@ -300,6 +304,8 @@ Files::Site.update(
300
304
  user_lockout_within: 1,
301
305
  user_lockout_lock_period: 1,
302
306
  include_password_in_welcome_email: true,
307
+ allowed_countries: "US,DE",
308
+ disallowed_countries: "US,DE",
303
309
  days_to_retain_backups: 1,
304
310
  max_prior_passwords: 1,
305
311
  password_validity_days: 1,
@@ -393,7 +399,9 @@ Files::Site.update(
393
399
  * `user_lockout_within` (int64): Number of hours for user lockout window
394
400
  * `user_lockout_lock_period` (int64): How many hours to lock user out for failed password?
395
401
  * `include_password_in_welcome_email` (boolean): Include password in emails to new users?
402
+ * `allowed_countries` (string): Comma seperated list of allowed Country codes
396
403
  * `allowed_ips` (string): List of allowed IP addresses
404
+ * `disallowed_countries` (string): Comma seperated list of disallowed Country codes
397
405
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
398
406
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
399
407
  * `password_validity_days` (int64): Number of days password is valid
@@ -29,6 +29,7 @@
29
29
  "provision_group_exclusion": "Employees",
30
30
  "provision_group_inclusion": "Employees",
31
31
  "provision_group_required": "",
32
+ "provision_site_admin_groups": "Employees",
32
33
  "provision_attachments_permission": true,
33
34
  "provision_dav_permission": true,
34
35
  "provision_ftp_permission": true,
@@ -71,6 +72,7 @@
71
72
  * `provision_group_exclusion` (string): Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.
72
73
  * `provision_group_inclusion` (string): Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.
73
74
  * `provision_group_required` (string): Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.
75
+ * `provision_site_admin_groups` (string): Comma-separated list of group names whose members will be created as Site Admins.
74
76
  * `provision_attachments_permission` (boolean): Auto-provisioned users get Sharing permission?
75
77
  * `provision_dav_permission` (boolean): Auto-provisioned users get WebDAV permission?
76
78
  * `provision_ftp_permission` (boolean): Auto-provisioned users get FTP permission?
@@ -38,7 +38,7 @@
38
38
  "password_validity_days": 1,
39
39
  "public_keys_count": 1,
40
40
  "receive_admin_alerts": true,
41
- "require_2fa": true,
41
+ "require_2fa": "always_require",
42
42
  "active_2fa": true,
43
43
  "require_password_change": true,
44
44
  "restapi_permission": true,
@@ -88,8 +88,8 @@
88
88
  * `password_validity_days` (int64): Number of days to allow user to use the same password
89
89
  * `public_keys_count` (int64): Number of public keys associated with this user
90
90
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
91
- * `require_2fa` (boolean): Is 2fa required to sign in?
92
- * `active_2fa` (boolean): Is 2fa required to sign in?
91
+ * `require_2fa` (string): 2FA required setting
92
+ * `active_2fa` (boolean): Is 2fa active for the user?
93
93
  * `require_password_change` (boolean): Is a password change required upon next user login?
94
94
  * `restapi_permission` (boolean): Can this user access the REST API?
95
95
  * `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
@@ -200,6 +200,7 @@ Files::User.create(
200
200
  ssl_required: "always_require",
201
201
  sso_strategy_id: 1,
202
202
  subscribe_to_newsletter: true,
203
+ require_2fa: "always_require",
203
204
  time_zone: "Pacific Time (US & Canada)",
204
205
  username: "user"
205
206
  )
@@ -246,6 +247,7 @@ Files::User.create(
246
247
  * `ssl_required` (string): SSL required setting
247
248
  * `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
248
249
  * `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
250
+ * `require_2fa` (string): 2FA required setting
249
251
  * `time_zone` (string): User time zone
250
252
  * `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
251
253
  * `username` (string): User's username
@@ -328,6 +330,7 @@ Files::User.update(id,
328
330
  ssl_required: "always_require",
329
331
  sso_strategy_id: 1,
330
332
  subscribe_to_newsletter: true,
333
+ require_2fa: "always_require",
331
334
  time_zone: "Pacific Time (US & Canada)",
332
335
  username: "user"
333
336
  )
@@ -375,6 +378,7 @@ Files::User.update(id,
375
378
  * `ssl_required` (string): SSL required setting
376
379
  * `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
377
380
  * `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
381
+ * `require_2fa` (string): 2FA required setting
378
382
  * `time_zone` (string): User time zone
379
383
  * `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
380
384
  * `username` (string): User's username
@@ -478,6 +482,7 @@ user.update(
478
482
  ssl_required: "always_require",
479
483
  sso_strategy_id: 1,
480
484
  subscribe_to_newsletter: true,
485
+ require_2fa: "always_require",
481
486
  time_zone: "Pacific Time (US & Canada)",
482
487
  username: "user"
483
488
  )
@@ -525,6 +530,7 @@ user.update(
525
530
  * `ssl_required` (string): SSL required setting
526
531
  * `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
527
532
  * `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
533
+ * `require_2fa` (string): 2FA required setting
528
534
  * `time_zone` (string): User time zone
529
535
  * `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
530
536
  * `username` (string): User's username
@@ -257,7 +257,7 @@ module Files
257
257
  # Parameters:
258
258
  # format - string
259
259
  # api_key - object
260
- def self.current(params = {}, options = {})
260
+ def self.delete_current(params = {}, options = {})
261
261
  raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
262
262
  raise InvalidParameterError.new("Bad parameter: api_key must be an Hash") if params.dig(:api_key) and !params.dig(:api_key).is_a?(Hash)
263
263
 
@@ -144,7 +144,7 @@ module Files
144
144
  @attributes[:query_username] = value
145
145
  end
146
146
 
147
- # string - If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`
147
+ # string - If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
148
148
  def query_failure_type
149
149
  @attributes[:query_failure_type]
150
150
  end
@@ -274,7 +274,7 @@ module Files
274
274
  # query_destination - string - Return results that are file moves with this path as destination.
275
275
  # query_ip - string - Filter results by this IP address.
276
276
  # query_username - string - Filter results by this username.
277
- # query_failure_type - string - If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`
277
+ # query_failure_type - string - If searching for Histories about login failures, this parameter restricts results to failures of this specific type. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
278
278
  # query_target_id - string - If searching for Histories about specific objects (such as Users, or API Keys), this paremeter restricts results to objects that match this ID.
279
279
  # query_target_name - string - If searching for Histories about Users, Groups or other objects with names, this parameter restricts results to objects with this name/username.
280
280
  # query_target_permission - string - If searching for Histories about Permisisons, this parameter restricts results to permissions of this level.
@@ -69,7 +69,7 @@ module Files
69
69
  @attributes[:action]
70
70
  end
71
71
 
72
- # string - The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`
72
+ # string - The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
73
73
  def failure_type
74
74
  @attributes[:failure_type]
75
75
  end
@@ -63,6 +63,15 @@ module Files
63
63
  @attributes[:notify_on_copy] = value
64
64
  end
65
65
 
66
+ # boolean - Enable notifications for each subfolder in this path
67
+ def recursive
68
+ @attributes[:recursive]
69
+ end
70
+
71
+ def recursive=(value)
72
+ @attributes[:recursive] = value
73
+ end
74
+
66
75
  # string - The time interval that notifications are aggregated to
67
76
  def send_interval
68
77
  @attributes[:send_interval]
@@ -120,6 +129,7 @@ module Files
120
129
  # Parameters:
121
130
  # notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
122
131
  # notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
132
+ # recursive - boolean - If `true`, enable notifications for each subfolder in this path
123
133
  # send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
124
134
  def update(params = {})
125
135
  params ||= {}
@@ -216,6 +226,7 @@ module Files
216
226
  # user_id - int64 - The id of the user to notify. Provide `user_id`, `username` or `group_id`.
217
227
  # notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
218
228
  # notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
229
+ # recursive - boolean - If `true`, enable notifications for each subfolder in this path
219
230
  # send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
220
231
  # group_id - int64 - The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
221
232
  # path - string - Path
@@ -234,6 +245,7 @@ module Files
234
245
  # Parameters:
235
246
  # notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
236
247
  # notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
248
+ # recursive - boolean - If `true`, enable notifications for each subfolder in this path
237
249
  # send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
238
250
  def self.update(id, params = {}, options = {})
239
251
  params ||= {}
@@ -44,6 +44,11 @@ module Files
44
44
  @attributes[:allow_bundle_names]
45
45
  end
46
46
 
47
+ # string - Comma seperated list of allowed Country codes
48
+ def allowed_countries
49
+ @attributes[:allowed_countries]
50
+ end
51
+
47
52
  # string - List of allowed IP addresses
48
53
  def allowed_ips
49
54
  @attributes[:allowed_ips]
@@ -129,6 +134,11 @@ module Files
129
134
  @attributes[:desktop_app_session_lifetime]
130
135
  end
131
136
 
137
+ # string - Comma seperated list of disallowed Country codes
138
+ def disallowed_countries
139
+ @attributes[:disallowed_countries]
140
+ end
141
+
132
142
  # boolean - Are notifications disabled?
133
143
  def disable_notifications
134
144
  @attributes[:disable_notifications]
@@ -617,7 +627,9 @@ module Files
617
627
  # user_lockout_within - int64 - Number of hours for user lockout window
618
628
  # user_lockout_lock_period - int64 - How many hours to lock user out for failed password?
619
629
  # include_password_in_welcome_email - boolean - Include password in emails to new users?
630
+ # allowed_countries - string - Comma seperated list of allowed Country codes
620
631
  # allowed_ips - string - List of allowed IP addresses
632
+ # disallowed_countries - string - Comma seperated list of disallowed Country codes
621
633
  # days_to_retain_backups - int64 - Number of days to keep deleted files
622
634
  # max_prior_passwords - int64 - Number of prior passwords to disallow
623
635
  # password_validity_days - int64 - Number of days password is valid
@@ -707,7 +719,9 @@ module Files
707
719
  raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params.dig(:user_lockout_tries) and !params.dig(:user_lockout_tries).is_a?(Integer)
708
720
  raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params.dig(:user_lockout_within) and !params.dig(:user_lockout_within).is_a?(Integer)
709
721
  raise InvalidParameterError.new("Bad parameter: user_lockout_lock_period must be an Integer") if params.dig(:user_lockout_lock_period) and !params.dig(:user_lockout_lock_period).is_a?(Integer)
722
+ raise InvalidParameterError.new("Bad parameter: allowed_countries must be an String") if params.dig(:allowed_countries) and !params.dig(:allowed_countries).is_a?(String)
710
723
  raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
724
+ raise InvalidParameterError.new("Bad parameter: disallowed_countries must be an String") if params.dig(:disallowed_countries) and !params.dig(:disallowed_countries).is_a?(String)
711
725
  raise InvalidParameterError.new("Bad parameter: days_to_retain_backups must be an Integer") if params.dig(:days_to_retain_backups) and !params.dig(:days_to_retain_backups).is_a?(Integer)
712
726
  raise InvalidParameterError.new("Bad parameter: max_prior_passwords must be an Integer") if params.dig(:max_prior_passwords) and !params.dig(:max_prior_passwords).is_a?(Integer)
713
727
  raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
@@ -124,6 +124,11 @@ module Files
124
124
  @attributes[:provision_group_required]
125
125
  end
126
126
 
127
+ # string - Comma-separated list of group names whose members will be created as Site Admins.
128
+ def provision_site_admin_groups
129
+ @attributes[:provision_site_admin_groups]
130
+ end
131
+
127
132
  # boolean - Auto-provisioned users get Sharing permission?
128
133
  def provision_attachments_permission
129
134
  @attributes[:provision_attachments_permission]
@@ -293,7 +293,7 @@ module Files
293
293
  @attributes[:receive_admin_alerts] = value
294
294
  end
295
295
 
296
- # boolean - Is 2fa required to sign in?
296
+ # string - 2FA required setting
297
297
  def require_2fa
298
298
  @attributes[:require_2fa]
299
299
  end
@@ -302,7 +302,7 @@ module Files
302
302
  @attributes[:require_2fa] = value
303
303
  end
304
304
 
305
- # boolean - Is 2fa required to sign in?
305
+ # boolean - Is 2fa active for the user?
306
306
  def active_2fa
307
307
  @attributes[:active_2fa]
308
308
  end
@@ -582,6 +582,7 @@ module Files
582
582
  # ssl_required - string - SSL required setting
583
583
  # sso_strategy_id - int64 - SSO (Single Sign On) strategy ID for the user, if applicable.
584
584
  # subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
585
+ # require_2fa - string - 2FA required setting
585
586
  # time_zone - string - User time zone
586
587
  # user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
587
588
  # username - string - User's username
@@ -610,6 +611,7 @@ module Files
610
611
  raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
611
612
  raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params.dig(:ssl_required) and !params.dig(:ssl_required).is_a?(String)
612
613
  raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params.dig(:sso_strategy_id) and !params.dig(:sso_strategy_id).is_a?(Integer)
614
+ raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params.dig(:require_2fa) and !params.dig(:require_2fa).is_a?(String)
613
615
  raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params.dig(:time_zone) and !params.dig(:time_zone).is_a?(String)
614
616
  raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params.dig(:user_root) and !params.dig(:user_root).is_a?(String)
615
617
  raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
@@ -742,6 +744,7 @@ module Files
742
744
  # ssl_required - string - SSL required setting
743
745
  # sso_strategy_id - int64 - SSO (Single Sign On) strategy ID for the user, if applicable.
744
746
  # subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
747
+ # require_2fa - string - 2FA required setting
745
748
  # time_zone - string - User time zone
746
749
  # user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
747
750
  # username - string - User's username
@@ -766,6 +769,7 @@ module Files
766
769
  raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
767
770
  raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params.dig(:ssl_required) and !params.dig(:ssl_required).is_a?(String)
768
771
  raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params.dig(:sso_strategy_id) and !params.dig(:sso_strategy_id).is_a?(Integer)
772
+ raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params.dig(:require_2fa) and !params.dig(:require_2fa).is_a?(String)
769
773
  raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params.dig(:time_zone) and !params.dig(:time_zone).is_a?(String)
770
774
  raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params.dig(:user_root) and !params.dig(:user_root).is_a?(String)
771
775
  raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
@@ -847,6 +851,7 @@ module Files
847
851
  # ssl_required - string - SSL required setting
848
852
  # sso_strategy_id - int64 - SSO (Single Sign On) strategy ID for the user, if applicable.
849
853
  # subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
854
+ # require_2fa - string - 2FA required setting
850
855
  # time_zone - string - User time zone
851
856
  # user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
852
857
  # username - string - User's username
@@ -874,6 +879,7 @@ module Files
874
879
  raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
875
880
  raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params.dig(:ssl_required) and !params.dig(:ssl_required).is_a?(String)
876
881
  raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params.dig(:sso_strategy_id) and !params.dig(:sso_strategy_id).is_a?(Integer)
882
+ raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params.dig(:require_2fa) and !params.dig(:require_2fa).is_a?(String)
877
883
  raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params.dig(:time_zone) and !params.dig(:time_zone).is_a?(String)
878
884
  raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params.dig(:user_root) and !params.dig(:user_root).is_a?(String)
879
885
  raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
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.114
4
+ version: 1.0.119
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-17 00:00:00.000000000 Z
11
+ date: 2020-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable