files.com 1.1.594 → 1.1.595

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: cccf4b391555246519a2742a96047e06ad76e1958fdfac6ef825780d6be91a4c
4
- data.tar.gz: bbf43d09e7a38883c7d2884d68b047b1becca5d08110450839f5cf4d34cbeffc
3
+ metadata.gz: ae0a7c4692fdd7f6167eb43495af3ca8c91a377a00cf5bc662e27f62c7179afc
4
+ data.tar.gz: a4b71816b1a0323e421f41dafc5752fcbb5be6d7c8a172cce0f6d103a48229cf
5
5
  SHA512:
6
- metadata.gz: 3d0f813de9f5265f35b28be4653b0e59f5aeb4b451be72ac964ac17cf156df0fe73a9da93f3523dfcad3f3fd9e616ad3fb834a067bcbd3170e034b8358cb51c8
7
- data.tar.gz: 6e56a5f6a77e439aac7c752310f28d6cbf33bfc1ff441e066bfe1b7da82e89b57f3d05c0673e725563e4a14fe2c2261c09327b1c6954b764fd4bd2d3f8928d53
6
+ metadata.gz: 0f0df4cc045a8ad62a3b545f81d2fee38651b4f57306acda9d3fad2f4cb36fdc6267c3542d36578e11a296510253f04583814fff6972b6769c3a839924d22824
7
+ data.tar.gz: 34e4f97185e4c77771881f72cb7c031246bcd1ffde2f288c32bba8f56ceffd418a2b1ff34eeab1de95bf67153f7c9a0df64ae71e00bdf5542745380190e6c666
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.594
1
+ 1.1.595
@@ -9,6 +9,7 @@
9
9
  "api_usage_available": true,
10
10
  "read_api_usage": 1,
11
11
  "write_api_usage": 1,
12
+ "transformation_credits_usage": "100",
12
13
  "user_count": 1,
13
14
  "current_storage": 1,
14
15
  "deleted_files_storage": 1,
@@ -29,6 +30,7 @@
29
30
  * `api_usage_available` (boolean): True if the API usage fields `read_api_usage` and `write_api_usage` can be relied upon. If this is false, we suggest hiding that value from any UI.
30
31
  * `read_api_usage` (int64): Read API Calls used on this day. Note: only updated for days before the current day.
31
32
  * `write_api_usage` (int64): Write API Calls used on this day. Note: only updated for days before the current day.
33
+ * `transformation_credits_usage` (decimal): Transformation and AI credits used on this day. Note: initially this tracks GPG encrypt, decrypt, and recrypt usage.
32
34
  * `user_count` (int64): Number of billable users as of this day.
33
35
  * `current_storage` (int64): GB of Files Native Storage used on this day.
34
36
  * `deleted_files_storage` (int64): GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "bigdecimal"
4
+
3
5
  module Files
4
6
  class UsageDailySnapshot
5
7
  attr_reader :options, :attributes
@@ -34,6 +36,14 @@ module Files
34
36
  @attributes[:write_api_usage]
35
37
  end
36
38
 
39
+ # decimal - Transformation and AI credits used on this day. Note: initially this tracks GPG encrypt, decrypt, and recrypt usage.
40
+ def transformation_credits_usage
41
+ value = @attributes[:transformation_credits_usage]
42
+ return value if value.nil? || value.is_a?(BigDecimal)
43
+
44
+ BigDecimal(value.to_s)
45
+ end
46
+
37
47
  # int64 - Number of billable users as of this day.
38
48
  def user_count
39
49
  @attributes[:user_count]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.594"
4
+ VERSION = "1.1.595"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.594
4
+ version: 1.1.595
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com