files.com 1.1.77 → 1.1.78

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebc7eefeb182f541e0a4782916cc636d087328078752cde7846cefeccd7b8ec0
4
- data.tar.gz: 710d3fad1085fcccafe1ea56b119f2e74e3a4fbd536e38ecc10ad2ac58adbe19
3
+ metadata.gz: 79ec4f7fc4d8091ac92dda83aea7c4724c89ad10ab0eeac34775e0d9232cb9ad
4
+ data.tar.gz: a43e8c690405f9ec0c73d16955534382f4e7e7639ea046bab88e6e9b912fd4c4
5
5
  SHA512:
6
- metadata.gz: b7140ea92b2799016f89b4a8d22663c78cbd629d262472cbe50044263d9f1b36dd2b7f3f9d8c4070ad86ed6e88399ff39f72ee1995acba5598ee6838210c8642
7
- data.tar.gz: 5295ab00bd74c694dbefc8d637617f99ef5bc5a9399a63a95795f6f9cc4f2a673fe0e0b97e8cddcc41770cc1791106fe39133a14811d884ba70c73d8cf3257d2
6
+ metadata.gz: d5242a5ac7d6b06f9d59de50d3d38585bd70ff3ac742f9a61f0cb06c7b6de1791b6478c33038e90fe8d4e7c902ea5c09c9fe00b2a5a45ea22a6d8ddeaa732e52
7
+ data.tar.gz: 1cbb0b88fa1d4c206515af83d674bf954496446a69ca9476980593aacb2f1199d15adec081be5c3b8e092b5574b2e8d7608840e22dfec8da53a95128b45a507f
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.77
1
+ 1.1.78
data/docs/file.md CHANGED
@@ -8,10 +8,27 @@ may places where a Ruby File object can be used.
8
8
  ```
9
9
  {
10
10
  "path": "path/file.txt",
11
+ "created_by_id": 1,
12
+ "created_by_api_key_id": 1,
13
+ "created_by_as2_incoming_message_id": 1,
14
+ "created_by_automation_id": 1,
15
+ "created_by_bundle_registration_id": 1,
16
+ "created_by_inbox_id": 1,
17
+ "created_by_remote_server_id": 1,
18
+ "created_by_remote_server_sync_id": 1,
19
+ "custom_metadata": {
20
+ "key": "value"
21
+ },
11
22
  "display_name": "file.txt",
12
23
  "type": "file",
13
24
  "size": 1024,
14
25
  "created_at": "2000-01-01T01:00:00Z",
26
+ "last_modified_by_id": 1,
27
+ "last_modified_by_api_key_id": 1,
28
+ "last_modified_by_automation_id": 1,
29
+ "last_modified_by_bundle_registration_id": 1,
30
+ "last_modified_by_remote_server_id": 1,
31
+ "last_modified_by_remote_server_sync_id": 1,
15
32
  "mtime": "2000-01-01T01:00:00Z",
16
33
  "provided_mtime": "2000-01-01T01:00:00Z",
17
34
  "crc32": "70976923",
@@ -35,10 +52,25 @@ may places where a Ruby File object can be used.
35
52
  ```
36
53
 
37
54
  * `path` (string): File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
