files.com 1.1.111 → 1.1.112
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/file.md +2 -2
- data/docs/file_action.md +1 -1
- data/docs/sftp_host_key.md +1 -1
- data/lib/files.com/models/file.rb +2 -2
- data/lib/files.com/models/file_action.rb +1 -1
- data/lib/files.com/models/sftp_host_key.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +0 -1
- metadata +2 -4
- data/docs/action_webhook_failure.md +0 -28
- data/lib/files.com/models/action_webhook_failure.rb +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18fa64da839810ed00562ec71c7c1a27eb4ffad729020b79fe33a7eec54f701d
|
4
|
+
data.tar.gz: 57e6b2336a33a39806e80bf1da896dac16c7951825233eafe90bb033ad9fec93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 672a3b4894c4f3fc3d80eb2ab6471ac8e0ef9b7e2339762cfe7e58e8b369c078d4aa052a813700fbd649ddc7bc214126218aa946a5221a1e68af2718e0d9a3e8
|
7
|
+
data.tar.gz: 62d5ac9edea75c1bbfed744271014df953234190f73e621d4ea059a7381be34a52b0f608c3cdb86d52d73b1dc9b81f3d5d398ea6e1ec71d1fc22ce5036dafe47
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.112
|
data/docs/file.md
CHANGED
@@ -246,7 +246,7 @@ Files::File.move(path,
|
|
246
246
|
|
247
247
|
---
|
248
248
|
|
249
|
-
## Begin
|
249
|
+
## Begin File Upload
|
250
250
|
|
251
251
|
```
|
252
252
|
Files::File.begin_upload(path,
|
@@ -379,7 +379,7 @@ file.move(
|
|
379
379
|
|
380
380
|
---
|
381
381
|
|
382
|
-
## Begin
|
382
|
+
## Begin File Upload
|
383
383
|
|
384
384
|
```
|
385
385
|
file = Files::File.find(path)
|
data/docs/file_action.md
CHANGED
@@ -10,4 +10,4 @@
|
|
10
10
|
```
|
11
11
|
|
12
12
|
* `status` (string): Status of file operation.
|
13
|
-
* `file_migration_id` (int64): If status is pending, this is the id of the
|
13
|
+
* `file_migration_id` (int64): If status is pending, this is the id of the File Migration to check for status updates.
|
data/docs/sftp_host_key.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
}
|
12
12
|
```
|
13
13
|
|
14
|
-
* `id` (int64):
|
14
|
+
* `id` (int64): SFTP Host Key ID
|
15
15
|
* `name` (string): The friendly name of this SFTP Host Key.
|
16
16
|
* `fingerprint_md5` (string): MD5 Fingerpint of the public key
|
17
17
|
* `fingerprint_sha256` (string): SHA256 Fingerpint of the public key
|
@@ -1029,7 +1029,7 @@ module Files
|
|
1029
1029
|
Api.send_request("/file_actions/move/#{@attributes[:path]}", :post, params, @options)
|
1030
1030
|
end
|
1031
1031
|
|
1032
|
-
# Begin
|
1032
|
+
# Begin File Upload
|
1033
1033
|
#
|
1034
1034
|
# Parameters:
|
1035
1035
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
@@ -1204,7 +1204,7 @@ module Files
|
|
1204
1204
|
FileAction.new(response.data, options)
|
1205
1205
|
end
|
1206
1206
|
|
1207
|
-
# Begin
|
1207
|
+
# Begin File Upload
|
1208
1208
|
#
|
1209
1209
|
# Parameters:
|
1210
1210
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
@@ -14,7 +14,7 @@ module Files
|
|
14
14
|
@attributes[:status]
|
15
15
|
end
|
16
16
|
|
17
|
-
# int64 - If status is pending, this is the id of the
|
17
|
+
# int64 - If status is pending, this is the id of the File Migration to check for status updates.
|
18
18
|
def file_migration_id
|
19
19
|
@attributes[:file_migration_id]
|
20
20
|
end
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
@@ -36,7 +36,6 @@ require "files.com/models/account_line_item"
|
|
36
36
|
require "files.com/models/action"
|
37
37
|
require "files.com/models/action_notification_export"
|
38
38
|
require "files.com/models/action_notification_export_result"
|
39
|
-
require "files.com/models/action_webhook_failure"
|
40
39
|
require "files.com/models/api_key"
|
41
40
|
require "files.com/models/api_request_log"
|
42
41
|
require "files.com/models/app"
|
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.
|
4
|
+
version: 1.1.112
|
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-08-
|
11
|
+
date: 2024-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -118,7 +118,6 @@ files:
|
|
118
118
|
- docs/action.md
|
119
119
|
- docs/action_notification_export.md
|
120
120
|
- docs/action_notification_export_result.md
|
121
|
-
- docs/action_webhook_failure.md
|
122
121
|
- docs/api_key.md
|
123
122
|
- docs/api_request_log.md
|
124
123
|
- docs/app.md
|
@@ -220,7 +219,6 @@ files:
|
|
220
219
|
- lib/files.com/models/action.rb
|
221
220
|
- lib/files.com/models/action_notification_export.rb
|
222
221
|
- lib/files.com/models/action_notification_export_result.rb
|
223
|
-
- lib/files.com/models/action_webhook_failure.rb
|
224
222
|
- lib/files.com/models/api_key.rb
|
225
223
|
- lib/files.com/models/api_request_log.rb
|
226
224
|
- lib/files.com/models/app.rb
|
@@ -1,28 +0,0 @@
|
|
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.new
|
22
|
-
|
23
|
-
action_webhook_failure.retry
|
24
|
-
```
|
25
|
-
|
26
|
-
### Parameters
|
27
|
-
|
28
|
-
* `id` (int64): Required - Action Webhook Failure ID.
|
@@ -1,34 +0,0 @@
|
|
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[:id] and !params[:id].is_a?(Integer)
|
18
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[: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[:id] and !params[:id].is_a?(Integer)
|
28
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
29
|
-
|
30
|
-
Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
|
31
|
-
nil
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|