files.com 1.0.112 → 1.0.117

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: dd4923d22b6374dc1cc8a95e73996ea20b73b757a4dea9e082862ee131fe6913
4
- data.tar.gz: eba5623bcb8dd00d3dbb3db800a6b6b28ef4ddff5301a69e8083bbc004ae2d80
3
+ metadata.gz: 4dfd01f698ed7afe6f7b79688849ad1bbef1b09e90f79958a7155a1cf7ba9886
4
+ data.tar.gz: 83b97f80fee76337c975ff30b8ae1a924b8ff05ad154dd6c6c1370c1bdc6ff3a
5
5
  SHA512:
6
- metadata.gz: 1e324b0b73af796761e30838b8866f30fc08f0461c250b7e6ab4523e82c041e88643c467ab22349d4bd986797198b6e47b4298f979c8270f209f4645f3cb762d
7
- data.tar.gz: af7687afbb21b1aa8bf27dc6f45f9455a2717d22dec11412d065068c65e652dc7a91c1478fc42a3c30019af7aedf52a2bead169e1c59704c864bf1b23b894a52
6
+ metadata.gz: 53fac01474e35cb09b3b78f15c431df3ad12ef383c5239a98086047e2846f43753dbd78bf14a207237ddf4478868ab64995b18c73d073ca071b091d5baa8f08e
7
+ data.tar.gz: 80b77b5db4884725bae52210a3bc233dad7a010484770c23fcdbc188aefb74a93cbca959b3765bfe5bc32297456ef97bdad33f2f3eca1fa39e0584d59967ca01
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.112
1
+ 1.0.117
@@ -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.delete_current(
159
+ Files::ApiKey.current(
160
160
  format: "",
161
161
  api_key: ""
162
162
  )
@@ -36,7 +36,7 @@
36
36
  * `end_at` (date-time): End date/time of export range.
37
37
  * `status` (string): Status of export. Will be: `building`, `ready`, or `failed`
38
38
  * `query_action` (string): Filter results by this this action type. 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`
39
- * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`
39
+ * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
40
40
  * `query_user_id` (string): Return results that are actions performed by the user indiciated by this User ID
41
41
  * `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
42
42
  * `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
@@ -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.
@@ -108,7 +108,7 @@ Files::HistoryExport.create(
108
108
  * `start_at` (string): Start date/time of export range.
109
109
  * `end_at` (string): End date/time of export range.
110
110
  * `query_action` (string): Filter results by this this action type. 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`
111
- * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`
111
+ * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
112
112
  * `query_user_id` (string): Return results that are actions performed by the user indiciated by this User ID
113
113
  * `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
114
114
  * `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
@@ -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,8 +42,8 @@
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`
46
- * `interface` (string): Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`
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
+ * `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
49
49
  * `target_permission` (string): Permission level of the 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,10 +29,12 @@
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",
34
36
  "email": "john.doe@files.com",
37
+ "reply_to_email": "jane.doe@files.com",
35
38
  "non_sso_groups_allowed": true,
36
39
  "non_sso_users_allowed": true,
37
40
  "folder_permissions_groups_only": true,
@@ -124,6 +127,7 @@
124
127
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
125
128
  * `admin_user_id` (int64): User ID for the main site administrator
126
129
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
130
+ * `allowed_countries` (string): Comma seperated list of allowed Country codes
127
131
  * `allowed_ips` (string): List of allowed IP addresses
128
132
  * `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
129
133
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
@@ -141,10 +145,12 @@
141
145
  * `desktop_app` (boolean): Is the desktop app enabled?
142
146
  * `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
143
147
  * `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
148
+ * `disallowed_countries` (string): Comma seperated list of disallowed Country codes
144
149
  * `disable_notifications` (boolean): Are notifications disabled?
145
150
  * `disable_password_reset` (boolean): Is password reset disabled?
146
151
  * `domain` (string): Custom domain
147
152
  * `email` (email): Main email for this site
153
+ * `reply_to_email` (email): Reply-to email for this site
148
154
  * `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
149
155
  * `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
150
156
  * `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
@@ -273,6 +279,7 @@ Files::Site.update(
273
279
  subdomain: "mysite",
274
280
  domain: "my-custom-domain.com",
275
281
  email: "john.doe@files.com",
282
+ reply_to_email: "jane.doe@files.com",
276
283
  allow_bundle_names: true,
277
284
  bundle_expiration: 1,
278
285
  overage_notify: true,
@@ -297,6 +304,8 @@ Files::Site.update(
297
304
  user_lockout_within: 1,
298
305
  user_lockout_lock_period: 1,
299
306
  include_password_in_welcome_email: true,
307
+ allowed_countries: "US,DE",
308
+ disallowed_countries: "US,DE",
300
309
  days_to_retain_backups: 1,
301
310
  max_prior_passwords: 1,
302
311
  password_validity_days: 1,
@@ -364,6 +373,7 @@ Files::Site.update(
364
373
  * `subdomain` (string): Site subdomain
365
374
  * `domain` (string): Custom domain
366
375
  * `email` (string): Main email for this site
376
+ * `reply_to_email` (string): Reply-to email for this site
367
377
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
368
378
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
369
379
  * `overage_notify` (boolean): Notify site email of overages?
@@ -389,7 +399,9 @@ Files::Site.update(
389
399
  * `user_lockout_within` (int64): Number of hours for user lockout window
390
400
  * `user_lockout_lock_period` (int64): How many hours to lock user out for failed password?
391
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
392
403
  * `allowed_ips` (string): List of allowed IP addresses
404
+ * `disallowed_countries` (string): Comma seperated list of disallowed Country codes
393
405
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
394
406
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
395
407
  * `password_validity_days` (int64): Number of days password is valid
@@ -29,11 +29,13 @@
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,
35
36
  "provision_sftp_permission": true,
36
37
  "provision_time_zone": "Eastern Time (US & Canada)",
38
+ "provision_company": "ACME Corp.",
37
39
  "ldap_base_dn": "",
38
40
  "ldap_domain": "mysite.com",
39
41
  "enabled": true,
@@ -70,11 +72,13 @@
70
72
  * `provision_group_exclusion` (string): Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.
71
73
  * `provision_group_inclusion` (string): Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.
72
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.
73
76
  * `provision_attachments_permission` (boolean): Auto-provisioned users get Sharing permission?
74
77
  * `provision_dav_permission` (boolean): Auto-provisioned users get WebDAV permission?
75
78
  * `provision_ftp_permission` (boolean): Auto-provisioned users get FTP permission?
76
79
  * `provision_sftp_permission` (boolean): Auto-provisioned users get SFTP permission?
77
80
  * `provision_time_zone` (string): Default time zone for auto provisioned users.
81
+ * `provision_company` (string): Default company for auto provisioned users.
78
82
  * `ldap_base_dn` (string): Base DN for looking up users in LDAP server
79
83
  * `ldap_domain` (string): Domain name that will be appended to LDAP usernames
80
84
  * `enabled` (boolean): Is strategy enabled?
@@ -39,6 +39,7 @@
39
39
  "public_keys_count": 1,
40
40
  "receive_admin_alerts": true,
41
41
  "require_2fa": true,
42
+ "active_2fa": true,
42
43
  "require_password_change": true,
43
44
  "restapi_permission": true,
44
45
  "self_managed": true,
@@ -88,6 +89,7 @@
88
89
  * `public_keys_count` (int64): Number of public keys associated with this user
89
90
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
90
91
  * `require_2fa` (boolean): Is 2fa required to sign in?
92
+ * `active_2fa` (boolean): Is 2fa active for the user?
91
93
  * `require_password_change` (boolean): Is a password change required upon next user login?
92
94
  * `restapi_permission` (boolean): Can this user access the REST API?
93
95
  * `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
@@ -257,7 +257,7 @@ module Files
257
257
  # Parameters:
258
258
  # format - string
259
259
  # api_key - object
260
- def self.delete_current(params = {}, options = {})
260
+ def self.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
 
@@ -54,7 +54,7 @@ module Files
54
54
  @attributes[:query_action] = value
55
55
  end
56
56
 
57
- # string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`
57
+ # string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
58
58
  def query_interface
59
59
  @attributes[:query_interface]
60
60
  end
@@ -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
@@ -264,7 +264,7 @@ module Files
264
264
  # start_at - string - Start date/time of export range.
265
265
  # end_at - string - End date/time of export range.
266
266
  # query_action - string - Filter results by this this action type. 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`
267
- # query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`
267
+ # query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
268
268
  # query_user_id - string - Return results that are actions performed by the user indiciated by this User ID
269
269
  # query_file_id - string - Return results that are file actions related to the file indicated by this File ID
270
270
  # query_parent_id - string - Return results that are file actions inside the parent folder specified by this folder ID
@@ -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,12 +69,12 @@ 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
76
76
 
77
- # string - Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`
77
+ # string - Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
78
78
  def interface
79
79
  @attributes[:interface]
80
80
  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]
@@ -149,6 +159,11 @@ module Files
149
159
  @attributes[:email]
150
160
  end
151
161
 
162
+ # email - Reply-to email for this site
163
+ def reply_to_email
164
+ @attributes[:reply_to_email]
165
+ end
166
+
152
167
  # boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
153
168
  def non_sso_groups_allowed
154
169
  @attributes[:non_sso_groups_allowed]
@@ -586,6 +601,7 @@ module Files
586
601
  # subdomain - string - Site subdomain
587
602
  # domain - string - Custom domain
588
603
  # email - string - Main email for this site
604
+ # reply_to_email - string - Reply-to email for this site
589
605
  # allow_bundle_names - boolean - Are manual Bundle names allowed?
590
606
  # bundle_expiration - int64 - Site-wide Bundle expiration in days
591
607
  # overage_notify - boolean - Notify site email of overages?
@@ -611,7 +627,9 @@ module Files
611
627
  # user_lockout_within - int64 - Number of hours for user lockout window
612
628
  # user_lockout_lock_period - int64 - How many hours to lock user out for failed password?
613
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
614
631
  # allowed_ips - string - List of allowed IP addresses
632
+ # disallowed_countries - string - Comma seperated list of disallowed Country codes
615
633
  # days_to_retain_backups - int64 - Number of days to keep deleted files
616
634
  # max_prior_passwords - int64 - Number of prior passwords to disallow
617
635
  # password_validity_days - int64 - Number of days password is valid
@@ -689,6 +707,7 @@ module Files
689
707
  raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params.dig(:subdomain) and !params.dig(:subdomain).is_a?(String)
690
708
  raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
691
709
  raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
710
+ raise InvalidParameterError.new("Bad parameter: reply_to_email must be an String") if params.dig(:reply_to_email) and !params.dig(:reply_to_email).is_a?(String)
692
711
  raise InvalidParameterError.new("Bad parameter: bundle_expiration must be an Integer") if params.dig(:bundle_expiration) and !params.dig(:bundle_expiration).is_a?(Integer)
693
712
  raise InvalidParameterError.new("Bad parameter: welcome_email_cc must be an String") if params.dig(:welcome_email_cc) and !params.dig(:welcome_email_cc).is_a?(String)
694
713
  raise InvalidParameterError.new("Bad parameter: welcome_custom_text must be an String") if params.dig(:welcome_custom_text) and !params.dig(:welcome_custom_text).is_a?(String)
@@ -700,7 +719,9 @@ module Files
700
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)
701
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)
702
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)
703
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)
704
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)
705
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)
706
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]
@@ -149,6 +154,11 @@ module Files
149
154
  @attributes[:provision_time_zone]
150
155
  end
151
156
 
157
+ # string - Default company for auto provisioned users.
158
+ def provision_company
159
+ @attributes[:provision_company]
160
+ end
161
+
152
162
  # string - Base DN for looking up users in LDAP server
153
163
  def ldap_base_dn
154
164
  @attributes[:ldap_base_dn]
@@ -302,6 +302,15 @@ module Files
302
302
  @attributes[:require_2fa] = value
303
303
  end
304
304
 
305
+ # boolean - Is 2fa active for the user?
306
+ def active_2fa
307
+ @attributes[:active_2fa]
308
+ end
309
+
310
+ def active_2fa=(value)
311
+ @attributes[:active_2fa] = value
312
+ end
313
+
305
314
  # boolean - Is a password change required upon next user login?
306
315
  def require_password_change
307
316
  @attributes[:require_password_change]
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.112
4
+ version: 1.0.117
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-12 00:00:00.000000000 Z
11
+ date: 2020-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable