files.com 1.1.335 → 1.1.337
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/_VERSION +1 -1
- data/docs/site.md +1 -0
- data/docs/user.md +8 -0
- data/lib/files.com/api_client.rb +1 -0
- data/lib/files.com/models/user.rb +12 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97f3c198915b023f02b6becdaf9247b3916f42b04aeb3974c68efc9f1f03c991
|
4
|
+
data.tar.gz: e65f050e6a038677b2f85b9dee9a04a31de3a96650f6bca16a37a91eb71aa562
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67077a3ba08876857de4f51faa1980191c7d00d7c4948dfb4237a12a0b1cec3f4da48cc6798405936895e0f1f868fc1e81344ec48e13aff03febccfffe30205
|
7
|
+
data.tar.gz: 0e3aac515d2e9aa235dc683293caa9d607ef92ed0a1152659932fd66395c42fbc6d3742fc46accf0fb2c25fc9a1f5a2ff9b5a4251fc49010c72ff27aef5a6160
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.337
|
data/docs/site.md
CHANGED
data/docs/user.md
CHANGED
@@ -46,6 +46,7 @@
|
|
46
46
|
"notes": "Internal notes on this user.",
|
47
47
|
"notification_daily_send_time": 18,
|
48
48
|
"office_integration_enabled": true,
|
49
|
+
"partner_admin": true,
|
49
50
|
"partner_id": 1,
|
50
51
|
"password_set_at": "2000-01-01T01:00:00Z",
|
51
52
|
"password_validity_days": 1,
|
@@ -117,6 +118,7 @@
|
|
117
118
|
* `notes` (string): Any internal notes on the user
|
118
119
|
* `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
119
120
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
121
|
+
* `partner_admin` (boolean): Is this user a Partner administrator?
|
120
122
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
121
123
|
* `password_set_at` (date-time): Last time the user's password was set
|
122
124
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
@@ -226,6 +228,7 @@ Files::User.create(
|
|
226
228
|
company: "ACME Corp.",
|
227
229
|
notes: "Internal notes on this user.",
|
228
230
|
office_integration_enabled: true,
|
231
|
+
partner_admin: true,
|
229
232
|
partner_id: 1,
|
230
233
|
password_validity_days: 1,
|
231
234
|
readonly_site_admin: true,
|
@@ -280,6 +283,7 @@ Files::User.create(
|
|
280
283
|
* `company` (string): User's company
|
281
284
|
* `notes` (string): Any internal notes on the user
|
282
285
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
286
|
+
* `partner_admin` (boolean): Is this user a Partner administrator?
|
283
287
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
284
288
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
285
289
|
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
|
@@ -369,6 +373,7 @@ Files::User.update(id,
|
|
369
373
|
company: "ACME Corp.",
|
370
374
|
notes: "Internal notes on this user.",
|
371
375
|
office_integration_enabled: true,
|
376
|
+
partner_admin: true,
|
372
377
|
partner_id: 1,
|
373
378
|
password_validity_days: 1,
|
374
379
|
readonly_site_admin: true,
|
@@ -425,6 +430,7 @@ Files::User.update(id,
|
|
425
430
|
* `company` (string): User's company
|
426
431
|
* `notes` (string): Any internal notes on the user
|
427
432
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
433
|
+
* `partner_admin` (boolean): Is this user a Partner administrator?
|
428
434
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
429
435
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
430
436
|
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
|
@@ -539,6 +545,7 @@ user.update(
|
|
539
545
|
company: "ACME Corp.",
|
540
546
|
notes: "Internal notes on this user.",
|
541
547
|
office_integration_enabled: true,
|
548
|
+
partner_admin: true,
|
542
549
|
partner_id: 1,
|
543
550
|
password_validity_days: 1,
|
544
551
|
readonly_site_admin: true,
|
@@ -595,6 +602,7 @@ user.update(
|
|
595
602
|
* `company` (string): User's company
|
596
603
|
* `notes` (string): Any internal notes on the user
|
597
604
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
605
|
+
* `partner_admin` (boolean): Is this user a Partner administrator?
|
598
606
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
599
607
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
600
608
|
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
|
data/lib/files.com/api_client.rb
CHANGED
@@ -197,6 +197,7 @@ module Files
|
|
197
197
|
|
198
198
|
private def check_api_key!(api_key)
|
199
199
|
raise AuthenticationError, "No Files.com API key provided. Set your API key using \"Files.api_key = <API-KEY>\". You can generate API keys from the Files.com's web interface. " unless api_key
|
200
|
+
raise AuthenticationError, "Your API key must be a string" unless api_key.is_a?(String)
|
200
201
|
|
201
202
|
return unless api_key =~ /\s/
|
202
203
|
|
@@ -365,6 +365,15 @@ module Files
|
|
365
365
|
@attributes[:office_integration_enabled] = value
|
366
366
|
end
|
367
367
|
|
368
|
+
# boolean - Is this user a Partner administrator?
|
369
|
+
def partner_admin
|
370
|
+
@attributes[:partner_admin]
|
371
|
+
end
|
372
|
+
|
373
|
+
def partner_admin=(value)
|
374
|
+
@attributes[:partner_admin] = value
|
375
|
+
end
|
376
|
+
|
368
377
|
# int64 - Partner ID if this user belongs to a Partner
|
369
378
|
def partner_id
|
370
379
|
@attributes[:partner_id]
|
@@ -780,6 +789,7 @@ module Files
|
|
780
789
|
# company - string - User's company
|
781
790
|
# notes - string - Any internal notes on the user
|
782
791
|
# office_integration_enabled - boolean - Enable integration with Office for the web?
|
792
|
+
# partner_admin - boolean - Is this user a Partner administrator?
|
783
793
|
# partner_id - int64 - Partner ID if this user belongs to a Partner
|
784
794
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
785
795
|
# readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
|
@@ -950,6 +960,7 @@ module Files
|
|
950
960
|
# company - string - User's company
|
951
961
|
# notes - string - Any internal notes on the user
|
952
962
|
# office_integration_enabled - boolean - Enable integration with Office for the web?
|
963
|
+
# partner_admin - boolean - Is this user a Partner administrator?
|
953
964
|
# partner_id - int64 - Partner ID if this user belongs to a Partner
|
954
965
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
955
966
|
# readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
|
@@ -1069,6 +1080,7 @@ module Files
|
|
1069
1080
|
# company - string - User's company
|
1070
1081
|
# notes - string - Any internal notes on the user
|
1071
1082
|
# office_integration_enabled - boolean - Enable integration with Office for the web?
|
1083
|
+
# partner_admin - boolean - Is this user a Partner administrator?
|
1072
1084
|
# partner_id - int64 - Partner ID if this user belongs to a Partner
|
1073
1085
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
1074
1086
|
# readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
|
data/lib/files.com/version.rb
CHANGED