files.com 1.0.167 → 1.0.168
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/external_event.md +15 -0
- data/lib/files.com/models/external_event.rb +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ff3de6dc3e07517894e3477ed83afb509d6286e9bc43f0a3e159decede7149f
|
|
4
|
+
data.tar.gz: 81fba539b30ffd7ae9befc9f1d8d0882b265ee6da2ba3766e1d587726648098b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20bf387f5f3a2ae9a81d8e10f42903d635a23a214b3c2b90c13b29c7e57341cb835c2a2503eb9618d1144f81b98aedbac28028cc2be824be8d47d18057aa8de3
|
|
7
|
+
data.tar.gz: b324710fa63caac950ea3f7df69b577947adba0846d3239db7b8aa2d6cea8d51572787149d15528c08373cb7b9cc67cc3318ae103fd8159c77177b0bd39e15d6
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.168
|
data/docs/external_event.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
{
|
|
7
|
+
"id": 1,
|
|
7
8
|
"event_type": "",
|
|
8
9
|
"status": "",
|
|
9
10
|
"body": "",
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
}
|
|
12
13
|
```
|
|
13
14
|
|
|
15
|
+
* `id` (int64): Event ID
|
|
14
16
|
* `event_type` (string): Type of event being recorded.
|
|
15
17
|
* `status` (string): Status of event.
|
|
16
18
|
* `body` (string): Event body
|
|
@@ -38,3 +40,16 @@ Files::ExternalEvent.list(
|
|
|
38
40
|
* `filter_like` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
|
39
41
|
* `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
|
40
42
|
* `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Show External Event
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Files::ExternalEvent.find(id)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
* `id` (int64): Required - External Event ID.
|
|
@@ -9,6 +9,11 @@ module Files
|
|
|
9
9
|
@options = options || {}
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
# int64 - Event ID
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
12
17
|
# string - Type of event being recorded.
|
|
13
18
|
def event_type
|
|
14
19
|
@attributes[:event_type]
|
|
@@ -58,5 +63,21 @@ module Files
|
|
|
58
63
|
def self.all(params = {}, options = {})
|
|
59
64
|
list(params, options)
|
|
60
65
|
end
|
|
66
|
+
|
|
67
|
+
# Parameters:
|
|
68
|
+
# id (required) - int64 - External Event ID.
|
|
69
|
+
def self.find(id, params = {}, options = {})
|
|
70
|
+
params ||= {}
|
|
71
|
+
params[:id] = id
|
|
72
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
|
73
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
74
|
+
|
|
75
|
+
response, options = Api.send_request("/external_events/#{params[:id]}", :get, params, options)
|
|
76
|
+
ExternalEvent.new(response.data, options)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def self.get(id, params = {}, options = {})
|
|
80
|
+
find(id, params, options)
|
|
81
|
+
end
|
|
61
82
|
end
|
|
62
83
|
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.0.
|
|
4
|
+
version: 1.0.168
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|