files.com 1.0.52 → 1.0.53
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/account_line_item.md +2 -2
- data/docs/invoice.md +2 -2
- data/docs/invoice_line_item.md +1 -1
- data/docs/payment.md +2 -2
- data/docs/payment_line_item.md +1 -1
- data/docs/site.md +5 -5
- data/docs/usage_snapshot.md +5 -5
- data/lib/files.com/models/account_line_item.rb +2 -2
- data/lib/files.com/models/invoice.rb +2 -2
- data/lib/files.com/models/invoice_line_item.rb +1 -1
- data/lib/files.com/models/payment.rb +2 -2
- data/lib/files.com/models/payment_line_item.rb +1 -1
- data/lib/files.com/models/site.rb +3 -4
- data/lib/files.com/models/usage_snapshot.rb +5 -5
- 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: a363686b90e3e1673bf9f7b47d9368dd514f05d680000195651de99f0889b310
|
4
|
+
data.tar.gz: d73ee31b349dc91f5a5b92b76a2acc94f52b4622509df03afdfc3caf76c4a337
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55bef934d42e9c1d2843b4d9a84851d1bb2c64e3fb5f2ed53d61b06936abd8ca0199f87345acf9820985ceca6d9952be51ede738e906fb219e762f81d5cce4b5
|
7
|
+
data.tar.gz: 4f4bb4f7af296041691fdc12f84e51a1751cb0ca6ec8a6f890ba20b919ced709fc3dce9a5399a967d2ec86a6f9c73046def7ebcb8f2d0ef50db3015ff3886fb3
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.53
|
data/docs/account_line_item.md
CHANGED
@@ -26,8 +26,8 @@
|
|
26
26
|
```
|
27
27
|
|
28
28
|
* `id` (int64): Line item Id
|
29
|
-
* `amount` (
|
30
|
-
* `balance` (
|
29
|
+
* `amount` (double): Line item amount
|
30
|
+
* `balance` (double): Line item balance
|
31
31
|
* `created_at` (date-time): Line item created at
|
32
32
|
* `currency` (string): Line item currency
|
33
33
|
* `download_uri` (string): Line item download uri
|
data/docs/invoice.md
CHANGED
@@ -26,8 +26,8 @@
|
|
26
26
|
```
|
27
27
|
|
28
28
|
* `id` (int64): Line item Id
|
29
|
-
* `amount` (
|
30
|
-
* `balance` (
|
29
|
+
* `amount` (double): Line item amount
|
30
|
+
* `balance` (double): Line item balance
|
31
31
|
* `created_at` (date-time): Line item created at
|
32
32
|
* `currency` (string): Line item currency
|
33
33
|
* `download_uri` (string): Line item download uri
|
data/docs/invoice_line_item.md
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
}
|
17
17
|
```
|
18
18
|
|
19
|
-
* `amount` (
|
19
|
+
* `amount` (double): Invoice line item amount
|
20
20
|
* `created_at` (date-time): Invoice line item created at date/time
|
21
21
|
* `description` (string): Invoice line item description
|
22
22
|
* `type` (string): Invoice line item type
|
data/docs/payment.md
CHANGED
@@ -26,8 +26,8 @@
|
|
26
26
|
```
|
27
27
|
|
28
28
|
* `id` (int64): Line item Id
|
29
|
-
* `amount` (
|
30
|
-
* `balance` (
|
29
|
+
* `amount` (double): Line item amount
|
30
|
+
* `balance` (double): Line item balance
|
31
31
|
* `created_at` (date-time): Line item created at
|
32
32
|
* `currency` (string): Line item currency
|
33
33
|
* `download_uri` (string): Line item download uri
|
data/docs/payment_line_item.md
CHANGED
data/docs/site.md
CHANGED
@@ -90,7 +90,7 @@
|
|
90
90
|
"smtp_from": "me@my-mail-server.com",
|
91
91
|
"smtp_port": 25,
|
92
92
|
"smtp_username": "mail",
|
93
|
-
"session_expiry": 6,
|
93
|
+
"session_expiry": 6.0,
|
94
94
|
"ssl_required": true,
|
95
95
|
"subdomain": "mysite",
|
96
96
|
"switch_to_plan_date": "2000-01-01T01:00:00Z",
|
@@ -170,7 +170,7 @@
|
|
170
170
|
* `login_help_text` (string): Login help text
|
171
171
|
* `logo`: Branded logo
|
172
172
|
* `max_prior_passwords` (int64): Number of prior passwords to disallow
|
173
|
-
* `next_billing_amount` (
|
173
|
+
* `next_billing_amount` (double): Next billing amount
|
174
174
|
* `next_billing_date` (string): Next billing date
|
175
175
|
* `opt_out_global` (boolean): Use servers in the USA only?
|
176
176
|
* `overage_notified_at` (date-time): Last time the site was notified about an overage
|
@@ -199,7 +199,7 @@
|
|
199
199
|
* `smtp_from` (string): From address to use when mailing through custom SMTP
|
200
200
|
* `smtp_port` (int64): SMTP server port
|
201
201
|
* `smtp_username` (string): SMTP server username
|
202
|
-
* `session_expiry` (
|
202
|
+
* `session_expiry` (double): Session expiry in hours
|
203
203
|
* `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
|
204
204
|
* `subdomain` (string): Site subdomain
|
205
205
|
* `switch_to_plan_date` (date-time): If switching plans, when does the new plan take effect?
|
@@ -264,7 +264,7 @@ Files::Site.update(
|
|
264
264
|
desktop_app_session_lifetime: 1,
|
265
265
|
folder_permissions_groups_only: true,
|
266
266
|
welcome_screen: "user_controlled",
|
267
|
-
session_expiry:
|
267
|
+
session_expiry: 6.0,
|
268
268
|
ssl_required: true,
|
269
269
|
tls_disabled: true,
|
270
270
|
user_lockout: true,
|
@@ -351,7 +351,7 @@ Files::Site.update(
|
|
351
351
|
* `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
|
352
352
|
* `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.
|
353
353
|
* `welcome_screen` (string): Does the welcome screen appear?
|
354
|
-
* `session_expiry` (
|
354
|
+
* `session_expiry` (number): Session expiry in hours
|
355
355
|
* `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
|
356
356
|
* `tls_disabled` (boolean): Is TLS disabled(site setting)?
|
357
357
|
* `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
|
data/docs/usage_snapshot.md
CHANGED
@@ -24,15 +24,15 @@
|
|
24
24
|
* `start_at` (date-time): Site usage report start date/time
|
25
25
|
* `end_at` (date-time): Site usage report end date/time
|
26
26
|
* `created_at` (date-time): Site usage report created at date/time
|
27
|
-
* `current_storage` (
|
28
|
-
* `high_water_storage` (
|
27
|
+
* `current_storage` (double): Current site usage as of report
|
28
|
+
* `high_water_storage` (double): Site usage report highest usage in time period
|
29
29
|
* `total_downloads` (int64): Number of downloads in report time period
|
30
30
|
* `total_uploads` (int64): Number of uploads in time period
|
31
31
|
* `updated_at` (date-time): The last time this site usage report was updated
|
32
32
|
* `usage_by_top_level_dir` (object): A map of root folders to their total usage
|
33
|
-
* `root_storage` (
|
34
|
-
* `deleted_files_counted_in_minimum` (
|
35
|
-
* `deleted_files_storage` (
|
33
|
+
* `root_storage` (double): Usage for root folder
|
34
|
+
* `deleted_files_counted_in_minimum` (double): Usage for files that are deleted but uploaded within last 30 days
|
35
|
+
* `deleted_files_storage` (double): Usage for files that are deleted but retained as backups
|
36
36
|
|
37
37
|
|
38
38
|
---
|
@@ -14,12 +14,12 @@ module Files
|
|
14
14
|
@attributes[:id]
|
15
15
|
end
|
16
16
|
|
17
|
-
#
|
17
|
+
# double - Line item amount
|
18
18
|
def amount
|
19
19
|
@attributes[:amount]
|
20
20
|
end
|
21
21
|
|
22
|
-
#
|
22
|
+
# double - Line item balance
|
23
23
|
def balance
|
24
24
|
@attributes[:balance]
|
25
25
|
end
|
@@ -14,12 +14,12 @@ module Files
|
|
14
14
|
@attributes[:id]
|
15
15
|
end
|
16
16
|
|
17
|
-
#
|
17
|
+
# double - Line item amount
|
18
18
|
def amount
|
19
19
|
@attributes[:amount]
|
20
20
|
end
|
21
21
|
|
22
|
-
#
|
22
|
+
# double - Line item balance
|
23
23
|
def balance
|
24
24
|
@attributes[:balance]
|
25
25
|
end
|
@@ -14,12 +14,12 @@ module Files
|
|
14
14
|
@attributes[:id]
|
15
15
|
end
|
16
16
|
|
17
|
-
#
|
17
|
+
# double - Line item amount
|
18
18
|
def amount
|
19
19
|
@attributes[:amount]
|
20
20
|
end
|
21
21
|
|
22
|
-
#
|
22
|
+
# double - Line item balance
|
23
23
|
def balance
|
24
24
|
@attributes[:balance]
|
25
25
|
end
|
@@ -294,7 +294,7 @@ module Files
|
|
294
294
|
@attributes[:max_prior_passwords]
|
295
295
|
end
|
296
296
|
|
297
|
-
#
|
297
|
+
# double - Next billing amount
|
298
298
|
def next_billing_amount
|
299
299
|
@attributes[:next_billing_amount]
|
300
300
|
end
|
@@ -439,7 +439,7 @@ module Files
|
|
439
439
|
@attributes[:smtp_username]
|
440
440
|
end
|
441
441
|
|
442
|
-
#
|
442
|
+
# double - Session expiry in hours
|
443
443
|
def session_expiry
|
444
444
|
@attributes[:session_expiry]
|
445
445
|
end
|
@@ -570,7 +570,7 @@ module Files
|
|
570
570
|
# desktop_app_session_lifetime - integer - Desktop app session lifetime (in hours)
|
571
571
|
# 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.
|
572
572
|
# welcome_screen - string - Does the welcome screen appear?
|
573
|
-
# session_expiry -
|
573
|
+
# session_expiry - number - Session expiry in hours
|
574
574
|
# ssl_required - boolean - Is SSL required? Disabling this is insecure.
|
575
575
|
# tls_disabled - boolean - Is TLS disabled(site setting)?
|
576
576
|
# user_lockout - boolean - Will users be locked out after incorrect login attempts?
|
@@ -660,7 +660,6 @@ module Files
|
|
660
660
|
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)
|
661
661
|
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)
|
662
662
|
raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params.dig(:welcome_screen) and !params.dig(:welcome_screen).is_a?(String)
|
663
|
-
raise InvalidParameterError.new("Bad parameter: session_expiry must be an Integer") if params.dig(:session_expiry) and !params.dig(:session_expiry).is_a?(Integer)
|
664
663
|
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)
|
665
664
|
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)
|
666
665
|
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)
|
@@ -29,12 +29,12 @@ module Files
|
|
29
29
|
@attributes[:created_at]
|
30
30
|
end
|
31
31
|
|
32
|
-
#
|
32
|
+
# double - Current site usage as of report
|
33
33
|
def current_storage
|
34
34
|
@attributes[:current_storage]
|
35
35
|
end
|
36
36
|
|
37
|
-
#
|
37
|
+
# double - Site usage report highest usage in time period
|
38
38
|
def high_water_storage
|
39
39
|
@attributes[:high_water_storage]
|
40
40
|
end
|
@@ -59,17 +59,17 @@ module Files
|
|
59
59
|
@attributes[:usage_by_top_level_dir]
|
60
60
|
end
|
61
61
|
|
62
|
-
#
|
62
|
+
# double - Usage for root folder
|
63
63
|
def root_storage
|
64
64
|
@attributes[:root_storage]
|
65
65
|
end
|
66
66
|
|
67
|
-
#
|
67
|
+
# double - Usage for files that are deleted but uploaded within last 30 days
|
68
68
|
def deleted_files_counted_in_minimum
|
69
69
|
@attributes[:deleted_files_counted_in_minimum]
|
70
70
|
end
|
71
71
|
|
72
|
-
#
|
72
|
+
# double - Usage for files that are deleted but retained as backups
|
73
73
|
def deleted_files_storage
|
74
74
|
@attributes[:deleted_files_storage]
|
75
75
|
end
|