files.com 1.0.184 → 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/lib/files.com.rb +0 -1
- metadata +1 -3
- data/docs/file_migration.md +0 -38
- data/lib/files.com/models/file_migration.rb +0 -68
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
|
data/lib/files.com.rb
CHANGED
|
@@ -51,7 +51,6 @@ require "files.com/models/file"
|
|
|
51
51
|
require "files.com/models/file_action"
|
|
52
52
|
require "files.com/models/file_comment"
|
|
53
53
|
require "files.com/models/file_comment_reaction"
|
|
54
|
-
require "files.com/models/file_migration"
|
|
55
54
|
require "files.com/models/file_upload_part"
|
|
56
55
|
require "files.com/models/folder"
|
|
57
56
|
require "files.com/models/form_field"
|
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.0.
|
|
4
|
+
version: 1.0.185
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
@@ -110,7 +110,6 @@ files:
|
|
|
110
110
|
- docs/file_action.md
|
|
111
111
|
- docs/file_comment.md
|
|
112
112
|
- docs/file_comment_reaction.md
|
|
113
|
-
- docs/file_migration.md
|
|
114
113
|
- docs/file_upload_part.md
|
|
115
114
|
- docs/file_utils.md
|
|
116
115
|
- docs/folder.md
|
|
@@ -187,7 +186,6 @@ files:
|
|
|
187
186
|
- lib/files.com/models/file_action.rb
|
|
188
187
|
- lib/files.com/models/file_comment.rb
|
|
189
188
|
- lib/files.com/models/file_comment_reaction.rb
|
|
190
|
-
- lib/files.com/models/file_migration.rb
|
|
191
189
|
- lib/files.com/models/file_upload_part.rb
|
|
192
190
|
- lib/files.com/models/file_utils.rb
|
|
193
191
|
- lib/files.com/models/folder.rb
|
data/docs/file_migration.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# FileMigration
|
|
2
|
-
|
|
3
|
-
## Example FileMigration Object
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
{
|
|
7
|
-
"id": 1,
|
|
8
|
-
"path": "MyFolder",
|
|
9
|
-
"dest_path": "MyFolder",
|
|
10
|
-
"files_moved": 1,
|
|
11
|
-
"files_total": 1,
|
|
12
|
-
"operation": "move",
|
|
13
|
-
"region": "USA",
|
|
14
|
-
"status": "complete"
|
|
15
|
-
}
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
* `id` (int64): File migration ID
|
|
19
|
-
* `path` (string): Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
20
|
-
* `dest_path` (string): Destination path
|
|
21
|
-
* `files_moved` (int64): Number of files processed
|
|
22
|
-
* `files_total` (int64): Total number of files to process
|
|
23
|
-
* `operation` (string): The type of operation
|
|
24
|
-
* `region` (string): Region
|
|
25
|
-
* `status` (string): Status
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Show File Migration
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
Files::FileMigration.find(id)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Parameters
|
|
37
|
-
|
|
38
|
-
* `id` (int64): Required - File Migration ID.
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class FileMigration
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - File migration ID
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
18
|
-
def path
|
|
19
|
-
@attributes[:path]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - Destination path
|
|
23
|
-
def dest_path
|
|
24
|
-
@attributes[:dest_path]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# int64 - Number of files processed
|
|
28
|
-
def files_moved
|
|
29
|
-
@attributes[:files_moved]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# int64 - Total number of files to process
|
|
33
|
-
def files_total
|
|
34
|
-
@attributes[:files_total]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# string - The type of operation
|
|
38
|
-
def operation
|
|
39
|
-
@attributes[:operation]
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# string - Region
|
|
43
|
-
def region
|
|
44
|
-
@attributes[:region]
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# string - Status
|
|
48
|
-
def status
|
|
49
|
-
@attributes[:status]
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Parameters:
|
|
53
|
-
# id (required) - int64 - File Migration ID.
|
|
54
|
-
def self.find(id, params = {}, options = {})
|
|
55
|
-
params ||= {}
|
|
56
|
-
params[:id] = id
|
|
57
|
-
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
|
58
|
-
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
59
|
-
|
|
60
|
-
response, options = Api.send_request("/file_migrations/#{params[:id]}", :get, params, options)
|
|
61
|
-
FileMigration.new(response.data, options)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def self.get(id, params = {}, options = {})
|
|
65
|
-
find(id, params, options)
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|