files.com 1.0.181 → 1.0.185
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/action_webhook_failure.md +28 -0
- data/docs/external_event.md +18 -8
- data/lib/files.com.rb +1 -0
- data/lib/files.com/models/action_webhook_failure.rb +34 -0
- data/lib/files.com/models/external_event.rb +52 -7
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8595fe01110ecc8a3c1b0a0602d94df7d0203659f1042230b4b5c700643d26b2
|
4
|
+
data.tar.gz: 5543b53337d69e4d02a462b517a7625af1890cbb3cdb8809fc76f233c13cb97e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db81909c52f8d91fbdf7170a660d5b90b9bf7a5b3089531d92322f325220f9d5f9ccfd9fb85f8a429fd59ca61e5b7761d879ff9ced0b5e0d6190ebb9aa9d7d75
|
7
|
+
data.tar.gz: 1d5c30443fe25c09039a0c6d6ad200ecf23f3d41e92bcea21a50b67785cf9432025b104812cc919278ce4feaa67745a3d5ed268942c03fad7a9ff7cbc565a012
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.185
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
---
|
4
|
+
|
5
|
+
## retry Action Webhook Failure
|
6
|
+
|
7
|
+
```
|
8
|
+
Files::ActionWebhookFailure.retry(id)
|
9
|
+
```
|
10
|
+
|
11
|
+
### Parameters
|
12
|
+
|
13
|
+
* `id` (int64): Required - Action Webhook Failure ID.
|
14
|
+
|
15
|
+
|
16
|
+
---
|
17
|
+
|
18
|
+
## retry Action Webhook Failure
|
19
|
+
|
20
|
+
```
|
21
|
+
action_webhook_failure = Files::ActionWebhookFailure.list_for(path).first
|
22
|
+
|
23
|
+
action_webhook_failure.retry
|
24
|
+
```
|
25
|
+
|
26
|
+
### Parameters
|
27
|
+
|
28
|
+
* `id` (int64): Required - Action Webhook Failure ID.
|
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
|
---
|
data/lib/files.com.rb
CHANGED
@@ -31,6 +31,7 @@ require "files.com/models/account_line_item"
|
|
31
31
|
require "files.com/models/action"
|
32
32
|
require "files.com/models/action_notification_export"
|
33
33
|
require "files.com/models/action_notification_export_result"
|
34
|
+
require "files.com/models/action_webhook_failure"
|
34
35
|
require "files.com/models/api_key"
|
35
36
|
require "files.com/models/app"
|
36
37
|
require "files.com/models/as2_key"
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class ActionWebhookFailure
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# retry Action Webhook Failure
|
13
|
+
def retry(params = {})
|
14
|
+
params ||= {}
|
15
|
+
params[:id] = @attributes[:id]
|
16
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
17
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
18
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
19
|
+
|
20
|
+
Api.send_request("/action_webhook_failures/#{@attributes[:id]}/retry", :post, params, @options)
|
21
|
+
end
|
22
|
+
|
23
|
+
# retry Action Webhook Failure
|
24
|
+
def self.retry(id, params = {}, options = {})
|
25
|
+
params ||= {}
|
26
|
+
params[:id] = id
|
27
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
28
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
29
|
+
|
30
|
+
response, _options = Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
|
31
|
+
response.data
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -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)
|
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.185
|
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-07-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- docs/action.md
|
91
91
|
- docs/action_notification_export.md
|
92
92
|
- docs/action_notification_export_result.md
|
93
|
+
- docs/action_webhook_failure.md
|
93
94
|
- docs/api_key.md
|
94
95
|
- docs/app.md
|
95
96
|
- docs/as2_key.md
|
@@ -164,6 +165,7 @@ files:
|
|
164
165
|
- lib/files.com/models/action.rb
|
165
166
|
- lib/files.com/models/action_notification_export.rb
|
166
167
|
- lib/files.com/models/action_notification_export_result.rb
|
168
|
+
- lib/files.com/models/action_webhook_failure.rb
|
167
169
|
- lib/files.com/models/api_key.rb
|
168
170
|
- lib/files.com/models/app.rb
|
169
171
|
- lib/files.com/models/as2_key.rb
|