files.com 1.0.182 → 1.0.183
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/external_event.md +18 -8
- data/lib/files.com/models/external_event.rb +52 -7
- 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: ff4d0d6063f70dcebe0716be9be58576674d1dd9557a6fa361d6b3f0379f102a
|
4
|
+
data.tar.gz: e7b4ab3e3c558ed2c39de94a3af1abcd13003c56dcd9bc8d7464a360a2e51a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8769075d23e196ac9bf65bbf57a3a0254591c6ffebd3f05aaaeeafc1630762beebcfdb25858b82d8f765d0d2071c9d2e32410e545fd3decfc7fdae45dac472a3
|
7
|
+
data.tar.gz: 7fe7e57189cf669a367b1d4e63d8a2a3cabd56369afe601717cf454969947205417c94bb9ca3a13b6478d2357559d253f6e22a59d851fe7d4f52582bad238be1
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.183
|
data/docs/external_event.md
CHANGED
@@ -9,7 +9,12 @@
|
|
9
9
|
"status": "",
|
10
10
|
"body": "",
|
11
11
|
"created_at": "2000-01-01T01:00:00Z",
|
12
|
-
"body_url": ""
|
12
|
+
"body_url": "",
|
13
|
+
"folder_behavior_id": 1,
|
14
|
+
"successful_files": 1,
|
15
|
+
"errored_files": 1,
|
16
|
+
"bytes_synced": 1,
|
17
|
+
"remote_server_type": ""
|
13
18
|
}
|
14
19
|
```
|
15
20
|
|
@@ -19,6 +24,11 @@
|
|
19
24
|
* `body` (string): Event body
|
20
25
|
* `created_at` (date-time): External event create date/time
|
21
26
|
* `body_url` (string): Link to log file.
|
27
|
+
* `folder_behavior_id` (int64): Folder Behavior ID
|
28
|
+
* `successful_files` (int64): For sync events, the number of files handled successfully.
|
29
|
+
* `errored_files` (int64): For sync events, the number of files that encountered errors.
|
30
|
+
* `bytes_synced` (int64): For sync events, the total number of bytes synced.
|
31
|
+
* `remote_server_type` (string): Associated Remote Server type, if any
|
22
32
|
|
23
33
|
|
24
34
|
---
|
@@ -35,13 +45,13 @@ Files::ExternalEvent.list(
|
|
35
45
|
|
36
46
|
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
37
47
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
38
|
-
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at` or `
|
39
|
-
* `filter` (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 `
|
40
|
-
* `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `
|
41
|
-
* `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `
|
42
|
-
* `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 `
|
43
|
-
* `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 `
|
44
|
-
* `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 `
|
48
|
+
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at`, `status`, `site_id` or `folder_behavior_id`.
|
49
|
+
* `filter` (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`, `status` or `folder_behavior_id`.
|
50
|
+
* `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
51
|
+
* `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
52
|
+
* `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`, `status` or `folder_behavior_id`.
|
53
|
+
* `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`, `status` or `folder_behavior_id`.
|
54
|
+
* `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`, `status` or `folder_behavior_id`.
|
45
55
|
|
46
56
|
|
47
57
|
---
|
@@ -59,6 +59,51 @@ module Files
|
|
59
59
|
@attributes[:body_url] = value
|
60
60
|
end
|
61
61
|
|
62
|
+
# int64 - Folder Behavior ID
|
63
|
+
def folder_behavior_id
|
64
|
+
@attributes[:folder_behavior_id]
|
65
|
+
end
|
66
|
+
|
67
|
+
def folder_behavior_id=(value)
|
68
|
+
@attributes[:folder_behavior_id] = value
|
69
|
+
end
|
70
|
+
|
71
|
+
# int64 - For sync events, the number of files handled successfully.
|
72
|
+
def successful_files
|
73
|
+
@attributes[:successful_files]
|
74
|
+
end
|
75
|
+
|
76
|
+
def successful_files=(value)
|
77
|
+
@attributes[:successful_files] = value
|
78
|
+
end
|
79
|
+
|
80
|
+
# int64 - For sync events, the number of files that encountered errors.
|
81
|
+
def errored_files
|
82
|
+
@attributes[:errored_files]
|
83
|
+
end
|
84
|
+
|
85
|
+
def errored_files=(value)
|
86
|
+
@attributes[:errored_files] = value
|
87
|
+
end
|
88
|
+
|
89
|
+
# int64 - For sync events, the total number of bytes synced.
|
90
|
+
def bytes_synced
|
91
|
+
@attributes[:bytes_synced]
|
92
|
+
end
|
93
|
+
|
94
|
+
def bytes_synced=(value)
|
95
|
+
@attributes[:bytes_synced] = value
|
96
|
+
end
|
97
|
+
|
98
|
+
# string - Associated Remote Server type, if any
|
99
|
+
def remote_server_type
|
100
|
+
@attributes[:remote_server_type]
|
101
|
+
end
|
102
|
+
|
103
|
+
def remote_server_type=(value)
|
104
|
+
@attributes[:remote_server_type] = value
|
105
|
+
end
|
106
|
+
|
62
107
|
def save
|
63
108
|
if @attributes[:id]
|
64
109
|
raise NotImplementedError.new("The ExternalEvent object doesn't support updates.")
|
@@ -71,13 +116,13 @@ module Files
|
|
71
116
|
# Parameters:
|
72
117
|
# cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
73
118
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
74
|
-
# sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at` or `
|
75
|
-
# filter - 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 `
|
76
|
-
# filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `
|
77
|
-
# filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `
|
78
|
-
# 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 `
|
79
|
-
# 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 `
|
80
|
-
# 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 `
|
119
|
+
# sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at`, `status`, `site_id` or `folder_behavior_id`.
|
120
|
+
# filter - 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`, `status` or `folder_behavior_id`.
|
121
|
+
# filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
122
|
+
# filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
123
|
+
# 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`, `status` or `folder_behavior_id`.
|
124
|
+
# 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`, `status` or `folder_behavior_id`.
|
125
|
+
# 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`, `status` or `folder_behavior_id`.
|
81
126
|
def self.list(params = {}, options = {})
|
82
127
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
83
128
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|