55
+ * `created_by_id` (int64): User ID of the User who created the file/folder
56
+ * `created_by_api_key_id` (int64): ID of the API key that created the file/folder
57
+ * `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
58
+ * `created_by_automation_id` (int64): ID of the Automation that created the file/folder
59
+ * `created_by_bundle_registration_id` (int64): ID of the Bundle Registration that created the file/folder
60
+ * `created_by_inbox_id` (int64): ID of the Inbox that created the file/folder
61
+ * `created_by_remote_server_id` (int64): ID of the Remote Server that created the file/folder
62
+ * `created_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that created the file/folder
63
+ * `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
38
64
  * `display_name` (string): File/Folder display name
39
65
  * `type` (string): Type: `directory` or `file`.
40
66
  * `size` (int64): File/Folder size
41
67
  * `created_at` (date-time): File created date/time
68
+ * `last_modified_by_id` (int64): User ID of the User who last modified the file/folder
69
+ * `last_modified_by_api_key_id` (int64): ID of the API key that last modified the file/folder
70
+ * `last_modified_by_automation_id` (int64): ID of the Automation that last modified the file/folder
71
+ * `last_modified_by_bundle_registration_id` (int64): ID of the Bundle Registration that last modified the file/folder
72
+ * `last_modified_by_remote_server_id` (int64): ID of the Remote Server that last modified the file/folder
73
+ * `last_modified_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that last modified the file/folder
42
74
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
43
75
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
44
76
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
@@ -124,6 +156,7 @@ Files::File.create(path,
124
156
 
125
157
  ```
126
158
  Files::File.update(path,
159
+ custom_metadata: {"key":"value"},
127
160
  provided_mtime: "2000-01-01T01:00:00Z",
128
161
  priority_color: "red"
129
162
  )
@@ -132,6 +165,7 @@ Files::File.update(path,
132
165
  ### Parameters
133
166
 
134
167
  * `path` (string): Required - Path to operate on.
168
+ * `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
135
169
  * `provided_mtime` (string): Modified time of file.
136
170
  * `priority_color` (string): Priority/Bookmark color of file.
137
171
 
@@ -267,6 +301,7 @@ file.download(
267
301
  file = Files::File.new
268
302
 
269
303
  file.update(
304
+ custom_metadata: {"key":"value"},
270
305
  provided_mtime: "2000-01-01T01:00:00Z",
271
306
  priority_color: "red"
272
307
  )
@@ -275,6 +310,7 @@ file.update(
275
310
  ### Parameters
276
311
 
277
312
  * `path` (string): Required - Path to operate on.
313
+ * `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
278
314
  * `provided_mtime` (string): Modified time of file.
279
315
  * `priority_color` (string): Priority/Bookmark color of file.
280
316
 
data/docs/folder.md CHANGED
@@ -10,10 +10,27 @@ Files::Dir is an alias of Files::Folder
10
10
  ```
11
11
  {
12
12
  "path": "path/file.txt",
13
+ "created_by_id": 1,
14
+ "created_by_api_key_id": 1,
15
+ "created_by_as2_incoming_message_id": 1,
16
+ "created_by_automation_id": 1,
17
+ "created_by_bundle_registration_id": 1,
18
+ "created_by_inbox_id": 1,
19
+ "created_by_remote_server_id": 1,
20
+ "created_by_remote_server_sync_id": 1,
21
+ "custom_metadata": {
22
+ "key": "value"
23
+ },
13
24
  "display_name": "file.txt",
14
25
  "type": "file",
15
26
  "size": 1024,
16
27
  "created_at": "2000-01-01T01:00:00Z",
28
+ "last_modified_by_id": 1,
29
+ "last_modified_by_api_key_id": 1,
30
+ "last_modified_by_automation_id": 1,
31
+ "last_modified_by_bundle_registration_id": 1,
32
+ "last_modified_by_remote_server_id": 1,
33
+ "last_modified_by_remote_server_sync_id": 1,
17
34
  "mtime": "2000-01-01T01:00:00Z",
18
35
  "provided_mtime": "2000-01-01T01:00:00Z",
19
36
  "crc32": "70976923",
@@ -37,10 +54,25 @@ Files::Dir is an alias of Files::Folder
37
54
  ```
38
55
 
39
56
  * `path` (string): File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
57
+ * `created_by_id` (int64): User ID of the User who created the file/folder
58
+ * `created_by_api_key_id` (int64): ID of the API key that created the file/folder
59
+ * `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
60
+ * `created_by_automation_id` (int64): ID of the Automation that created the file/folder
61
+ * `created_by_bundle_registration_id` (int64): ID of the Bundle Registration that created the file/folder
62
+ * `created_by_inbox_id` (int64): ID of the Inbox that created the file/folder
63
+ * `created_by_remote_server_id` (int64): ID of the Remote Server that created the file/folder
64
+ * `created_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that created the file/folder
65
+ * `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
40
66
  * `display_name` (string): File/Folder display name
41
67
  * `type` (string): Type: `directory` or `file`.
42
68
  * `size` (int64): File/Folder size
43
69
  * `created_at` (date-time): File created date/time
70
+ * `last_modified_by_id` (int64): User ID of the User who last modified the file/folder
71
+ * `last_modified_by_api_key_id` (int64): ID of the API key that last modified the file/folder
72
+ * `last_modified_by_automation_id` (int64): ID of the Automation that last modified the file/folder
73
+ * `last_modified_by_bundle_registration_id` (int64): ID of the Bundle Registration that last modified the file/folder
74
+ * `last_modified_by_remote_server_id` (int64): ID of the Remote Server that last modified the file/folder
75
+ * `last_modified_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that last modified the file/folder
44
76
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
45
77
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
46
78
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
@@ -574,6 +574,87 @@ module Files
574
574
  @attributes[:path] = value
575
575
  end
576
576
 
577
+ # int64 - User ID of the User who created the file/folder
578
+ def created_by_id
579
+ @attributes[:created_by_id]
580
+ end
581
+
582
+ def created_by_id=(value)
583
+ @attributes[:created_by_id] = value
584
+ end
585
+
586
+ # int64 - ID of the API key that created the file/folder
587
+ def created_by_api_key_id
588
+ @attributes[:created_by_api_key_id]
589
+ end
590
+
591
+ def created_by_api_key_id=(value)
592
+ @attributes[:created_by_api_key_id] = value
593
+ end
594
+
595
+ # int64 - ID of the AS2 Incoming Message that created the file/folder
596
+ def created_by_as2_incoming_message_id
597
+ @attributes[:created_by_as2_incoming_message_id]
598
+ end
599
+
600
+ def created_by_as2_incoming_message_id=(value)
601
+ @attributes[:created_by_as2_incoming_message_id] = value
602
+ end
603
+
604
+ # int64 - ID of the Automation that created the file/folder
605
+ def created_by_automation_id
606
+ @attributes[:created_by_automation_id]
607
+ end
608
+
609
+ def created_by_automation_id=(value)
610
+ @attributes[:created_by_automation_id] = value
611
+ end
612
+
613
+ # int64 - ID of the Bundle Registration that created the file/folder
614
+ def created_by_bundle_registration_id
615
+ @attributes[:created_by_bundle_registration_id]
616
+ end
617
+
618
+ def created_by_bundle_registration_id=(value)
619
+ @attributes[:created_by_bundle_registration_id] = value
620
+ end
621
+
622
+ # int64 - ID of the Inbox that created the file/folder
623
+ def created_by_inbox_id
624
+ @attributes[:created_by_inbox_id]
625
+ end
626
+
627
+ def created_by_inbox_id=(value)
628
+ @attributes[:created_by_inbox_id] = value
629
+ end
630
+
631
+ # int64 - ID of the Remote Server that created the file/folder
632
+ def created_by_remote_server_id
633
+ @attributes[:created_by_remote_server_id]
634
+ end
635
+
636
+ def created_by_remote_server_id=(value)
637
+ @attributes[:created_by_remote_server_id] = value
638
+ end
639
+
640
+ # int64 - ID of the Remote Server Sync that created the file/folder
641
+ def created_by_remote_server_sync_id
642
+ @attributes[:created_by_remote_server_sync_id]
643
+ end
644
+
645
+ def created_by_remote_server_sync_id=(value)
646
+ @attributes[:created_by_remote_server_sync_id] = value
647
+ end
648
+
649
+ # object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
650
+ def custom_metadata
651
+ @attributes[:custom_metadata]
652
+ end
653
+
654
+ def custom_metadata=(value)
655
+ @attributes[:custom_metadata] = value
656
+ end
657
+
577
658
  # string - File/Folder display name
578
659
  def display_name
579
660
  @attributes[:display_name]
@@ -606,6 +687,60 @@ module Files
606
687
  @attributes[:created_at]
607
688
  end
608
689
 
690
+ # int64 - User ID of the User who last modified the file/folder
691
+ def last_modified_by_id
692
+ @attributes[:last_modified_by_id]
693
+ end
694
+
695
+ def last_modified_by_id=(value)
696
+ @attributes[:last_modified_by_id] = value
697
+ end
698
+
699
+ # int64 - ID of the API key that last modified the file/folder
700
+ def last_modified_by_api_key_id
701
+ @attributes[:last_modified_by_api_key_id]
702
+ end
703
+
704
+ def last_modified_by_api_key_id=(value)
705
+ @attributes[:last_modified_by_api_key_id] = value
706
+ end
707
+
708
+ # int64 - ID of the Automation that last modified the file/folder
709
+ def last_modified_by_automation_id
710
+ @attributes[:last_modified_by_automation_id]
711
+ end
712
+
713
+ def last_modified_by_automation_id=(value)
714
+ @attributes[:last_modified_by_automation_id] = value
715
+ end
716
+
717
+ # int64 - ID of the Bundle Registration that last modified the file/folder
718
+ def last_modified_by_bundle_registration_id
719
+ @attributes[:last_modified_by_bundle_registration_id]
720
+ end
721
+
722
+ def last_modified_by_bundle_registration_id=(value)
723
+ @attributes[:last_modified_by_bundle_registration_id] = value
724
+ end
725
+
726
+ # int64 - ID of the Remote Server that last modified the file/folder
727
+ def last_modified_by_remote_server_id
728
+ @attributes[:last_modified_by_remote_server_id]
729
+ end
730
+
731
+ def last_modified_by_remote_server_id=(value)
732
+ @attributes[:last_modified_by_remote_server_id] = value
733
+ end
734
+
735
+ # int64 - ID of the Remote Server Sync that last modified the file/folder
736
+ def last_modified_by_remote_server_sync_id
737
+ @attributes[:last_modified_by_remote_server_sync_id]
738
+ end
739
+
740
+ def last_modified_by_remote_server_sync_id=(value)
741
+ @attributes[:last_modified_by_remote_server_sync_id] = value
742
+ end
743
+
609
744
  # date-time - File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
610
745
  def mtime
611
746
  @attributes[:mtime]
@@ -824,6 +959,7 @@ module Files
824
959
  end
825
960
 
826
961
  # Parameters:
962
+ # custom_metadata - object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
827
963
  # provided_mtime - string - Modified time of file.
828
964
  # priority_color - string - Priority/Bookmark color of file.
829
965
  def update(params = {})
@@ -975,12 +1111,14 @@ module Files
975
1111
  end
976
1112
 
977
1113
  # Parameters:
1114
+ # custom_metadata - object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
978
1115
  # provided_mtime - string - Modified time of file.
979
1116
  # priority_color - string - Priority/Bookmark color of file.
980
1117
  def self.update(path, params = {}, options = {})
981
1118
  params ||= {}
982
1119
  params[:path] = path
983
1120
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
1121
+ raise InvalidParameterError.new("Bad parameter: custom_metadata must be an Hash") if params[:custom_metadata] and !params[:custom_metadata].is_a?(Hash)
984
1122
  raise InvalidParameterError.new("Bad parameter: provided_mtime must be an String") if params[:provided_mtime] and !params[:provided_mtime].is_a?(String)
985
1123
  raise InvalidParameterError.new("Bad parameter: priority_color must be an String") if params[:priority_color] and !params[:priority_color].is_a?(String)
986
1124
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
@@ -159,6 +159,87 @@ module Files
159
159
  @attributes[:path] = value
160
160
  end
161
161
 
162
+ # int64 - User ID of the User who created the file/folder
163
+ def created_by_id
164
+ @attributes[:created_by_id]
165
+ end
166
+
167
+ def created_by_id=(value)
168
+ @attributes[:created_by_id] = value
169
+ end
170
+
171
+ # int64 - ID of the API key that created the file/folder
172
+ def created_by_api_key_id
173
+ @attributes[:created_by_api_key_id]
174
+ end
175
+
176
+ def created_by_api_key_id=(value)
177
+ @attributes[:created_by_api_key_id] = value
178
+ end
179
+
180
+ # int64 - ID of the AS2 Incoming Message that created the file/folder
181
+ def created_by_as2_incoming_message_id
182
+ @attributes[:created_by_as2_incoming_message_id]
183
+ end
184
+
185
+ def created_by_as2_incoming_message_id=(value)
186
+ @attributes[:created_by_as2_incoming_message_id] = value
187
+ end
188
+
189
+ # int64 - ID of the Automation that created the file/folder
190
+ def created_by_automation_id
191
+ @attributes[:created_by_automation_id]
192
+ end
193
+
194
+ def created_by_automation_id=(value)
195
+ @attributes[:created_by_automation_id] = value
196
+ end
197
+
198
+ # int64 - ID of the Bundle Registration that created the file/folder
199
+ def created_by_bundle_registration_id
200
+ @attributes[:created_by_bundle_registration_id]
201
+ end
202
+
203
+ def created_by_bundle_registration_id=(value)
204
+ @attributes[:created_by_bundle_registration_id] = value
205
+ end
206
+
207
+ # int64 - ID of the Inbox that created the file/folder
208
+ def created_by_inbox_id
209
+ @attributes[:created_by_inbox_id]
210
+ end
211
+
212
+ def created_by_inbox_id=(value)
213
+ @attributes[:created_by_inbox_id] = value
214
+ end
215
+
216
+ # int64 - ID of the Remote Server that created the file/folder
217
+ def created_by_remote_server_id
218
+ @attributes[:created_by_remote_server_id]
219
+ end
220
+
221
+ def created_by_remote_server_id=(value)
222
+ @attributes[:created_by_remote_server_id] = value
223
+ end
224
+
225
+ # int64 - ID of the Remote Server Sync that created the file/folder
226
+ def created_by_remote_server_sync_id
227
+ @attributes[:created_by_remote_server_sync_id]
228
+ end
229
+
230
+ def created_by_remote_server_sync_id=(value)
231
+ @attributes[:created_by_remote_server_sync_id] = value
232
+ end
233
+
234
+ # object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
235
+ def custom_metadata
236
+ @attributes[:custom_metadata]
237
+ end
238
+
239
+ def custom_metadata=(value)
240
+ @attributes[:custom_metadata] = value
241
+ end
242
+
162
243
  # string - File/Folder display name
163
244
  def display_name
164
245
  @attributes[:display_name]
@@ -191,6 +272,60 @@ module Files
191
272
  @attributes[:created_at]
192
273
  end
193
274
 
275
+ # int64 - User ID of the User who last modified the file/folder
276
+ def last_modified_by_id
277
+ @attributes[:last_modified_by_id]
278
+ end
279
+
280
+ def last_modified_by_id=(value)
281
+ @attributes[:last_modified_by_id] = value
282
+ end
283
+
284
+ # int64 - ID of the API key that last modified the file/folder
285
+ def last_modified_by_api_key_id
286
+ @attributes[:last_modified_by_api_key_id]
287
+ end
288
+
289
+ def last_modified_by_api_key_id=(value)
290
+ @attributes[:last_modified_by_api_key_id] = value
291
+ end
292
+
293
+ # int64 - ID of the Automation that last modified the file/folder
294
+ def last_modified_by_automation_id
295
+ @attributes[:last_modified_by_automation_id]
296
+ end
297
+
298
+ def last_modified_by_automation_id=(value)
299
+ @attributes[:last_modified_by_automation_id] = value
300
+ end
301
+
302
+ # int64 - ID of the Bundle Registration that last modified the file/folder
303
+ def last_modified_by_bundle_registration_id
304
+ @attributes[:last_modified_by_bundle_registration_id]
305
+ end
306
+
307
+ def last_modified_by_bundle_registration_id=(value)
308
+ @attributes[:last_modified_by_bundle_registration_id] = value
309
+ end
310
+
311
+ # int64 - ID of the Remote Server that last modified the file/folder
312
+ def last_modified_by_remote_server_id
313
+ @attributes[:last_modified_by_remote_server_id]
314
+ end
315
+
316
+ def last_modified_by_remote_server_id=(value)
317
+ @attributes[:last_modified_by_remote_server_id] = value
318
+ end
319
+
320
+ # int64 - ID of the Remote Server Sync that last modified the file/folder
321
+ def last_modified_by_remote_server_sync_id
322
+ @attributes[:last_modified_by_remote_server_sync_id]
323
+ end
324
+
325
+ def last_modified_by_remote_server_sync_id=(value)
326
+ @attributes[:last_modified_by_remote_server_sync_id] = value
327
+ end
328
+
194
329
  # date-time - File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
195
330
  def mtime
196
331
  @attributes[:mtime]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.77"
4
+ VERSION = "1.1.78"
5
5
  end
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.1.77
4
+ version: 1.1.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com