aspera-cli 4.24.1 → 4.24.2

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.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +15 -2
  4. data/README.md +745 -436
  5. data/bin/ascli +20 -1
  6. data/bin/asession +23 -27
  7. data/lib/aspera/agent/base.rb +10 -21
  8. data/lib/aspera/agent/connect.rb +2 -3
  9. data/lib/aspera/agent/desktop.rb +2 -2
  10. data/lib/aspera/agent/direct.rb +49 -32
  11. data/lib/aspera/agent/factory.rb +31 -0
  12. data/lib/aspera/api/aoc.rb +79 -49
  13. data/lib/aspera/api/faspex.rb +212 -0
  14. data/lib/aspera/api/node.rb +99 -84
  15. data/lib/aspera/ascp/installation.rb +22 -21
  16. data/lib/aspera/ascp/management.rb +119 -23
  17. data/lib/aspera/assert.rb +14 -8
  18. data/lib/aspera/cli/extended_value.rb +15 -15
  19. data/lib/aspera/cli/formatter.rb +7 -5
  20. data/lib/aspera/cli/hints.rb +8 -0
  21. data/lib/aspera/cli/info.rb +4 -4
  22. data/lib/aspera/cli/main.rb +55 -70
  23. data/lib/aspera/cli/manager.rb +7 -4
  24. data/lib/aspera/cli/plugins/alee.rb +2 -1
  25. data/lib/aspera/cli/plugins/aoc.rb +110 -186
  26. data/lib/aspera/cli/plugins/ats.rb +4 -4
  27. data/lib/aspera/cli/plugins/base.rb +335 -0
  28. data/lib/aspera/cli/plugins/basic_auth.rb +45 -0
  29. data/lib/aspera/cli/plugins/config.rb +249 -220
  30. data/lib/aspera/cli/plugins/console.rb +15 -15
  31. data/lib/aspera/cli/plugins/cos.rb +2 -2
  32. data/lib/aspera/cli/plugins/factory.rb +78 -0
  33. data/lib/aspera/cli/plugins/faspex.rb +17 -20
  34. data/lib/aspera/cli/plugins/faspex5.rb +79 -193
  35. data/lib/aspera/cli/plugins/faspio.rb +14 -13
  36. data/lib/aspera/cli/plugins/httpgw.rb +13 -12
  37. data/lib/aspera/cli/plugins/node.rb +34 -32
  38. data/lib/aspera/cli/plugins/oauth.rb +48 -0
  39. data/lib/aspera/cli/plugins/orchestrator.rb +15 -13
  40. data/lib/aspera/cli/plugins/preview.rb +4 -4
  41. data/lib/aspera/cli/plugins/server.rb +15 -13
  42. data/lib/aspera/cli/plugins/shares.rb +18 -15
  43. data/lib/aspera/cli/sync_actions.rb +1 -1
  44. data/lib/aspera/cli/transfer_agent.rb +24 -20
  45. data/lib/aspera/cli/transfer_progress.rb +6 -6
  46. data/lib/aspera/cli/version.rb +3 -3
  47. data/lib/aspera/cli/wizard.rb +65 -53
  48. data/lib/aspera/colors.rb +6 -0
  49. data/lib/aspera/command_line_builder.rb +45 -50
  50. data/lib/aspera/command_line_converter.rb +2 -1
  51. data/lib/aspera/coverage.rb +1 -1
  52. data/lib/aspera/data_repository.rb +1 -1
  53. data/lib/aspera/environment.rb +10 -7
  54. data/lib/aspera/faspex_gw.rb +6 -4
  55. data/lib/aspera/faspex_postproc.rb +1 -1
  56. data/lib/aspera/keychain/macos_security.rb +1 -1
  57. data/lib/aspera/log.rb +37 -9
  58. data/lib/aspera/nagios.rb +1 -1
  59. data/lib/aspera/oauth/base.rb +17 -10
  60. data/lib/aspera/oauth/factory.rb +8 -8
  61. data/lib/aspera/oauth/web.rb +2 -2
  62. data/lib/aspera/products/connect.rb +4 -3
  63. data/lib/aspera/products/desktop.rb +1 -4
  64. data/lib/aspera/products/other.rb +9 -1
  65. data/lib/aspera/products/transferd.rb +0 -1
  66. data/lib/aspera/rest.rb +126 -83
  67. data/lib/aspera/ssh.rb +3 -3
  68. data/lib/aspera/sync/args.schema.yaml +46 -3
  69. data/lib/aspera/sync/conf.schema.yaml +130 -94
  70. data/lib/aspera/sync/operations.rb +16 -16
  71. data/lib/aspera/temp_file_manager.rb +17 -5
  72. data/lib/aspera/transfer/error.rb +16 -7
  73. data/lib/aspera/transfer/parameters.rb +34 -20
  74. data/lib/aspera/transfer/resumer.rb +74 -0
  75. data/lib/aspera/transfer/spec.rb +4 -3
  76. data/lib/aspera/transfer/spec.schema.yaml +132 -51
  77. data/lib/aspera/transfer/spec_doc.rb +41 -35
  78. data/lib/aspera/uri_reader.rb +1 -1
  79. data/lib/aspera/web_auth.rb +6 -6
  80. data.tar.gz.sig +0 -0
  81. metadata +9 -7
  82. metadata.gz.sig +0 -0
  83. data/lib/aspera/cli/basic_auth_plugin.rb +0 -43
  84. data/lib/aspera/cli/plugin.rb +0 -333
  85. data/lib/aspera/cli/plugin_factory.rb +0 -81
  86. data/lib/aspera/resumer.rb +0 -77
  87. data/lib/aspera/transfer/error_info.rb +0 -91
@@ -1,6 +1,12 @@
1
1
  $schema: http://json-schema.org/draft-04/schema#
2
+ title: Aspera Sync job description (conf)
3
+ description: Async session description, identical to `asyncs` Node API.
2
4
  $comment: >-
3
5
  This is a YAML version of the original JSON schema from asyncs API.
6
+ It is modified with special `x-` fields.
7
+ x-ts-name [Bool,String] `true` if same name in transfer spec, else real name in transfer spec
8
+ x-ts-convert [String] Name of methods to convert value from transfer spec to `conf`
9
+ `x-` fields are also documented in `command_line_builder.rb`
4
10
  type: object
5
11
  required:
6
12
  - name
@@ -8,15 +14,17 @@ required:
8
14
  - remote
9
15
  properties:
10
16
  ascp_dir:
11
- description: Directory containing ascp executable to use
17
+ description: Directory containing ascp executable to use.
12
18
  type: string
13
19
  default: ""
14
20
  assume_no_mods:
15
- description: Assume that the directory structure has not been modified
21
+ description: Assume that the directory structure has not been modified.
16
22
  type: boolean
17
23
  default: false
24
+ x-cli-option: true
18
25
  checksum:
19
- description: Use the specified checksum type. Default is none on cloud storage
26
+ description: Use the specified checksum type. Default is none on cloud storage.
27
+ type: string
20
28
  enum:
21
29
  - sha1
22
30
  - md5
@@ -31,11 +39,11 @@ properties:
31
39
  type: boolean
32
40
  default: false
33
41
  store_metadata_records:
34
- description: Store the acls or xattrs in the snapshot database
42
+ description: Store the acls or xattrs in the snapshot database.
35
43
  type: boolean
36
44
  default: false
37
45
  cookie:
38
- description: User-defined identification string
46
+ description: User-defined identification string.
39
47
  type: string
40
48
  default: ""
41
49
  cooloff_max_seconds:
@@ -44,29 +52,32 @@ properties:
44
52
  skipping synchronization of the file. 0 for disabled
45
53
  type: integer
46
54
  default: 0
55
+ x-cli-option: --cooloff-max
47
56
  cooloff_seconds:
48
57
  description: Delay the start of the transfer to confirm that the content is not changing.
49
58
  Value must be between 0 and 60
50
59
  type: integer
51
60
  default: 3
61
+ x-cli-option: --cooloff
52
62
  create_dir:
53
- description: Create the source directory, target directory, or both, if they do not exist
63
+ description: Create the source directory, target directory, or both, if they do not exist.
54
64
  type: boolean
55
65
  default: false
56
66
  db_cache_size:
57
- description: Specify DB cache size
67
+ description: Specify DB cache size.
58
68
  type: integer
59
69
  default: 16000
60
70
  db_journal_off:
61
- description: Turn off DB journal
71
+ description: Turn off DB journal.
62
72
  type: boolean
63
73
  default: false
64
74
  db_sync_on:
65
- description: Enable synchronous write in DB
75
+ description: Enable synchronous write in DB.
66
76
  type: boolean
67
77
  default: false
68
78
  dedup:
69
- description: Take the specified action when async detects duplicate files on the source
79
+ description: Take the specified action when async detects duplicate files on the source.
80
+ type: string
70
81
  enum:
71
82
  - copy
72
83
  - inode
@@ -74,15 +85,16 @@ properties:
74
85
  - none
75
86
  default: none
76
87
  delete_before:
77
- description: Schedule deletes before transfers
88
+ description: Schedule deletes before transfers.
78
89
  type: boolean
79
90
  default: false
80
91
  delete_delay:
81
- description: Delay actual deletes until the end of the synchronization
92
+ description: Delay actual deletes until the end of the synchronization.
82
93
  type: boolean
83
94
  default: false
84
95
  direction:
85
- description: The direction of replication relative to the local
96
+ description: The direction of replication relative to the local.
97
+ type: string
86
98
  enum:
87
99
  - bidi
88
100
  - pull
@@ -101,7 +113,7 @@ properties:
101
113
  - value
102
114
  properties:
103
115
  rule:
104
- description: The rule for the filter
116
+ description: The rule for the filter.
105
117
  enum:
106
118
  - include
107
119
  - exclude
@@ -119,24 +131,24 @@ properties:
119
131
  type: object
120
132
  properties:
121
133
  absolute:
122
- description: UTC timestamp. Empty value for disabled
134
+ description: UTC timestamp. Empty value for disabled.
123
135
  type: string
124
136
  default: ""
125
137
  relative_seconds:
126
- description: Relative to async start time. -1 for disabled
138
+ description: Relative to async start time. `-1` for disabled.
127
139
  type: integer
128
140
  default: -1
129
141
  ignore_delete:
130
- description: Do not copy removals to the peer
142
+ description: Do not copy removals to the peer.
131
143
  type: boolean
132
144
  default: false
133
145
  ignore_mode:
134
- description: Source files that have had their mode changed after the initial
146
+ description: Source files that have had their mode changed after the initial.
135
147
  transfer will not update the destination file mode.
136
148
  type: boolean
137
149
  default: false
138
150
  ignore_remote_host_sync_name:
139
- description: Do not check that the remote host being used for the current
151
+ description: Do not check that the remote host being used for the current.
140
152
  transfer matches the host used when the local database was created
141
153
  type: boolean
142
154
  default: false
@@ -146,25 +158,30 @@ properties:
146
158
  - path
147
159
  properties:
148
160
  pass:
149
- description: Authenticate the local async with the specified password
161
+ description: Authenticate the local async with the specified password.
150
162
  type: string
151
163
  default: ""
152
164
  path:
153
- description: The directory to be synchronized on the local host
165
+ description: The directory to be synchronized on the local host.
154
166
  type: string
167
+ x-cli-option: --local-dir
168
+ x-cli-short: -d
155
169
  local_apply_docroot:
156
- description: Prepend the docroot to the directory on the local host
170
+ description: Prepend the docroot to the directory on the local host.
157
171
  type: boolean
158
172
  default: false
173
+ x-cli-option: --apply-local-docroot
159
174
  local_db_dir:
160
175
  description: Use the specified database directory on the local host.
161
176
  Default is `.private-asp` at the root level of the synchronized directory.
162
177
  type: string
163
178
  default: ""
179
+ x-cli-option: true
180
+ x-cli-short: -b
164
181
  local_checksum_threads:
165
182
  description:
166
- Maximum number of threads to do checksum on the local host. Value
167
- must be between 1 and 99
183
+ Maximum number of threads to do checksum on the local host.
184
+ Value must be between 1 and 99.
168
185
  type: integer
169
186
  default: 4
170
187
  local_db_store_dir:
@@ -173,8 +190,7 @@ properties:
173
190
  type: string
174
191
  default: ""
175
192
  local_force_stat:
176
- description: Forces the local async to retrieve file information even when
177
- no changes are detected by the scanner or monitor.
193
+ description: Forces the local async to retrieve file information even when no changes are detected by the scanner or monitor.
178
194
  type: boolean
179
195
  default: false
180
196
  local_fs_threads:
@@ -183,7 +199,7 @@ properties:
183
199
  type: integer
184
200
  default: 1
185
201
  local_keep_dir:
186
- description: Move deleted files into the specified directory on the local host
202
+ description: Move deleted files into the specified directory on the local host.
187
203
  type: string
188
204
  default: ""
189
205
  local_mount_signature:
@@ -192,18 +208,20 @@ properties:
192
208
  default: ""
193
209
  local_move_cache_timeout_seconds:
194
210
  description: Delay in seconds before aborting moving a file from local cache to final destination.
195
- -1 for disabled.
211
+ `-1` for disabled.
196
212
  type: integer
197
213
  default: -1
198
214
  local_preserve_acls:
199
- description: Preserve access control lists on the local host
215
+ description: Preserve access control lists on the local host.
216
+ type: string
200
217
  enum:
201
218
  - native
202
219
  - metafile
203
220
  - none
204
221
  default: none
205
222
  local_preserve_xattrs:
206
- description: Preserve extended attributes on the local
223
+ description: Preserve extended attributes on the local.
224
+ type: string
207
225
  enum:
208
226
  - native
209
227
  - metafile
@@ -212,7 +230,7 @@ properties:
212
230
  local_scan_interval_milliseconds:
213
231
  description:
214
232
  Enable periodic scans on the local host during a continuous sync.
215
- -1 for disabled
233
+ `-1` for disabled
216
234
  type: integer
217
235
  default: -1
218
236
  local_scan_threads:
@@ -221,25 +239,26 @@ properties:
221
239
  type: integer
222
240
  default: 1
223
241
  local_stat_cache_size:
224
- description: Set stat cache size on the local host. 0 for disabled
242
+ description: Set stat cache size on the local host. 0 for disabled.
225
243
  type: integer
226
244
  default: 0
227
245
  log:
228
246
  type: object
229
247
  properties:
230
248
  level:
231
- description: Use the specified log level
249
+ description: Use the specified log level.
232
250
  enum:
233
251
  - log
234
252
  - dbg1
235
253
  - dbg2
236
254
  default: log
237
255
  local_dir:
238
- description: Use the specified logging directory on the local host
256
+ description: Use the specified logging directory on the local host.
239
257
  type: string
240
258
  default: ""
259
+ x-cli-option: --alt-logdir
241
260
  remote_dir:
242
- description: Use the specified logging directory on the remote host
261
+ description: Use the specified logging directory on the remote host.
243
262
  type: string
244
263
  default: ""
245
264
  manifest_path:
@@ -252,38 +271,47 @@ properties:
252
271
  description:
253
272
  Force the pulling side to be exactly like the pushing side, removing
254
273
  files on the destination that don't exist on the source and resending source
255
- files that don't have an exact match on the destination. Cannot be used
256
- in bi-directional mode
274
+ files that don't have an exact match on the destination.
275
+ Cannot be used in bi-directional mode.
257
276
  type: boolean
258
277
  default: false
278
+ x-cli-option: true
279
+ x-cli-switch: true
259
280
  mode:
260
281
  description:
261
- Specify whether async runs continuously or not. In one_time mode,
262
- async stops after the first full synchronization
282
+ Specify whether async runs continuously or not.
283
+ In one_time mode, async stops after the first full synchronization.
284
+ type: string
263
285
  enum:
264
286
  - one_time
265
287
  - continuous
266
288
  default: one_time
289
+ x-cli-option: --continuous
290
+ x-cli-short: -C
291
+ x-cli-special: true
292
+ #x-cli-switch: true
267
293
  monitor_buffer_size:
268
294
  description: Bytes to allocate for the change monitor buffer.
269
295
  Applies to any Windows machine on either side.
270
- -1 to use the computed value.
296
+ `-1` to use the computed value.
271
297
  type: integer
272
298
  default: -1
273
299
  name:
274
- description: Name of the synchronization pair
300
+ description: Name of the synchronization pair.
275
301
  type: string
302
+ x-cli-option: true
303
+ x-cli-short: -N
276
304
  no_log:
277
305
  description: Suppress log messages for ITEM.
278
306
  The only currently supported ITEM is 'stats', which suppresses both STATS and PROG log messages.
279
307
  type: string
280
308
  default: ""
281
309
  no_preserve_root_attrs:
282
- description: Disable the preservation of attributes on the Sync root
310
+ description: Disable the preservation of attributes on the Sync root.
283
311
  type: boolean
284
312
  default: false
285
313
  no_scan:
286
- description: Skip initial scanning
314
+ description: Skip initial scanning.
287
315
  type: boolean
288
316
  default: false
289
317
  notifications_sharing_retry_max:
@@ -295,49 +323,49 @@ properties:
295
323
  description: >-
296
324
  Overwrite files according to the specified policy.
297
325
  Default is determined by the direction: conflict for bidi, otherwise always.
326
+ type: string
298
327
  enum:
299
328
  - always
300
329
  - older
301
330
  - conflict
302
331
  pending_max:
303
- description: Allow the maximum number of files that are pending transfer to
304
- be no more than the specified number
332
+ description: Allow the maximum number of files that are pending transfer to be no more than the specified number.
305
333
  type: integer
306
334
  default: 2000
307
335
  preserve_access_time:
308
- description: Preserve file access time from the source to the destination
336
+ description: Preserve file access time from the source to the destination.
309
337
  type: boolean
310
338
  default: false
311
339
  preserve_creation_time:
312
- description: Preserve file creation time from the source to the destination
340
+ description: Preserve file creation time from the source to the destination.
313
341
  type: boolean
314
342
  default: false
315
343
  preserve_gid:
316
- description: Preserve the file owner's GID
344
+ description: Preserve the file owner's GID.
317
345
  type: boolean
318
346
  default: false
319
347
  preserve_modification_time:
320
- description: Preserve file modification time from the source to the destination
348
+ description: Preserve file modification time from the source to the destination.
321
349
  type: boolean
322
350
  default: false
323
351
  preserve_object_lock_legal_hold:
324
- description: Preserve object lock legal hold status from the source to the destination
352
+ description: Preserve object lock legal hold status from the source to the destination.
325
353
  type: boolean
326
354
  default: false
327
355
  preserve_object_lock_retention:
328
- description: Preserve object lock retention from the source to the destination
356
+ description: Preserve object lock retention from the source to the destination.
329
357
  type: boolean
330
358
  default: false
331
359
  preserve_object_metadata:
332
- description: Preserve object metadata from the source to the destination
360
+ description: Preserve object metadata from the source to the destination.
333
361
  type: boolean
334
362
  default: false
335
363
  preserve_uid:
336
- description: Preserve the file owner's UID
364
+ description: Preserve the file owner's UID.
337
365
  type: boolean
338
366
  default: false
339
367
  quiet:
340
- description: Disable progress display
368
+ description: Disable progress display.
341
369
  type: boolean
342
370
  default: true
343
371
  remote:
@@ -348,21 +376,21 @@ properties:
348
376
  - path
349
377
  properties:
350
378
  fingerprint:
351
- description: Check it against server SSH host key fingerprint
379
+ description: Check it against server SSH host key fingerprint.
352
380
  type: string
353
381
  default: ""
354
382
  x-ts-name: sshfp
355
383
  host:
356
- description: Use the specified host name or address of the remote host
384
+ description: Use the specified host name or address of the remote host.
357
385
  type: string
358
386
  x-ts-name: remote_host
359
387
  pass:
360
- description: Authenticate the transfer with the specified password
388
+ description: Authenticate the transfer with the specified password.
361
389
  type: string
362
390
  default: ""
363
391
  x-ts-name: remote_password
364
392
  path:
365
- description: Synchronize the specified directory on the remote host
393
+ description: Synchronize the specified directory on the remote host.
366
394
  type: string
367
395
  port:
368
396
  description: Use the specified TCP port for SSH.
@@ -378,46 +406,46 @@ properties:
378
406
  default: 9093
379
407
  x-ts-name: wss_port
380
408
  connect_mode:
381
- description: Define how to connect to the remote
409
+ description: Define how to connect to the remote.
382
410
  enum:
383
411
  - ssh
384
412
  - ws
385
413
  default: ssh
386
414
  private_key_paths:
387
- description: Authenticate with the specified SSH private key file
415
+ description: Authenticate with the specified SSH private key file.
388
416
  type: array
389
417
  items:
390
418
  type: string
391
419
  proxy:
392
- description: Specify the address of the Aspera high-speed proxy server
420
+ description: Specify the address of the Aspera high-speed proxy server.
393
421
  type: object
394
422
  #x-ts-name: proxy : TODO: conversion
395
423
  properties:
396
424
  host:
397
- description: Use the specified host name or address of the proxy
425
+ description: Use the specified host name or address of the proxy.
398
426
  type: string
399
427
  default: ""
400
428
  pass:
401
- description: Authenticate to the proxy with the specified password
429
+ description: Authenticate to the proxy with the specified password.
402
430
  type: string
