files.com 1.1.741 → 1.1.743
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/Gemfile.lock +5 -5
- data/_VERSION +1 -1
- data/docs/action_notification_export.md +4 -0
- data/files.com.gemspec +2 -2
- data/lib/files.com/models/action_notification_export.rb +11 -0
- data/lib/files.com/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a422fb27c774606b951cf47d99d36f6480eab1489536c421ec5f9a805a1b477a
|
|
4
|
+
data.tar.gz: 32674edcd54f7a5a70e59a50a29cb500029b0400d29af20285ab6dbefd7bd1ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: babbaee413ae863433f3f7276342383112da748360da76f7e2bc3c0883aaa82cba1e3987178ee224b5a27f38b32410bc5b0780980c3ab719c97cdfe1435a9fd2
|
|
7
|
+
data.tar.gz: '08c007519882b709a66584483fec546a5fb9533fae557d91b180c64f608dc72a9223dc8ad8111f6defccde00959109ce439f09d1f937b9a3d3c77fb6bde0594c'
|
data/Gemfile.lock
CHANGED
|
@@ -6,7 +6,7 @@ PATH
|
|
|
6
6
|
base64 (~> 0.2)
|
|
7
7
|
bigdecimal
|
|
8
8
|
concurrent-ruby (>= 1.3.7)
|
|
9
|
-
faraday (>=
|
|
9
|
+
faraday (>= 2.14.3)
|
|
10
10
|
faraday-multipart (>= 1.0)
|
|
11
11
|
faraday-net_http_persistent (>= 2.0)
|
|
12
12
|
logger (~> 1.6)
|
|
@@ -27,9 +27,10 @@ GEM
|
|
|
27
27
|
concurrent-ruby (1.3.8)
|
|
28
28
|
connection_pool (2.2.5)
|
|
29
29
|
diff-lcs (1.5.0)
|
|
30
|
-
faraday (2.
|
|
31
|
-
faraday-net_http (>= 2.0, < 3.
|
|
32
|
-
|
|
30
|
+
faraday (2.14.4)
|
|
31
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
32
|
+
json
|
|
33
|
+
logger
|
|
33
34
|
faraday-multipart (1.0.4)
|
|
34
35
|
multipart-post (~> 2)
|
|
35
36
|
faraday-net_http (3.0.0)
|
|
@@ -85,7 +86,6 @@ GEM
|
|
|
85
86
|
rubocop-ast (1.21.0)
|
|
86
87
|
parser (>= 3.1.1.0)
|
|
87
88
|
ruby-progressbar (1.11.0)
|
|
88
|
-
ruby2_keywords (0.0.5)
|
|
89
89
|
unicode-display_width (2.2.0)
|
|
90
90
|
|
|
91
91
|
PLATFORMS
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.743
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
```
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
|
+
"workspace_id": 1,
|
|
8
9
|
"export_version": "20201213.2",
|
|
9
10
|
"start_at": "2000-01-01T01:00:00Z",
|
|
10
11
|
"end_at": "2000-01-01T01:00:00Z",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
```
|
|
22
23
|
|
|
23
24
|
* `id` (int64): History Export ID
|
|
25
|
+
* `workspace_id` (int64): Workspace whose logs are exported. Set to `0` for the default workspace. A null value means a site-wide export.
|
|
24
26
|
* `export_version` (string): Version of the underlying records for the export.
|
|
25
27
|
* `start_at` (date-time): Start date/time of export range.
|
|
26
28
|
* `end_at` (date-time): End date/time of export range.
|
|
@@ -56,6 +58,7 @@ Files::ActionNotificationExport.find(id)
|
|
|
56
58
|
```
|
|
57
59
|
Files::ActionNotificationExport.create(
|
|
58
60
|
user_id: 1,
|
|
61
|
+
workspace_id: 1,
|
|
59
62
|
start_at: "2000-01-01T01:00:00Z",
|
|
60
63
|
end_at: "2000-01-01T01:00:00Z",
|
|
61
64
|
query_message: "Connection Refused",
|
|
@@ -71,6 +74,7 @@ Files::ActionNotificationExport.create(
|
|
|
71
74
|
### Parameters
|
|
72
75
|
|
|
73
76
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
77
|
+
* `workspace_id` (int64): Workspace whose logs are exported. Set to `0` for the default workspace. A null value means a site-wide export.
|
|
74
78
|
* `start_at` (string): Start date/time of export range.
|
|
75
79
|
* `end_at` (string): End date/time of export range.
|
|
76
80
|
* `query_message` (string): Error message associated with the request, if any.
|
data/files.com.gemspec
CHANGED
|
@@ -10,12 +10,12 @@ Gem::Specification.new do |s|
|
|
|
10
10
|
s.summary = "Files.com Ruby client."
|
|
11
11
|
s.description = "The Files.com Ruby client."
|
|
12
12
|
s.license = "MIT"
|
|
13
|
-
s.required_ruby_version = ">=
|
|
13
|
+
s.required_ruby_version = ">= 3.0"
|
|
14
14
|
s.add_dependency 'addressable', ">= 2.9.0"
|
|
15
15
|
s.add_dependency 'base64', "~> 0.2"
|
|
16
16
|
s.add_dependency 'bigdecimal', ">= 0"
|
|
17
17
|
s.add_dependency 'concurrent-ruby', ">= 1.3.7"
|
|
18
|
-
s.add_dependency 'faraday', ">=
|
|
18
|
+
s.add_dependency 'faraday', ">= 2.14.3"
|
|
19
19
|
s.add_dependency 'faraday-multipart', ">= 1.0"
|
|
20
20
|
s.add_dependency 'faraday-net_http_persistent', '>= 2.0'
|
|
21
21
|
s.add_dependency 'logger', "~> 1.6"
|
|
@@ -18,6 +18,15 @@ module Files
|
|
|
18
18
|
@attributes[:id] = value
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
# int64 - Workspace whose logs are exported. Set to `0` for the default workspace. A null value means a site-wide export.
|
|
22
|
+
def workspace_id
|
|
23
|
+
@attributes[:workspace_id]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def workspace_id=(value)
|
|
27
|
+
@attributes[:workspace_id] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
21
30
|
# string - Version of the underlying records for the export.
|
|
22
31
|
def export_version
|
|
23
32
|
@attributes[:export_version]
|
|
@@ -164,6 +173,7 @@ module Files
|
|
|
164
173
|
|
|
165
174
|
# Parameters:
|
|
166
175
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
176
|
+
# workspace_id - int64 - Workspace whose logs are exported. Set to `0` for the default workspace. A null value means a site-wide export.
|
|
167
177
|
# start_at - string - Start date/time of export range.
|
|
168
178
|
# end_at - string - End date/time of export range.
|
|
169
179
|
# query_message - string - Error message associated with the request, if any.
|
|
@@ -175,6 +185,7 @@ module Files
|
|
|
175
185
|
# query_folder - string - Return notifications that were triggered by actions in this folder.
|
|
176
186
|
def self.create(params = {}, options = {})
|
|
177
187
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
188
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
178
189
|
raise InvalidParameterError.new("Bad parameter: start_at must be an String") if params[:start_at] and !params[:start_at].is_a?(String)
|
|
179
190
|
raise InvalidParameterError.new("Bad parameter: end_at must be an String") if params[:end_at] and !params[:end_at].is_a?(String)
|
|
180
191
|
raise InvalidParameterError.new("Bad parameter: query_message must be an String") if params[:query_message] and !params[:query_message].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.1.743
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
@@ -72,14 +72,14 @@ dependencies:
|
|
|
72
72
|
requirements:
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
75
|
+
version: 2.14.3
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
82
|
+
version: 2.14.3
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: faraday-multipart
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -505,7 +505,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
505
505
|
requirements:
|
|
506
506
|
- - ">="
|
|
507
507
|
- !ruby/object:Gem::Version
|
|
508
|
-
version: '
|
|
508
|
+
version: '3.0'
|
|
509
509
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
510
510
|
requirements:
|
|
511
511
|
- - ">="
|