files.com 1.0.193 → 1.0.194
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/history_export.md +2 -2
- data/docs/history_export_result.md +1 -1
- data/docs/site.md +12 -0
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/history_export.rb +2 -2
- data/lib/files.com/models/history_export_result.rb +1 -1
- data/lib/files.com/models/site.rb +19 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52e8b147899182724aac0a39cce4686d5a189e792a55c54dec5a95cd91cf7f28
|
4
|
+
data.tar.gz: 14b7b48c0c9521abd46c6951a2ebd5e982efbb0f9d8ea9fa34eedb3316b3a457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb81521f063321a22a896ae4cd8d55203bb16b8f7bb53a995b53e439dc51da1e5ff6c6029011bdaddf00b8467ecf2a311abe1f1e53425d1929f6052d4234207a
|
7
|
+
data.tar.gz: '02509eb316fca99ee450a28a3862d1ec2dc1e87ddac4b376e6d027c8732f4909f716d80d10893d3a5106fb7d30322e36c467c4f975bcc61815a32c08634cf552'
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.194
|
data/docs/history_export.md
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
* `end_at` (date-time): End date/time of export range.
|
39
39
|
* `status` (string): Status of export. Will be: `building`, `ready`, or `failed`
|
40
40
|
* `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`
|
41
|
-
* `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
|
41
|
+
* `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
|
42
42
|
* `query_user_id` (string): Return results that are actions performed by the user indiciated by this User ID
|
43
43
|
* `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
|
44
44
|
* `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
|
@@ -110,7 +110,7 @@ Files::HistoryExport.create(
|
|
110
110
|
* `start_at` (string): Start date/time of export range.
|
111
111
|
* `end_at` (string): End date/time of export range.
|
112
112
|
* `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`
|
113
|
-
* `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
|
113
|
+
* `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
|
114
114
|
* `query_user_id` (string): Return results that are actions performed by the user indiciated by this User ID
|
115
115
|
* `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
|
116
116
|
* `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
|
@@ -43,7 +43,7 @@
|
|
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
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`
|
46
|
+
* `interface` (string): Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
|
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
|
data/docs/site.md
CHANGED
@@ -31,6 +31,9 @@
|
|
31
31
|
"desktop_app": true,
|
32
32
|
"desktop_app_session_ip_pinning": true,
|
33
33
|
"desktop_app_session_lifetime": 1,
|
34
|
+
"mobile_app": true,
|
35
|
+
"mobile_app_session_ip_pinning": true,
|
36
|
+
"mobile_app_session_lifetime": 1,
|
34
37
|
"disallowed_countries": "US,DE",
|
35
38
|
"disable_notifications": true,
|
36
39
|
"disable_password_reset": true,
|
@@ -234,6 +237,9 @@
|
|
234
237
|
* `desktop_app` (boolean): Is the desktop app enabled?
|
235
238
|
* `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
|
236
239
|
* `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
|
240
|
+
* `mobile_app` (boolean): Is the mobile app enabled?
|
241
|
+
* `mobile_app_session_ip_pinning` (boolean): Is mobile app session IP pinning enabled?
|
242
|
+
* `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
|
237
243
|
* `disallowed_countries` (string): Comma seperated list of disallowed Country codes
|
238
244
|
* `disable_notifications` (boolean): Are notifications disabled?
|
239
245
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
@@ -367,6 +373,9 @@ Files::Site.update(
|
|
367
373
|
desktop_app: true,
|
368
374
|
desktop_app_session_ip_pinning: true,
|
369
375
|
desktop_app_session_lifetime: 1,
|
376
|
+
mobile_app: true,
|
377
|
+
mobile_app_session_ip_pinning: true,
|
378
|
+
mobile_app_session_lifetime: 1,
|
370
379
|
folder_permissions_groups_only: true,
|
371
380
|
welcome_screen: "user_controlled",
|
372
381
|
office_integration_available: true,
|
@@ -463,6 +472,9 @@ Files::Site.update(
|
|
463
472
|
* `desktop_app` (boolean): Is the desktop app enabled?
|
464
473
|
* `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
|
465
474
|
* `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
|
475
|
+
* `mobile_app` (boolean): Is the mobile app enabled?
|
476
|
+
* `mobile_app_session_ip_pinning` (boolean): Is mobile app session IP pinning enabled?
|
477
|
+
* `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
|
466
478
|
* `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.
|
467
479
|
* `welcome_screen` (string): Does the welcome screen appear?
|
468
480
|
* `office_integration_available` (boolean): Allow users to use Office for the web?
|
data/lib/files.com/errors.rb
CHANGED
@@ -110,6 +110,7 @@ module Files
|
|
110
110
|
class ApiKeyIsDisabledError < NotAuthorizedError; end
|
111
111
|
class ApiKeyIsPathRestrictedError < NotAuthorizedError; end
|
112
112
|
class ApiKeyOnlyForDesktopAppError < NotAuthorizedError; end
|
113
|
+
class ApiKeyOnlyForMobileAppError < NotAuthorizedError; end
|
113
114
|
class ApiKeyOnlyForOfficeIntegrationError < NotAuthorizedError; end
|
114
115
|
class BillingPermissionRequiredError < NotAuthorizedError; end
|
115
116
|
class BundleMaximumUsesReachedError < NotAuthorizedError; end
|
@@ -63,7 +63,7 @@ module Files
|
|
63
63
|
@attributes[:query_action] = value
|
64
64
|
end
|
65
65
|
|
66
|
-
# string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
|
66
|
+
# string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
|
67
67
|
def query_interface
|
68
68
|
@attributes[:query_interface]
|
69
69
|
end
|
@@ -273,7 +273,7 @@ module Files
|
|
273
273
|
# start_at - string - Start date/time of export range.
|
274
274
|
# end_at - string - End date/time of export range.
|
275
275
|
# 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`
|
276
|
-
# query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`
|
276
|
+
# query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
|
277
277
|
# query_user_id - string - Return results that are actions performed by the user indiciated by this User ID
|
278
278
|
# query_file_id - string - Return results that are file actions related to the file indicated by this File ID
|
279
279
|
# query_parent_id - string - Return results that are file actions inside the parent folder specified by this folder ID
|
@@ -74,7 +74,7 @@ module Files
|
|
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`, `office`
|
77
|
+
# string - Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
|
78
78
|
def interface
|
79
79
|
@attributes[:interface]
|
80
80
|
end
|
@@ -144,6 +144,21 @@ module Files
|
|
144
144
|
@attributes[:desktop_app_session_lifetime]
|
145
145
|
end
|
146
146
|
|
147
|
+
# boolean - Is the mobile app enabled?
|
148
|
+
def mobile_app
|
149
|
+
@attributes[:mobile_app]
|
150
|
+
end
|
151
|
+
|
152
|
+
# boolean - Is mobile app session IP pinning enabled?
|
153
|
+
def mobile_app_session_ip_pinning
|
154
|
+
@attributes[:mobile_app_session_ip_pinning]
|
155
|
+
end
|
156
|
+
|
157
|
+
# int64 - Mobile app session lifetime (in hours)
|
158
|
+
def mobile_app_session_lifetime
|
159
|
+
@attributes[:mobile_app_session_lifetime]
|
160
|
+
end
|
161
|
+
|
147
162
|
# string - Comma seperated list of disallowed Country codes
|
148
163
|
def disallowed_countries
|
149
164
|
@attributes[:disallowed_countries]
|
@@ -619,6 +634,9 @@ module Files
|
|
619
634
|
# desktop_app - boolean - Is the desktop app enabled?
|
620
635
|
# desktop_app_session_ip_pinning - boolean - Is desktop app session IP pinning enabled?
|
621
636
|
# desktop_app_session_lifetime - int64 - Desktop app session lifetime (in hours)
|
637
|
+
# mobile_app - boolean - Is the mobile app enabled?
|
638
|
+
# mobile_app_session_ip_pinning - boolean - Is mobile app session IP pinning enabled?
|
639
|
+
# mobile_app_session_lifetime - int64 - Mobile app session lifetime (in hours)
|
622
640
|
# 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.
|
623
641
|
# welcome_screen - string - Does the welcome screen appear?
|
624
642
|
# office_integration_available - boolean - Allow users to use Office for the web?
|
@@ -718,6 +736,7 @@ module Files
|
|
718
736
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params.dig(:language) and !params.dig(:language).is_a?(String)
|
719
737
|
raise InvalidParameterError.new("Bad parameter: default_time_zone must be an String") if params.dig(:default_time_zone) and !params.dig(:default_time_zone).is_a?(String)
|
720
738
|
raise InvalidParameterError.new("Bad parameter: desktop_app_session_lifetime must be an Integer") if params.dig(:desktop_app_session_lifetime) and !params.dig(:desktop_app_session_lifetime).is_a?(Integer)
|
739
|
+
raise InvalidParameterError.new("Bad parameter: mobile_app_session_lifetime must be an Integer") if params.dig(:mobile_app_session_lifetime) and !params.dig(:mobile_app_session_lifetime).is_a?(Integer)
|
721
740
|
raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params.dig(:welcome_screen) and !params.dig(:welcome_screen).is_a?(String)
|
722
741
|
raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params.dig(:session_expiry) and !params.dig(:session_expiry).is_a?(Float)
|
723
742
|
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)
|
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.
|
4
|
+
version: 1.0.194
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|