files.com 1.1.202 → 1.1.204

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dcfb98c0f0bf3917088a4ef6c89c5b216ae3ce1c72e21129037dfa7e00d1284
4
- data.tar.gz: f86a3effca89c0931a0537cb0613f26fa842376b89b5df0d26b48e1d7bc54900
3
+ metadata.gz: ebab0598228e560f57213b13a745a6885b4a51b0bfdc7745785de47bf7adc758
4
+ data.tar.gz: 56fd13ed9d7c23860f408cd97e303c792b6a925d5336be1f5f3ffc9e1da3e418
5
5
  SHA512:
6
- metadata.gz: 14a9912dafafa6d398060486c6a10ef227c9304589ab5374f06eeffa7b9f87828c532d707d939f09200461f35128a3a176b09faf017243eb38dcc14e113fd9f5
7
- data.tar.gz: 2a72a0f46c1ff673865ec49f46540e0b980598f457cc1c99dc2cba7b45282c56285d9233a2333745427404c2d5453405d76f484afd902ee2c77b8c96a058ac21
6
+ metadata.gz: a531b9229b12b2beb8545c03b38fe909fdf6994f1a375d021c2eefcc800080d1197be810bda34838a373566e56a7b2d6789aeb59dbde37f09fce4f695b6c440b
7
+ data.tar.gz: 329efb21fb68e853fa9fbfabd07642c8440e45ae7dff3fb2e8243894871edeb0e60dcdee02446178f774d13afca14bb527421beb12c1b0c2bbb49b7b2229540a
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.202
1
+ 1.1.204
data/docs/history.md CHANGED
@@ -96,7 +96,7 @@ Files::History.list_for_user(user_id,
96
96
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
97
97
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
98
98
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
99
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
99
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
100
100
  * `user_id` (int64): Required - User ID.
101
101
 
102
102
 
@@ -137,6 +137,6 @@ Files::History.list(
137
137
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
138
138
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
139
139
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
140
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `id`.
140
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `user_id`.
141
141
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`. Valid field combinations are `[ ]`, `[ path ]`, `[ path ]` or `[ path ]`.
142
142
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
@@ -22,6 +22,7 @@
22
22
  "md5": "example",
23
23
  "size": 1,
24
24
  "data_length": 1,
25
+ "bytes_transferred": 1,
25
26
  "entries_returned": 1,
26
27
  "success": true,
27
28
  "status": "example",
@@ -47,6 +48,7 @@
47
48
  * `md5` (string): MD5 Hash of the file. Not always available.
48
49
  * `size` (int64): Size of File That was Uploaded or Downloaded.
49
50
  * `data_length` (int64): Data Length in Bytes. Present for actions that transfer data.
51
+ * `bytes_transferred` (int64): The number of bytes transferred for uploads and downloads.
50
52
  * `entries_returned` (int64): Number of entries returned when listing files and folders
51
53
  * `success` (boolean): Whether SFTP Action was successful.
52
54
  * `status` (string): SFTP Action status.
@@ -135,7 +135,7 @@ module Files
135
135
  # display - string - Display format. Leave blank or set to `full` or `parent`.
136
136
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
137
137
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
138
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
138
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
139
139
  # user_id (required) - int64 - User ID.
140
140
  def self.list_for_user(user_id, params = {}, options = {})
141
141
  params ||= {}
@@ -180,7 +180,7 @@ module Files
180
180
  # display - string - Display format. Leave blank or set to `full` or `parent`.
181
181
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
182
182
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
183
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `id`.
183
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `user_id`.
184
184
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`. Valid field combinations are `[ ]`, `[ path ]`, `[ path ]` or `[ path ]`.
185
185
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
186
186
  def self.list(params = {}, options = {})
@@ -99,6 +99,11 @@ module Files
99
99
  @attributes[:data_length]
100
100
  end
101
101
 
102
+ # int64 - The number of bytes transferred for uploads and downloads.
103
+ def bytes_transferred
104
+ @attributes[:bytes_transferred]
105
+ end
106
+
102
107
  # int64 - Number of entries returned when listing files and folders
103
108
  def entries_returned
104
109
  @attributes[:entries_returned]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.202"
4
+ VERSION = "1.1.204"
5
5
  end
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.202
4
+ version: 1.1.204
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-19 00:00:00.000000000 Z
11
+ date: 2025-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable