files.com 1.0.115 → 1.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7031791026b107602d6b1c2f566d26e7281f8e718324a71be205246fe3f75de
4
- data.tar.gz: 23a0c7636128c641964a9675f00d5e0dd1fda6026a5aa7e6d384b96356fc606c
3
+ metadata.gz: fe8d365e0a6dd51ed1084b46bf345a2ea01ae8e43de58b8801f02ed029741c63
4
+ data.tar.gz: 7c6b295051e88cf4b34099548c6a4993dd35a09e47cfe1a41eb622fd0e37b451
5
5
  SHA512:
6
- metadata.gz: 96d1740aff82c409cf6b08c7f5fece8c23895b4a46778fb9270988fe440d1b9b7fa390b9b6e00c84baf9579afa3d8e3092846675a7d2e4c30bf89d334fe6b507
7
- data.tar.gz: 4f5b9a1453b3e71eb4a8756fab2e4d990bd4aaaa92d462951441bada85935ba0d644a4c363ce18b2fc90d151000b45e71d83ead4aa84fc8a3f89039dad90f7d8
6
+ metadata.gz: 5c9c94be4423c4ff4795a78bd08eadede1f94071eb86a556950086350bc187ab8ed8099daf5ef2b21ee327faa2bc3685dbeab9ffd8f1e24d1dd238481cfbd13d
7
+ data.tar.gz: 90a29beb3d00210c2d3a88b26eaa4e28a40962aadeb7bbeab37a40e8b7673cd0242fb8b0df9d5c5b444b24298d622dd56138eec7ff84523427fc2817389c889c
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.115
1
+ 1.0.116
@@ -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
@@ -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
@@ -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
@@ -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)
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.115
4
+ version: 1.0.116
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-23 00:00:00.000000000 Z
11
+ date: 2020-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable