github.com/Files-com/files-sdk-go/v3@v3.1.81/file/fixtures/TestUploader/uploader/copy_foo_to_Dest.yaml (about) 1 --- 2 version: 1 3 interactions: 4 - request: 5 body: '{}' 6 form: {} 7 headers: 8 Connection: 9 - close 10 Content-Type: 11 - application/json 12 User-Agent: 13 - Files.com Go SDK 2.0.0-beta 14 url: https://app.files.com/api/rest/v1/folders/tmp 15 method: POST 16 response: 17 body: '{"error":"The destination exists.","http-code":422,"instance":"90eccc97-0918-4423-b3a2-bab9ca8a41c6","title":"Destination 18 Exists","type":"processing-failure/destination-exists"}' 19 headers: 20 Cache-Control: 21 - no-cache, no-store, max-age=0, must-revalidate 22 Content-Length: 23 - "177" 24 Content-Type: 25 - application/json 26 Date: 27 - Mon, 06 Feb 2023 17:27:09 GMT 28 Expires: 29 - Fri, 01 Jan 1990 00:00:00 GMT 30 Pragma: 31 - no-cache 32 Server: 33 - nginx 34 X-Files-Error-Class: 35 - processing-failure/destination-exists 36 X-Request-Id: 37 - 90eccc97-0918-4423-b3a2-bab9ca8a41c6 38 - ebf432eb618f647e93d7545f94f4eee9 39 status: 422 Unprocessable Entity 40 code: 422 41 duration: "" 42 - request: 43 body: '{}' 44 form: {} 45 headers: 46 Connection: 47 - close 48 Content-Type: 49 - application/json 50 User-Agent: 51 - Files.com Go SDK 2.0.0-beta 52 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest 53 method: POST 54 response: 55 body: '{"error":"The destination exists.","http-code":422,"instance":"b7253173-f38b-4d42-a8ef-eb35f99487ef","title":"Destination 56 Exists","type":"processing-failure/destination-exists"}' 57 headers: 58 Cache-Control: 59 - no-cache, no-store, max-age=0, must-revalidate 60 Content-Length: 61 - "177" 62 Content-Type: 63 - application/json 64 Date: 65 - Mon, 06 Feb 2023 17:27:09 GMT 66 Expires: 67 - Fri, 01 Jan 1990 00:00:00 GMT 68 Pragma: 69 - no-cache 70 Server: 71 - nginx 72 X-Files-Error-Class: 73 - processing-failure/destination-exists 74 X-Request-Id: 75 - b7253173-f38b-4d42-a8ef-eb35f99487ef 76 - efd2c00980bb32a8ca4af8659a75e801 77 status: 422 Unprocessable Entity 78 code: 422 79 duration: "" 80 - request: 81 body: '{}' 82 form: {} 83 headers: 84 Connection: 85 - close 86 Content-Type: 87 - application/json 88 User-Agent: 89 - Files.com Go SDK 2.0.0-beta 90 url: https://app.files.com/api/rest/v1/folders/tmp 91 method: POST 92 response: 93 body: '{"error":"The destination exists.","http-code":422,"instance":"87855daa-dca2-43d4-b13b-347eb34b9355","title":"Destination 94 Exists","type":"processing-failure/destination-exists"}' 95 headers: 96 Cache-Control: 97 - no-cache, no-store, max-age=0, must-revalidate 98 Content-Length: 99 - "177" 100 Content-Type: 101 - application/json 102 Date: 103 - Mon, 06 Feb 2023 17:27:10 GMT 104 Expires: 105 - Fri, 01 Jan 1990 00:00:00 GMT 106 Pragma: 107 - no-cache 108 Server: 109 - nginx 110 X-Files-Error-Class: 111 - processing-failure/destination-exists 112 X-Request-Id: 113 - 87855daa-dca2-43d4-b13b-347eb34b9355 114 - f0ad7239d30f031d945be742cb284267 115 status: 422 Unprocessable Entity 116 code: 422 117 duration: "" 118 - request: 119 body: '{}' 120 form: {} 121 headers: 122 Connection: 123 - close 124 Content-Type: 125 - application/json 126 User-Agent: 127 - Files.com Go SDK 2.0.0-beta 128 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest 129 method: POST 130 response: 131 body: '{"error":"The destination exists.","http-code":422,"instance":"25d047ba-1ae2-4f2c-a7d1-2d9f3cb280c1","title":"Destination 132 Exists","type":"processing-failure/destination-exists"}' 133 headers: 134 Cache-Control: 135 - no-cache, no-store, max-age=0, must-revalidate 136 Content-Length: 137 - "177" 138 Content-Type: 139 - application/json 140 Date: 141 - Mon, 06 Feb 2023 17:27:10 GMT 142 Expires: 143 - Fri, 01 Jan 1990 00:00:00 GMT 144 Pragma: 145 - no-cache 146 Server: 147 - nginx 148 X-Files-Error-Class: 149 - processing-failure/destination-exists 150 X-Request-Id: 151 - 25d047ba-1ae2-4f2c-a7d1-2d9f3cb280c1 152 - 241fda540a2c1a55a11e3c52b7419a6a 153 status: 422 Unprocessable Entity 154 code: 422 155 duration: "" 156 - request: 157 body: '{}' 158 form: {} 159 headers: 160 Connection: 161 - close 162 Content-Type: 163 - application/json 164 User-Agent: 165 - Files.com Go SDK 2.0.0-beta 166 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root 167 method: POST 168 response: 169 body: '{"error":"The destination exists.","http-code":422,"instance":"6a24f4e4-ae22-42e2-a75f-0014dff8d1f2","title":"Destination 170 Exists","type":"processing-failure/destination-exists"}' 171 headers: 172 Cache-Control: 173 - no-cache, no-store, max-age=0, must-revalidate 174 Content-Length: 175 - "177" 176 Content-Type: 177 - application/json 178 Date: 179 - Mon, 06 Feb 2023 17:27:10 GMT 180 Expires: 181 - Fri, 01 Jan 1990 00:00:00 GMT 182 Pragma: 183 - no-cache 184 Server: 185 - nginx 186 X-Files-Error-Class: 187 - processing-failure/destination-exists 188 X-Request-Id: 189 - 6a24f4e4-ae22-42e2-a75f-0014dff8d1f2 190 - e68dbacf9e16224a8b7e152dc6dd1a06 191 status: 422 Unprocessable Entity 192 code: 422 193 duration: "" 194 - request: 195 body: '{}' 196 form: {} 197 headers: 198 Connection: 199 - close 200 Content-Type: 201 - application/json 202 User-Agent: 203 - Files.com Go SDK 2.0.0-beta 204 url: https://app.files.com/api/rest/v1/folders/tmp 205 method: POST 206 response: 207 body: '{"error":"The destination exists.","http-code":422,"instance":"ef8334c8-fc73-49c4-8fba-efe9838dd353","title":"Destination 208 Exists","type":"processing-failure/destination-exists"}' 209 headers: 210 Cache-Control: 211 - no-cache, no-store, max-age=0, must-revalidate 212 Content-Length: 213 - "177" 214 Content-Type: 215 - application/json 216 Date: 217 - Mon, 06 Feb 2023 17:27:11 GMT 218 Expires: 219 - Fri, 01 Jan 1990 00:00:00 GMT 220 Pragma: 221 - no-cache 222 Server: 223 - nginx 224 X-Files-Error-Class: 225 - processing-failure/destination-exists 226 X-Request-Id: 227 - ef8334c8-fc73-49c4-8fba-efe9838dd353 228 - 22ed626bc7172ff7ffe2ef92ac3dde3a 229 status: 422 Unprocessable Entity 230 code: 422 231 duration: "" 232 - request: 233 body: '{}' 234 form: {} 235 headers: 236 Connection: 237 - close 238 Content-Type: 239 - application/json 240 User-Agent: 241 - Files.com Go SDK 2.0.0-beta 242 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest 243 method: POST 244 response: 245 body: '{"error":"The destination exists.","http-code":422,"instance":"8163f10b-7a67-4dd6-a500-370f92a4c36f","title":"Destination 246 Exists","type":"processing-failure/destination-exists"}' 247 headers: 248 Cache-Control: 249 - no-cache, no-store, max-age=0, must-revalidate 250 Content-Length: 251 - "177" 252 Content-Type: 253 - application/json 254 Date: 255 - Mon, 06 Feb 2023 17:27:11 GMT 256 Expires: 257 - Fri, 01 Jan 1990 00:00:00 GMT 258 Pragma: 259 - no-cache 260 Server: 261 - nginx 262 X-Files-Error-Class: 263 - processing-failure/destination-exists 264 X-Request-Id: 265 - 8163f10b-7a67-4dd6-a500-370f92a4c36f 266 - eaada331be55c09133fa5dc84b1d8fd4 267 status: 422 Unprocessable Entity 268 code: 422 269 duration: "" 270 - request: 271 body: '{}' 272 form: {} 273 headers: 274 Connection: 275 - close 276 Content-Type: 277 - application/json 278 User-Agent: 279 - Files.com Go SDK 2.0.0-beta 280 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root 281 method: POST 282 response: 283 body: '{"error":"The destination exists.","http-code":422,"instance":"5c857087-d285-487f-8cac-3237dcb1f9f5","title":"Destination 284 Exists","type":"processing-failure/destination-exists"}' 285 headers: 286 Cache-Control: 287 - no-cache, no-store, max-age=0, must-revalidate 288 Content-Length: 289 - "177" 290 Content-Type: 291 - application/json 292 Date: 293 - Mon, 06 Feb 2023 17:27:12 GMT 294 Expires: 295 - Fri, 01 Jan 1990 00:00:00 GMT 296 Pragma: 297 - no-cache 298 Server: 299 - nginx 300 X-Files-Error-Class: 301 - processing-failure/destination-exists 302 X-Request-Id: 303 - 5c857087-d285-487f-8cac-3237dcb1f9f5 304 - 12f42b4d508f0011362f3cb393b75c84 305 status: 422 Unprocessable Entity 306 code: 422 307 duration: "" 308 - request: 309 body: '{}' 310 form: {} 311 headers: 312 Connection: 313 - close 314 Content-Type: 315 - application/json 316 User-Agent: 317 - Files.com Go SDK 2.0.0-beta 318 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest 319 method: POST 320 response: 321 body: '{"error":"The destination exists.","http-code":422,"instance":"70652407-f65b-46b3-bf22-f47d06717a8b","title":"Destination 322 Exists","type":"processing-failure/destination-exists"}' 323 headers: 324 Cache-Control: 325 - no-cache, no-store, max-age=0, must-revalidate 326 Content-Length: 327 - "177" 328 Content-Type: 329 - application/json 330 Date: 331 - Mon, 06 Feb 2023 17:27:12 GMT 332 Expires: 333 - Fri, 01 Jan 1990 00:00:00 GMT 334 Pragma: 335 - no-cache 336 Server: 337 - nginx 338 X-Files-Error-Class: 339 - processing-failure/destination-exists 340 X-Request-Id: 341 - 70652407-f65b-46b3-bf22-f47d06717a8b 342 - db0e3a55c8bb9befabc865eca9ab7277 343 status: 422 Unprocessable Entity 344 code: 422 345 duration: "" 346 - request: 347 body: '{"mkdir_parents":true}' 348 form: {} 349 headers: 350 Connection: 351 - close 352 Content-Type: 353 - application/json 354 User-Agent: 355 - Files.com Go SDK 2.0.0-beta 356 url: https://app.files.com/api/rest/v1/file_actions/begin_upload/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest/foo/baz.txt 357 method: POST 358 response: 359 body: '[{"send":{"partsize":"required-header Content-Length","partdata":"body"},"action":"put/write","ask_about_overwrites":false,"available_parts":10000,"expires":"2023-02-06T17:42:12Z","headers":{},"http_method":"PUT","next_partsize":6291456,"parallel_parts":true,"parameters":{},"part_number":1,"partsize":5242880,"ref":"put-4118592539","upload_uri":"https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/c7a2c266-1b7e-4854-9be4-fb21f404db41?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20230206%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20230206T172712Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026partNumber=1\u0026response-content-type=application%2Foctet-stream\u0026uploadId=0FFUbO9zE9z_DazGZwKWfBVwLfCeju6QRw6VpbY.zc17ID2cPWZ1Z0ovxh0Cs_1kn2p3e7c2S_T4jXvMW5azPDPoNcIHXlyNAjJatTcrRod32He0oZU1S4OD6crVPTK5\u0026X-Amz-Signature=c500e0ab2858a354b2c441522558507161f5dc5d32d93a200e8a27d93fd7d229"}]' 360 headers: 361 Cache-Control: 362 - no-cache, no-store, max-age=0, must-revalidate 363 Content-Type: 364 - application/json 365 Date: 366 - Mon, 06 Feb 2023 17:27:12 GMT 367 Expires: 368 - Fri, 01 Jan 1990 00:00:00 GMT 369 Pragma: 370 - no-cache 371 Server: 372 - nginx 373 X-Request-Id: 374 - ade0c3a7-c7be-42bd-907a-d7d4095df2a3 375 - 3b8706d330a9ff4f501ad682364a079d 376 status: 200 OK 377 code: 200 378 duration: "" 379 - request: 380 body: "" 381 form: {} 382 headers: 383 Connection: 384 - close 385 Content-Length: 386 - "0" 387 url: https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/c7a2c266-1b7e-4854-9be4-fb21f404db41?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20230206%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230206T172712Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&partNumber=1&response-content-type=application%2Foctet-stream&uploadId=0FFUbO9zE9z_DazGZwKWfBVwLfCeju6QRw6VpbY.zc17ID2cPWZ1Z0ovxh0Cs_1kn2p3e7c2S_T4jXvMW5azPDPoNcIHXlyNAjJatTcrRod32He0oZU1S4OD6crVPTK5&X-Amz-Signature=c500e0ab2858a354b2c441522558507161f5dc5d32d93a200e8a27d93fd7d229 388 method: PUT 389 response: 390 body: "" 391 headers: 392 Content-Length: 393 - "0" 394 Date: 395 - Mon, 06 Feb 2023 17:27:14 GMT 396 Etag: 397 - '"d41d8cd98f00b204e9800998ecf8427e"' 398 Server: 399 - AmazonS3 400 X-Amz-Id-2: 401 - WUQgPYpSDsMD0qgcRbW5XcJeI+Fc4z46Kvc82iYgLGeAvV2bwB0oMCkfoSqcNFMNXEUWp/jh7IU= 402 X-Amz-Request-Id: 403 - D431FAH47GQ9GNKA 404 X-Amz-Server-Side-Encryption: 405 - AES256 406 status: 200 OK 407 code: 200 408 duration: "" 409 - request: 410 body: '{"action":"end","etags":[{"etag":"d41d8cd98f00b204e9800998ecf8427e","part":"1"}],"mkdir_parents":true,"provided_mtime":"2023-02-06T09:27:10.834112133-08:00","ref":"put-4118592539"}' 411 form: {} 412 headers: 413 Connection: 414 - close 415 Content-Type: 416 - application/json 417 User-Agent: 418 - Files.com Go SDK 2.0.0-beta 419 url: https://app.files.com/api/rest/v1/files/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest/foo/baz.txt 420 method: POST 421 response: 422 body: '{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest/foo/baz.txt","display_name":"baz.txt","type":"file","size":0,"created_at":"2023-02-06T17:27:13Z","mtime":"2023-02-06T17:27:13Z","provided_mtime":"2023-02-06T17:27:10Z","crc32":null,"md5":null,"mime_type":"text/plain","region":"us-east-1","permissions":"lrwd"}' 423 headers: 424 Cache-Control: 425 - no-cache, no-store, max-age=0, must-revalidate 426 Content-Length: 427 - "326" 428 Content-Type: 429 - application/json 430 Date: 431 - Mon, 06 Feb 2023 17:27:13 GMT 432 Expires: 433 - Fri, 01 Jan 1990 00:00:00 GMT 434 Pragma: 435 - no-cache 436 Server: 437 - nginx 438 X-Request-Id: 439 - 7be865e3-7d57-43a9-a115-30e69da58560 440 - 54f867c528ff1986efa8d988307a9d37 441 status: 201 Created 442 code: 201 443 duration: "" 444 - request: 445 body: "" 446 form: {} 447 headers: 448 Connection: 449 - close 450 User-Agent: 451 - Files.com Go SDK 2.0.0-beta 452 url: https://app.files.com/api/rest/v1/file_actions/metadata/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest 453 method: GET 454 response: 455 body: '{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest","display_name":"Dest","type":"directory","size":null,"created_at":"2023-02-06T17:18:37Z","mtime":"2023-02-06T17:27:13Z","provided_mtime":null,"crc32":null,"md5":null,"permissions":"lrwd","subfolders_locked?":false,"is_locked":false}' 456 headers: 457 Cache-Control: 458 - no-cache, no-store, max-age=0, must-revalidate 459 Content-Type: 460 - application/json 461 Date: 462 - Mon, 06 Feb 2023 17:27:14 GMT 463 Expires: 464 - Fri, 01 Jan 1990 00:00:00 GMT 465 Pragma: 466 - no-cache 467 Server: 468 - nginx 469 X-Request-Id: 470 - ed0aafe9-32e3-49a0-8c65-03d1db260578 471 - 2daa353ba53d7ab8ecf9240886121bf7 472 status: 200 OK 473 code: 200 474 duration: "" 475 - request: 476 body: "" 477 form: {} 478 headers: 479 Connection: 480 - close 481 User-Agent: 482 - Files.com Go SDK 2.0.0-beta 483 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest?page=1 484 method: GET 485 response: 486 body: '[{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest/foo","display_name":"foo","type":"directory","size":null,"created_at":"2023-02-06T17:27:12Z","mtime":"2023-02-06T17:27:13Z","provided_mtime":null,"crc32":null,"md5":null,"permissions":"lrwd","subfolders_locked?":false,"is_locked":false}]' 487 headers: 488 Cache-Control: 489 - no-cache, no-store, max-age=0, must-revalidate 490 Content-Type: 491 - application/json 492 Date: 493 - Mon, 06 Feb 2023 17:27:14 GMT 494 Expires: 495 - Fri, 01 Jan 1990 00:00:00 GMT 496 Pragma: 497 - no-cache 498 Server: 499 - nginx 500 X-Request-Id: 501 - 8b2869ff-e3e5-41d6-96bb-2d1f4ffaf1db 502 - be57072d93e7c74d206c1b3cc5096817 503 status: 200 OK 504 code: 200 505 duration: "" 506 - request: 507 body: "" 508 form: {} 509 headers: 510 Connection: 511 - close 512 User-Agent: 513 - Files.com Go SDK 2.0.0-beta 514 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest/foo?page=1 515 method: GET 516 response: 517 body: '[{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root/Dest/foo/baz.txt","display_name":"baz.txt","type":"file","size":0,"created_at":"2023-02-06T17:27:13Z","mtime":"2023-02-06T17:27:13Z","provided_mtime":"2023-02-06T17:27:10Z","crc32":"0","md5":"d41d8cd98f00b204e9800998ecf8427e","mime_type":"text/plain","region":"us-east-1","permissions":"lrwd"}]' 518 headers: 519 Cache-Control: 520 - no-cache, no-store, max-age=0, must-revalidate 521 Content-Type: 522 - application/json 523 Date: 524 - Mon, 06 Feb 2023 17:27:15 GMT 525 Expires: 526 - Fri, 01 Jan 1990 00:00:00 GMT 527 Pragma: 528 - no-cache 529 Server: 530 - nginx 531 X-Request-Id: 532 - 642d379a-76bb-40f4-8aa8-0d8c082eb3f0 533 - ddf34fcbf47f5261ae090b32379933c8 534 status: 200 OK 535 code: 200 536 duration: "" 537 - request: 538 body: "" 539 form: {} 540 headers: 541 Connection: 542 - close 543 User-Agent: 544 - Files.com Go SDK 2.0.0-beta 545 url: https://app.files.com/api/rest/v1/files/tmp/TestUploader-uploader-copy_foo_to_Dest/dest-root?recursive=true 546 method: DELETE 547 response: 548 body: "" 549 headers: 550 Cache-Control: 551 - no-cache, no-store, max-age=0, must-revalidate 552 Date: 553 - Mon, 06 Feb 2023 17:27:15 GMT 554 Expires: 555 - Fri, 01 Jan 1990 00:00:00 GMT 556 Pragma: 557 - no-cache 558 Server: 559 - nginx 560 X-Request-Id: 561 - 85c39ab9-4d71-454d-92bb-a11573cdd02e 562 - 613e9cbc5bebd8e27ab2f122e26d7b44 563 status: 204 No Content 564 code: 204 565 duration: ""