403
431
  default: ""
404
432
  port:
405
- description: Use the specified port, default is 9091 for dnat, 9092
433
+ description: Use the specified port, default is 9091 for dnat, 9092.
406
434
  for dnats
407
435
  type: integer
408
436
  protocol:
409
- description: The protocol to be used
437
+ description: The protocol to be used.
410
438
  enum:
411
439
  - none
412
440
  - dnat
413
441
  - dnats
414
442
  default: none
415
443
  user:
416
- description: Authenticate to the proxy with the specified username
444
+ description: Authenticate to the proxy with the specified username.
417
445
  type: string
418
446
  default: ""
419
447
  token:
420
- description: Token string passed to server's authentication service
448
+ description: Token string passed to server's authentication service.
421
449
  type: string
422
450
  default: ""
423
451
  x-ts-name: token
@@ -427,7 +455,7 @@ properties:
427
455
  type: string
428
456
  default: ""
429
457
  user:
430
- description: Authenticate the transfer with the specified username
458
+ description: Authenticate the transfer with the specified username.
431
459
  type: string
432
460
  x-ts-name: remote_user
433
461
  remote_checksum_threads:
@@ -447,8 +475,7 @@ properties:
447
475
  type: string
448
476
  default: ""
449
477
  remote_force_stat:
450
- description: Forces the remote async to retrieve file information even when
451
- no changes are detected by the scanner or monitor.
478
+ description: Forces the remote async to retrieve file information even when no changes are detected by the scanner or monitor.
452
479
  type: boolean
453
480
  default: false
454
481
  remote_fs_threads:
@@ -468,13 +495,14 @@ properties:
468
495
  description:
469
496
  Delay in seconds before aborting moving a file from remote cache
470
497
  to final destination.
471
- -1 for disabled.
498
+ `-1` for disabled.
472
499
  type: integer
473
500
  default: -1
474
501
  remote_preserve_acls:
475
502
  description:
476
503
  Preserve access control lists on the remote host.
477
504
  If not specified, the default behavior is to use the same storage mode as specified by `preserve_acls`.
505
+ type: string
478
506
  enum:
479
507
  - native
480
508
  - metafile
@@ -483,13 +511,14 @@ properties:
483
511
  description:
484
512
  Preserve extended attributes on the remote host.
485
513
  If not specified, the default behavior is to use the same storage mode as specified by `preserve_xattrs`.
514
+ type: string
486
515
  enum:
487
516
  - native
488
517
  - metafile
489
518
  - none
490
519
  remote_scan_interval_milliseconds:
491
520
  description: Enable periodic scans on the remote host.
492
- -1 for disabled.
521
+ `-1` for disabled.
493
522
  type: integer
494
523
  default: -1
495
524
  remote_scan_threads:
@@ -503,7 +532,7 @@ properties:
503
532
  type: integer
504
533
  default: 0
505
534
  remove_after_transfer:
506
- description: Remove source files after they are successfully synchronized
535
+ description: Remove source files after they are successfully synchronized.
507
536
  type: boolean
508
537
  default: false
509
538
  reset:
@@ -513,8 +542,8 @@ properties:
513
542
  type: boolean
514
543
  default: false
515
544
  resume:
516
- description: Partial transfers may exist if communication disruptions caused
517
- the underlying ascp processes to terminate early.
545
+ description: >-
546
+ Partial transfers may exist if communication disruptions caused the underlying ascp processes to terminate early.
518
547
  Note that transfer resumption can only happen if the `reset` option is disabled.
519
548
  If an async session starts with `reset` enabled and resume enabled, transfers interrupted during that
520
549
  session will be resumeable, but only if async is then restarted with 'reset' disabled.
@@ -530,24 +559,24 @@ properties:
530
559
  type: integer
531
560
  default: "1048576"
532
561
  max_age:
