files.com 1.1.599 → 1.1.600
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 +4 -4
- data/README.md +5 -1
- data/_VERSION +1 -1
- data/docs/partner.md +8 -0
- data/docs/site.md +25 -4
- data/docs/user.md +8 -0
- data/lib/files.com/errors.rb +5 -1
- data/lib/files.com/models/partner.rb +15 -0
- data/lib/files.com/models/site.rb +36 -6
- data/lib/files.com/models/user.rb +15 -0
- data/lib/files.com/version.rb +1 -1
- 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: 695b45d03008dd9fdf1364f871877d4483972b5f8f555d4e06019217dc5ac83c
|
|
4
|
+
data.tar.gz: 115759fc1bc6aa1e42652d5deb473f7e04000af6b4e99da3c712ff4a10793eef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6356dde06282847b27917bb2a185423038ed1522d69553eba397c2ec4e970b8aeb7918752718a690dfca498de623fb0519e32a1127d8fa3bac8520a26669fddd
|
|
7
|
+
data.tar.gz: 81ef8290e71b03448bd7d13055bae8b0ef8ff2d0618efaed687b0aa63727fd51edc86ab59149a12f1b51554e59b68afed807173670c38f0a4c5c1105094690d7
|
data/README.md
CHANGED
|
@@ -541,7 +541,6 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
|
|
|
541
541
|
|`ApiKeyOnlyForDesktopAppError`| `NotAuthorizedError` |
|
|
542
542
|
|`ApiKeyOnlyForMobileAppError`| `NotAuthorizedError` |
|
|
543
543
|
|`ApiKeyOnlyForOfficeIntegrationError`| `NotAuthorizedError` |
|
|
544
|
-
|`BillingOrSiteAdminPermissionRequiredError`| `NotAuthorizedError` |
|
|
545
544
|
|`BillingPermissionRequiredError`| `NotAuthorizedError` |
|
|
546
545
|
|`BundleMaximumUsesReachedError`| `NotAuthorizedError` |
|
|
547
546
|
|`BundlePermissionRequiredError`| `NotAuthorizedError` |
|
|
@@ -573,6 +572,11 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
|
|
|
573
572
|
|`ReauthenticationNeededActionError`| `NotAuthorizedError` |
|
|
574
573
|
|`RecaptchaFailedError`| `NotAuthorizedError` |
|
|
575
574
|
|`SelfManagedRequiredError`| `NotAuthorizedError` |
|
|
575
|
+
|`SiteAdminOrPartnerAdminPermissionRequiredError`| `NotAuthorizedError` |
|
|
576
|
+
|`SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredError`| `NotAuthorizedError` |
|
|
577
|
+
|`SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredError`| `NotAuthorizedError` |
|
|
578
|
+
|`SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredError`| `NotAuthorizedError` |
|
|
579
|
+
|`SiteAdminOrWorkspaceAdminPermissionRequiredError`| `NotAuthorizedError` |
|
|
576
580
|
|`SiteAdminRequiredError`| `NotAuthorizedError` |
|
|
577
581
|
|`SiteFilesAreImmutableError`| `NotAuthorizedError` |
|
|
578
582
|
|`TwoFactorAuthenticationRequiredError`| `NotAuthorizedError` |
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.600
|
data/docs/partner.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
```
|
|
6
6
|
{
|
|
7
7
|
"allow_bypassing_2fa_policies": true,
|
|
8
|
+
"allowed_ips": "10.0.0.0/8\n127.0.0.1",
|
|
8
9
|
"allow_credential_changes": true,
|
|
9
10
|
"allow_providing_gpg_keys": true,
|
|
10
11
|
"allow_user_creation": true,
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
```
|
|
29
30
|
|
|
30
31
|
* `allow_bypassing_2fa_policies` (boolean): Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
|
|
32
|
+
* `allowed_ips` (string): A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
31
33
|
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
32
34
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
|
33
35
|
* `allow_user_creation` (boolean): Allow Partner Admins to create users.
|
|
@@ -76,6 +78,7 @@ Files::Partner.find(id)
|
|
|
76
78
|
|
|
77
79
|
```
|
|
78
80
|
Files::Partner.create(
|
|
81
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
79
82
|
allow_bypassing_2fa_policies: false,
|
|
80
83
|
allow_credential_changes: false,
|
|
81
84
|
allow_providing_gpg_keys: false,
|
|
@@ -90,6 +93,7 @@ Files::Partner.create(
|
|
|
90
93
|
|
|
91
94
|
### Parameters
|
|
92
95
|
|
|
96
|
+
* `allowed_ips` (string): A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
93
97
|
* `allow_bypassing_2fa_policies` (boolean): Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
|
|
94
98
|
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
95
99
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
|
@@ -107,6 +111,7 @@ Files::Partner.create(
|
|
|
107
111
|
|
|
108
112
|
```
|
|
109
113
|
Files::Partner.update(id,
|
|
114
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
110
115
|
allow_bypassing_2fa_policies: false,
|
|
111
116
|
allow_credential_changes: false,
|
|
112
117
|
allow_providing_gpg_keys: false,
|
|
@@ -121,6 +126,7 @@ Files::Partner.update(id,
|
|
|
121
126
|
### Parameters
|
|
122
127
|
|
|
123
128
|
* `id` (int64): Required - Partner ID.
|
|
129
|
+
* `allowed_ips` (string): A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
124
130
|
* `allow_bypassing_2fa_policies` (boolean): Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
|
|
125
131
|
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
126
132
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
|
@@ -152,6 +158,7 @@ Files::Partner.delete(id)
|
|
|
152
158
|
partner = Files::Partner.find(id)
|
|
153
159
|
|
|
154
160
|
partner.update(
|
|
161
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
155
162
|
allow_bypassing_2fa_policies: false,
|
|
156
163
|
allow_credential_changes: false,
|
|
157
164
|
allow_providing_gpg_keys: false,
|
|
@@ -166,6 +173,7 @@ partner.update(
|
|
|
166
173
|
### Parameters
|
|
167
174
|
|
|
168
175
|
* `id` (int64): Required - Partner ID.
|
|
176
|
+
* `allowed_ips` (string): A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
169
177
|
* `allow_bypassing_2fa_policies` (boolean): Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
|
|
170
178
|
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
171
179
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
data/docs/site.md
CHANGED
|
@@ -88,6 +88,12 @@
|
|
|
88
88
|
"non_sso_groups_allowed": true,
|
|
89
89
|
"non_sso_users_allowed": true,
|
|
90
90
|
"folder_permissions_groups_only": true,
|
|
91
|
+
"group_admins_can_add_users": true,
|
|
92
|
+
"group_admins_can_delete_users": true,
|
|
93
|
+
"group_admins_can_enable_disable_users": true,
|
|
94
|
+
"group_admins_can_modify_users": true,
|
|
95
|
+
"group_admins_can_reset_passwords": true,
|
|
96
|
+
"group_admins_can_set_user_password": true,
|
|
91
97
|
"hipaa": true,
|
|
92
98
|
"icon128": {
|
|
93
99
|
"name": "My logo",
|
|
@@ -270,6 +276,7 @@
|
|
|
270
276
|
"partner_name": "example",
|
|
271
277
|
"password_set_at": "2000-01-01T01:00:00Z",
|
|
272
278
|
"password_validity_days": 1,
|
|
279
|
+
"primary_group_id": 1,
|
|
273
280
|
"public_keys_count": 1,
|
|
274
281
|
"receive_admin_alerts": true,
|
|
275
282
|
"require_2fa": "always_require",
|
|
@@ -315,8 +322,7 @@
|
|
|
315
322
|
"welcome_email_subject": "example",
|
|
316
323
|
"welcome_email_enabled": true,
|
|
317
324
|
"welcome_screen": "user_controlled",
|
|
318
|
-
"windows_mode_ftp": true
|
|
319
|
-
"group_admins_can_set_user_password": true
|
|
325
|
+
"windows_mode_ftp": true
|
|
320
326
|
}
|
|
321
327
|
```
|
|
322
328
|
|
|
@@ -395,6 +401,12 @@
|
|
|
395
401
|
* `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.
|
|
396
402
|
* `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.
|
|
397
403
|
* `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user).
|
|
404
|
+
* `group_admins_can_add_users` (boolean): Allow group admins to create users in their groups
|
|
405
|
+
* `group_admins_can_delete_users` (boolean): Allow group admins to delete users in their groups
|
|
406
|
+
* `group_admins_can_enable_disable_users` (boolean): Allow group admins to enable or disable users in their groups
|
|
407
|
+
* `group_admins_can_modify_users` (boolean): Allow group admins to modify users in their groups
|
|
408
|
+
* `group_admins_can_reset_passwords` (boolean): Allow group admins to reset passwords for users in their groups
|
|
409
|
+
* `group_admins_can_set_user_password` (boolean): Allow group admins to set password authentication method
|
|
398
410
|
* `hipaa` (boolean): Is there a signed HIPAA BAA between Files.com and this site?
|
|
399
411
|
* `icon128` (Image): Branded icon 128x128
|
|
400
412
|
* `icon16` (Image): Branded icon 16x16
|
|
@@ -496,7 +508,6 @@
|
|
|
496
508
|
* `welcome_email_enabled` (boolean): Will the welcome email be sent to new users?
|
|
497
509
|
* `welcome_screen` (string): Does the welcome screen appear?
|
|
498
510
|
* `windows_mode_ftp` (boolean): Does FTP user Windows emulation mode?
|
|
499
|
-
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
|
500
511
|
|
|
501
512
|
|
|
502
513
|
---
|
|
@@ -627,6 +638,11 @@ Files::Site.update(
|
|
|
627
638
|
protocol_access_groups_only: false,
|
|
628
639
|
revoke_bundle_access_on_disable_or_delete: false,
|
|
629
640
|
bundle_watermark_value: {"key":"example value"},
|
|
641
|
+
group_admins_can_add_users: false,
|
|
642
|
+
group_admins_can_delete_users: false,
|
|
643
|
+
group_admins_can_enable_disable_users: false,
|
|
644
|
+
group_admins_can_modify_users: false,
|
|
645
|
+
group_admins_can_reset_passwords: false,
|
|
630
646
|
group_admins_can_set_user_password: false,
|
|
631
647
|
bundle_recipient_blacklist_free_email_domains: false,
|
|
632
648
|
bundle_recipient_blacklist_domains: ["example"],
|
|
@@ -792,7 +808,12 @@ Files::Site.update(
|
|
|
792
808
|
* `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
793
809
|
* `revoke_bundle_access_on_disable_or_delete` (boolean): Auto-removes bundles for disabled/deleted users and enforces bundle expiry within user access period.
|
|
794
810
|
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
795
|
-
* `
|
|
811
|
+
* `group_admins_can_add_users` (boolean): Allow group admins to create users in their groups
|
|
812
|
+
* `group_admins_can_delete_users` (boolean): Allow group admins to delete users in their groups
|
|
813
|
+
* `group_admins_can_enable_disable_users` (boolean): Allow group admins to enable or disable users in their groups
|
|
814
|
+
* `group_admins_can_modify_users` (boolean): Allow group admins to modify users in their groups
|
|
815
|
+
* `group_admins_can_reset_passwords` (boolean): Allow group admins to reset passwords for users in their groups
|
|
816
|
+
* `group_admins_can_set_user_password` (boolean): Allow group admins to set password authentication method
|
|
796
817
|
* `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
|
|
797
818
|
* `bundle_recipient_blacklist_domains` (array(string)): List of email domains to disallow when entering a Bundle/Inbox recipients
|
|
798
819
|
* `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
|
data/docs/user.md
CHANGED
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"partner_name": "example",
|
|
53
53
|
"password_set_at": "2000-01-01T01:00:00Z",
|
|
54
54
|
"password_validity_days": 1,
|
|
55
|
+
"primary_group_id": 1,
|
|
55
56
|
"public_keys_count": 1,
|
|
56
57
|
"receive_admin_alerts": true,
|
|
57
58
|
"require_2fa": "always_require",
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
* `partner_name` (string): Name of the Partner if this user belongs to a Partner
|
|
130
131
|
* `password_set_at` (date-time): Last time the user's password was set
|
|
131
132
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
|
133
|
+
* `primary_group_id` (int64): Primary group ID for Group Admin scoping
|
|
132
134
|
* `public_keys_count` (int64): Number of public keys associated with this user
|
|
133
135
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
134
136
|
* `require_2fa` (string): 2FA required setting
|
|
@@ -243,6 +245,7 @@ Files::User.create(
|
|
|
243
245
|
partner_admin: true,
|
|
244
246
|
partner_id: 1,
|
|
245
247
|
password_validity_days: 1,
|
|
248
|
+
primary_group_id: 1,
|
|
246
249
|
readonly_site_admin: true,
|
|
247
250
|
receive_admin_alerts: true,
|
|
248
251
|
require_login_by: "2000-01-01T01:00:00Z",
|
|
@@ -302,6 +305,7 @@ Files::User.create(
|
|
|
302
305
|
* `partner_admin` (boolean): Is this user a Partner administrator?
|
|
303
306
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
|
304
307
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
|
308
|
+
* `primary_group_id` (int64): Primary group ID for Group Admin scoping
|
|
305
309
|
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
|
|
306
310
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
307
311
|
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
|
|
@@ -396,6 +400,7 @@ Files::User.update(id,
|
|
|
396
400
|
partner_admin: true,
|
|
397
401
|
partner_id: 1,
|
|
398
402
|
password_validity_days: 1,
|
|
403
|
+
primary_group_id: 1,
|
|
399
404
|
readonly_site_admin: true,
|
|
400
405
|
receive_admin_alerts: true,
|
|
401
406
|
require_login_by: "2000-01-01T01:00:00Z",
|
|
@@ -457,6 +462,7 @@ Files::User.update(id,
|
|
|
457
462
|
* `partner_admin` (boolean): Is this user a Partner administrator?
|
|
458
463
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
|
459
464
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
|
465
|
+
* `primary_group_id` (int64): Primary group ID for Group Admin scoping
|
|
460
466
|
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
|
|
461
467
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
462
468
|
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
|
|
@@ -576,6 +582,7 @@ user.update(
|
|
|
576
582
|
partner_admin: true,
|
|
577
583
|
partner_id: 1,
|
|
578
584
|
password_validity_days: 1,
|
|
585
|
+
primary_group_id: 1,
|
|
579
586
|
readonly_site_admin: true,
|
|
580
587
|
receive_admin_alerts: true,
|
|
581
588
|
require_login_by: "2000-01-01T01:00:00Z",
|
|
@@ -637,6 +644,7 @@ user.update(
|
|
|
637
644
|
* `partner_admin` (boolean): Is this user a Partner administrator?
|
|
638
645
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
|
639
646
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
|
647
|
+
* `primary_group_id` (int64): Primary group ID for Group Admin scoping
|
|
640
648
|
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
|
|
641
649
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
642
650
|
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
|
data/lib/files.com/errors.rb
CHANGED
|
@@ -119,7 +119,6 @@ module Files
|
|
|
119
119
|
class ApiKeyOnlyForDesktopAppError < NotAuthorizedError; end
|
|
120
120
|
class ApiKeyOnlyForMobileAppError < NotAuthorizedError; end
|
|
121
121
|
class ApiKeyOnlyForOfficeIntegrationError < NotAuthorizedError; end
|
|
122
|
-
class BillingOrSiteAdminPermissionRequiredError < NotAuthorizedError; end
|
|
123
122
|
class BillingPermissionRequiredError < NotAuthorizedError; end
|
|
124
123
|
class BundleMaximumUsesReachedError < NotAuthorizedError; end
|
|
125
124
|
class BundlePermissionRequiredError < NotAuthorizedError; end
|
|
@@ -151,6 +150,11 @@ module Files
|
|
|
151
150
|
class ReauthenticationNeededActionError < NotAuthorizedError; end
|
|
152
151
|
class RecaptchaFailedError < NotAuthorizedError; end
|
|
153
152
|
class SelfManagedRequiredError < NotAuthorizedError; end
|
|
153
|
+
class SiteAdminOrPartnerAdminPermissionRequiredError < NotAuthorizedError; end
|
|
154
|
+
class SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredError < NotAuthorizedError; end
|
|
155
|
+
class SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredError < NotAuthorizedError; end
|
|
156
|
+
class SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredError < NotAuthorizedError; end
|
|
157
|
+
class SiteAdminOrWorkspaceAdminPermissionRequiredError < NotAuthorizedError; end
|
|
154
158
|
class SiteAdminRequiredError < NotAuthorizedError; end
|
|
155
159
|
class SiteFilesAreImmutableError < NotAuthorizedError; end
|
|
156
160
|
class TwoFactorAuthenticationRequiredError < NotAuthorizedError; end
|
|
@@ -18,6 +18,15 @@ module Files
|
|
|
18
18
|
@attributes[:allow_bypassing_2fa_policies] = value
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
# string - A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
22
|
+
def allowed_ips
|
|
23
|
+
@attributes[:allowed_ips]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def allowed_ips=(value)
|
|
27
|
+
@attributes[:allowed_ips] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
21
30
|
# boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
22
31
|
def allow_credential_changes
|
|
23
32
|
@attributes[:allow_credential_changes]
|
|
@@ -118,6 +127,7 @@ module Files
|
|
|
118
127
|
end
|
|
119
128
|
|
|
120
129
|
# Parameters:
|
|
130
|
+
# allowed_ips - string - A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
121
131
|
# allow_bypassing_2fa_policies - boolean - Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
|
|
122
132
|
# allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
123
133
|
# allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
|
|
@@ -131,6 +141,7 @@ module Files
|
|
|
131
141
|
params[:id] = @attributes[:id]
|
|
132
142
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
133
143
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
144
|
+
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
134
145
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
135
146
|
raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
|
|
136
147
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -203,6 +214,7 @@ module Files
|
|
|
203
214
|
end
|
|
204
215
|
|
|
205
216
|
# Parameters:
|
|
217
|
+
# allowed_ips - string - A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
206
218
|
# allow_bypassing_2fa_policies - boolean - Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
|
|
207
219
|
# allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
208
220
|
# allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
|
|
@@ -213,6 +225,7 @@ module Files
|
|
|
213
225
|
# root_folder (required) - string - The root folder path for this Partner.
|
|
214
226
|
# workspace_id - int64 - ID of the Workspace associated with this Partner.
|
|
215
227
|
def self.create(params = {}, options = {})
|
|
228
|
+
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
216
229
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
217
230
|
raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
|
|
218
231
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -226,6 +239,7 @@ module Files
|
|
|
226
239
|
end
|
|
227
240
|
|
|
228
241
|
# Parameters:
|
|
242
|
+
# allowed_ips - string - A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
|
|
229
243
|
# allow_bypassing_2fa_policies - boolean - Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
|
|
230
244
|
# allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
231
245
|
# allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
|
|
@@ -238,6 +252,7 @@ module Files
|
|
|
238
252
|
params ||= {}
|
|
239
253
|
params[:id] = id
|
|
240
254
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
255
|
+
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
241
256
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
242
257
|
raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
|
|
243
258
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -386,6 +386,36 @@ module Files
|
|
|
386
386
|
@attributes[:folder_permissions_groups_only]
|
|
387
387
|
end
|
|
388
388
|
|
|
389
|
+
# boolean - Allow group admins to create users in their groups
|
|
390
|
+
def group_admins_can_add_users
|
|
391
|
+
@attributes[:group_admins_can_add_users]
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# boolean - Allow group admins to delete users in their groups
|
|
395
|
+
def group_admins_can_delete_users
|
|
396
|
+
@attributes[:group_admins_can_delete_users]
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# boolean - Allow group admins to enable or disable users in their groups
|
|
400
|
+
def group_admins_can_enable_disable_users
|
|
401
|
+
@attributes[:group_admins_can_enable_disable_users]
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# boolean - Allow group admins to modify users in their groups
|
|
405
|
+
def group_admins_can_modify_users
|
|
406
|
+
@attributes[:group_admins_can_modify_users]
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# boolean - Allow group admins to reset passwords for users in their groups
|
|
410
|
+
def group_admins_can_reset_passwords
|
|
411
|
+
@attributes[:group_admins_can_reset_passwords]
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# boolean - Allow group admins to set password authentication method
|
|
415
|
+
def group_admins_can_set_user_password
|
|
416
|
+
@attributes[:group_admins_can_set_user_password]
|
|
417
|
+
end
|
|
418
|
+
|
|
389
419
|
# boolean - Is there a signed HIPAA BAA between Files.com and this site?
|
|
390
420
|
def hipaa
|
|
391
421
|
@attributes[:hipaa]
|
|
@@ -894,11 +924,6 @@ module Files
|
|
|
894
924
|
@attributes[:windows_mode_ftp]
|
|
895
925
|
end
|
|
896
926
|
|
|
897
|
-
# boolean - Allow group admins set password authentication method
|
|
898
|
-
def group_admins_can_set_user_password
|
|
899
|
-
@attributes[:group_admins_can_set_user_password]
|
|
900
|
-
end
|
|
901
|
-
|
|
902
927
|
def self.get(params = {}, options = {})
|
|
903
928
|
response, options = Api.send_request("/site", :get, params, options)
|
|
904
929
|
Site.new(response.data, options)
|
|
@@ -1015,7 +1040,12 @@ module Files
|
|
|
1015
1040
|
# protocol_access_groups_only - boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
1016
1041
|
# revoke_bundle_access_on_disable_or_delete - boolean - Auto-removes bundles for disabled/deleted users and enforces bundle expiry within user access period.
|
|
1017
1042
|
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
1018
|
-
#
|
|
1043
|
+
# group_admins_can_add_users - boolean - Allow group admins to create users in their groups
|
|
1044
|
+
# group_admins_can_delete_users - boolean - Allow group admins to delete users in their groups
|
|
1045
|
+
# group_admins_can_enable_disable_users - boolean - Allow group admins to enable or disable users in their groups
|
|
1046
|
+
# group_admins_can_modify_users - boolean - Allow group admins to modify users in their groups
|
|
1047
|
+
# group_admins_can_reset_passwords - boolean - Allow group admins to reset passwords for users in their groups
|
|
1048
|
+
# group_admins_can_set_user_password - boolean - Allow group admins to set password authentication method
|
|
1019
1049
|
# bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
|
|
1020
1050
|
# bundle_recipient_blacklist_domains - array(string) - List of email domains to disallow when entering a Bundle/Inbox recipients
|
|
1021
1051
|
# admins_bypass_locked_subfolders - boolean - Allow admins to bypass the locked subfolders setting.
|
|
@@ -419,6 +419,15 @@ module Files
|
|
|
419
419
|
@attributes[:password_validity_days] = value
|
|
420
420
|
end
|
|
421
421
|
|
|
422
|
+
# int64 - Primary group ID for Group Admin scoping
|
|
423
|
+
def primary_group_id
|
|
424
|
+
@attributes[:primary_group_id]
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
def primary_group_id=(value)
|
|
428
|
+
@attributes[:primary_group_id] = value
|
|
429
|
+
end
|
|
430
|
+
|
|
422
431
|
# int64 - Number of public keys associated with this user
|
|
423
432
|
def public_keys_count
|
|
424
433
|
@attributes[:public_keys_count]
|
|
@@ -847,6 +856,7 @@ module Files
|
|
|
847
856
|
# partner_admin - boolean - Is this user a Partner administrator?
|
|
848
857
|
# partner_id - int64 - Partner ID if this user belongs to a Partner
|
|
849
858
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
|
859
|
+
# primary_group_id - int64 - Primary group ID for Group Admin scoping
|
|
850
860
|
# readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
|
|
851
861
|
# receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
852
862
|
# require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
|
@@ -895,6 +905,7 @@ module Files
|
|
|
895
905
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
896
906
|
raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
|
|
897
907
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params[:password_validity_days] and !params[:password_validity_days].is_a?(Integer)
|
|
908
|
+
raise InvalidParameterError.new("Bad parameter: primary_group_id must be an Integer") if params[:primary_group_id] and !params[:primary_group_id].is_a?(Integer)
|
|
898
909
|
raise InvalidParameterError.new("Bad parameter: require_login_by must be an String") if params[:require_login_by] and !params[:require_login_by].is_a?(String)
|
|
899
910
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params[:ssl_required] and !params[:ssl_required].is_a?(String)
|
|
900
911
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params[:sso_strategy_id] and !params[:sso_strategy_id].is_a?(Integer)
|
|
@@ -1024,6 +1035,7 @@ module Files
|
|
|
1024
1035
|
# partner_admin - boolean - Is this user a Partner administrator?
|
|
1025
1036
|
# partner_id - int64 - Partner ID if this user belongs to a Partner
|
|
1026
1037
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
|
1038
|
+
# primary_group_id - int64 - Primary group ID for Group Admin scoping
|
|
1027
1039
|
# readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
|
|
1028
1040
|
# receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
1029
1041
|
# require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
|
@@ -1067,6 +1079,7 @@ module Files
|
|
|
1067
1079
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
1068
1080
|
raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
|
|
1069
1081
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params[:password_validity_days] and !params[:password_validity_days].is_a?(Integer)
|
|
1082
|
+
raise InvalidParameterError.new("Bad parameter: primary_group_id must be an Integer") if params[:primary_group_id] and !params[:primary_group_id].is_a?(Integer)
|
|
1070
1083
|
raise InvalidParameterError.new("Bad parameter: require_login_by must be an String") if params[:require_login_by] and !params[:require_login_by].is_a?(String)
|
|
1071
1084
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params[:ssl_required] and !params[:ssl_required].is_a?(String)
|
|
1072
1085
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params[:sso_strategy_id] and !params[:sso_strategy_id].is_a?(Integer)
|
|
@@ -1151,6 +1164,7 @@ module Files
|
|
|
1151
1164
|
# partner_admin - boolean - Is this user a Partner administrator?
|
|
1152
1165
|
# partner_id - int64 - Partner ID if this user belongs to a Partner
|
|
1153
1166
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
|
1167
|
+
# primary_group_id - int64 - Primary group ID for Group Admin scoping
|
|
1154
1168
|
# readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
|
|
1155
1169
|
# receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
1156
1170
|
# require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
|
@@ -1198,6 +1212,7 @@ module Files
|
|
|
1198
1212
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
1199
1213
|
raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
|
|
1200
1214
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params[:password_validity_days] and !params[:password_validity_days].is_a?(Integer)
|
|
1215
|
+
raise InvalidParameterError.new("Bad parameter: primary_group_id must be an Integer") if params[:primary_group_id] and !params[:primary_group_id].is_a?(Integer)
|
|
1201
1216
|
raise InvalidParameterError.new("Bad parameter: require_login_by must be an String") if params[:require_login_by] and !params[:require_login_by].is_a?(String)
|
|
1202
1217
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params[:ssl_required] and !params[:ssl_required].is_a?(String)
|
|
1203
1218
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params[:sso_strategy_id] and !params[:sso_strategy_id].is_a?(Integer)
|
data/lib/files.com/version.rb
CHANGED
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.1.
|
|
4
|
+
version: 1.1.600
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|