files.com 1.0.182 → 1.0.186

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e075ac53f4e6168ab7f7344bc46638ca88fbf5cc175b599832fc721511d9a441
4
- data.tar.gz: c5a4ef80a09077c19ce44f371a8562576b1cd2a6204acaccd1076c6f54c3620a
3
+ metadata.gz: dd6b8cb725740fa166bbc1ce206311927d47ff2b8e31646f2d8f42f0c2cbceb9
4
+ data.tar.gz: 72b86fe34d261f24fd19893434d5876fb2f556d11968cf617ec51a5d948acced
5
5
  SHA512:
6
- metadata.gz: da69ba3af21444e628a5daaaa89ceb05628f3f245cf4f07474629c9451e077128705857e4c8aff3a7aeaf2deb9d3549086ea472dac2bd92367466036e7d2d1f0
7
- data.tar.gz: a94b7ad26a242d308818e494aa02fb9356347311254618a2fa5889f4d83fc4f5072d6569fc76a7a83024d999cd051df0b53dacfc53a2765ab4b9b0701bfec57d
6
+ metadata.gz: 8c58e5414b8d30902338b6d2e0f6419ba591190d48bf34344718170a7155191f0b4e6aa4655683219b78e8c900e1f008993dddd94dc276c855c528439b013ae2
7
+ data.tar.gz: '0887f3a898073aeb880648cde030f192056660213bfce7f725cc31927b7b4a95b803b48dff42b7cfa3524373167094fd36850ca142a42454a2dbfbc8ce7ab542'
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.182
1
+ 1.0.186
@@ -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 `status`.
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 `status`.
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 `status`.
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 `status`.
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 `status`.
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 `status`.
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 `status`.
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
  ---
@@ -0,0 +1,38 @@
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.
data/lib/files.com.rb CHANGED
@@ -51,6 +51,7 @@ 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"
54
55
  require "files.com/models/file_upload_part"
55
56
  require "files.com/models/folder"
56
57
  require "files.com/models/form_field"
@@ -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 `status`.
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 `status`.
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 `status`.
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 `status`.
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 `status`.
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 `status`.
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 `status`.
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)
@@ -0,0 +1,68 @@
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
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.182
4
+ version: 1.0.186
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-19 00:00:00.000000000 Z
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -110,6 +110,7 @@ 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
113
114
  - docs/file_upload_part.md
114
115
  - docs/file_utils.md
115
116
  - docs/folder.md
@@ -186,6 +187,7 @@ files:
186
187
  - lib/files.com/models/file_action.rb
187
188
  - lib/files.com/models/file_comment.rb
188
189
  - lib/files.com/models/file_comment_reaction.rb
190
+ - lib/files.com/models/file_migration.rb
189
191
  - lib/files.com/models/file_upload_part.rb
190
192
  - lib/files.com/models/file_utils.rb
191
193
  - lib/files.com/models/folder.rb