533
- description: Sets the age limit in days for temporary files that will
534
- be preserved on cleanup (usually at async's start and stop) for potential
535
- transfer resume. Temp files older than the given value will be removed
562
+ description: >-
563
+ Sets the age limit in days for temporary files that will be preserved
564
+ on cleanup (usually at async's start and stop) for potential transfer resume.
565
+ Temp files older than the given value will be removed
536
566
  regardless of whether they might be resumeable.
537
567
  type: integer
538
568
  default: "5"
539
569
  resume_scan:
540
- description: Resume the scan from where the previous execution left off
570
+ description: Resume the scan from where the previous execution left off.
541
571
  type: boolean
542
572
  default: false
543
573
  scan_dir_rename:
544
- description: Enable the detection of renamed directories and files compared
574
+ description: Enable the detection of renamed directories and files compared.
545
575
  to the previous scan, based on matching inodes
546
576
  type: boolean
547
577
  default: false
548
578
  scan_file_rename:
549
- description: Enable the detection of renamed files compared to the previous
550
- scan, based on matching inodes
579
+ description: Enable the detection of renamed files compared to the previous scan, based on matching inodes.
551
580
  type: boolean
552
581
  default: false
553
582
  scan_intensity:
@@ -555,6 +584,7 @@ properties:
555
584
  Scan at the set intensity.
556
585
  `vlow` minimizes system activity.
557
586
  `vhigh` maximizes system activity by continuously scanning files without rest.
587
+ type: string
558
588
  enum:
559
589
  - vlow
560
590
  - low
@@ -570,12 +600,15 @@ properties:
570
600
  description:
571
601
  Handle symbolic links with the specified method.
572
602
  Default is `skip` on windows, `copy` otherwise.
603
+ type: string
573
604
  enum:
574
605
  - copy
575
606
  - skip
576
607
  - follow
608
+ x-cli-option: true
609
+ x-cli-short: -n
577
610
  tags:
578
- description: User-defined metadata tags
611
+ description: User-defined metadata tags.
579
612
  type: object
580
613
  properties: {}
581
614
  x-ts-name: tags
@@ -591,17 +624,17 @@ properties:
591
624
  properties:
592
625
  size:
593
626
  description: Upper limit.
594
- -1 for infinity.
627
+ `-1` for infinity.
595
628
  type: integer
596
629
  default: -1
597
630
  threads:
598
- description: The number of threads
631
+ description: The number of threads.
599
632
  type: integer
600
633
  transport:
601
634
  type: object
602
635
  properties:
603
636
  cipher:
604
- description: Specify encryption algorithm for file data
637
+ description: Specify encryption algorithm for file data.
605
638
  enum:
606
639
  - none
607
640
  - aes128
@@ -614,12 +647,14 @@ properties:
614
647
  - aes192gcm
615
648
  - aes256gcm
616
649
  default: aes128
650
+ x-cli-option: true
617
651
  compression:
618
- description: Compress a file before transfer using the specified MODE
652
+ description: Compress a file before transfer using the specified MODE.
619
653
  enum:
620
654
  - none
621
655
  - zlib
622
656
  default: none
657
+ x-cli-option: true
623
658
  datagram_size:
624
659
  description:
625
660
  Specify the datagram size (MTU) for FASP.
@@ -653,7 +688,7 @@ properties:
653
688
  Default is determined by `aspera.conf`.
654
689
  type: integer
655
690
  target_rate:
656
- description: Transfer no faster than the specified rate (in bps)
691
+ description: Transfer no faster than the specified rate (in bps).
657
692
  type: integer
658
693
  default: 10000000
659
694
  x-ts-name: target_rate_kbps
@@ -668,9 +703,10 @@ properties:
668
703
  type: integer
669
704
  default: 33001
670
705
  watchd:
671
- description: When connection is configured, `asperawatchd` is used to detect
672
- the changes on the source directory
706
+ description: When connection is configured, `asperawatchd` is used to detect the changes on the source directory.
673
707
  type: object
708
+ x-cli-option: --watchd
709
+ x-cli-special: true
674
710
  properties:
675
711
  datastore:
676
712
  description: Specify the type of datastore, `none` for disabled.
@@ -684,18 +720,18 @@ properties:
684
720
  Default is the current username.
685
721
  type: string
686
722
  host:
687
- description: Use the specified host name or address to connect to the datastore
723
+ description: Use the specified host name or address to connect to the datastore.
688
724
  type: string
689
725
  default: ""
690
726
  port:
691
- description: Use the specified port
727
+ description: Use the specified port.
692
728
  type: integer
693
729
  default: 31415
694
730
  write_gid:
695
- description: Try to write files as the specified group
731
+ description: Try to write files as the specified group.
696
732
  type: string
697
733
  default: ""
698
734
  write_uid:
699
- description: Try to write files as the specified user
735
+ description: Try to write files as the specified user.
700
736
  type: string
701
737
  default: ""