yadisk-client 1.11.1 → 1.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -9
  3. data/Gemfile.lock +8 -39
  4. data/README.md +8 -2
  5. data/lib/yadisk/version.rb +1 -1
  6. data/yadisk.gemspec +2 -2
  7. metadata +8 -41
  8. data/spec/lib/yadisk/client_spec.rb +0 -15
  9. data/spec/lib/yadisk/disk_spec.rb +0 -229
  10. data/spec/lib/yadisk/operation_spec.rb +0 -18
  11. data/spec/lib/yadisk/public_spec.rb +0 -45
  12. data/spec/lib/yadisk/trash_spec.rb +0 -43
  13. data/spec/spec_helper.rb +0 -38
  14. data/spec/support/cassette_helpers.rb +0 -23
  15. data/spec/test_data/test_file.txt +0 -1
  16. data/spec/vcr/disk/copy.yml +0 -52
  17. data/spec/vcr/disk/create_dir.yml +0 -52
  18. data/spec/vcr/disk/create_dir_error_409.yml +0 -54
  19. data/spec/vcr/disk/delete.yml +0 -50
  20. data/spec/vcr/disk/download.yml +0 -52
  21. data/spec/vcr/disk/get_meta.yml +0 -52
  22. data/spec/vcr/disk/info.yml +0 -57
  23. data/spec/vcr/disk/last_uploaded.yml +0 -52
  24. data/spec/vcr/disk/list_files.yml +0 -52
  25. data/spec/vcr/disk/list_public.yml +0 -52
  26. data/spec/vcr/disk/move.yml +0 -52
  27. data/spec/vcr/disk/publish.yml +0 -54
  28. data/spec/vcr/disk/unpublish.yml +0 -54
  29. data/spec/vcr/disk/update_meta.yml +0 -54
  30. data/spec/vcr/disk/upload.yml +0 -52
  31. data/spec/vcr/disk/upload_by_url.yml +0 -52
  32. data/spec/vcr/disk/upload_from_file.yml +0 -111
  33. data/spec/vcr/operation/status.yml +0 -52
  34. data/spec/vcr/public/link.yml +0 -52
  35. data/spec/vcr/public/meta.yml +0 -52
  36. data/spec/vcr/public/save.yml +0 -52
  37. data/spec/vcr/trash/delete.yml +0 -50
  38. data/spec/vcr/trash/list.yml +0 -52
  39. data/spec/vcr/trash/restore.yml +0 -52
  40. data/spec/vcr_setup.rb +0 -31
@@ -1,54 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://cloud-api.yandex.net/v1/disk/resources/unpublish?path=yadisk.png
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Content-Type:
15
- - application/x-www-form-urlencoded
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Tue, 18 Oct 2022 11:58:32 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- Vary:
36
- - Accept-Encoding
37
- Access-Control-Allow-Methods:
38
- - PUT, OPTIONS
39
- Access-Control-Allow-Credentials:
40
- - 'true'
41
- Yandex-Cloud-Request-Id:
42
- - omitted
43
- Cache-Control:
44
- - no-cache
45
- Access-Control-Allow-Origin:
46
- - "*"
47
- Access-Control-Allow-Headers:
48
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
49
- Authorization
50
- body:
51
- encoding: UTF-8
52
- string: '{"href":"https://cloud-api.yandex.net/v1/disk/resources?path=disk%3A%2Fyadisk.png","method":"GET","templated":false}'
53
- recorded_at: Tue, 18 Oct 2022 11:58:32 GMT
54
- recorded_with: VCR 6.1.0
@@ -1,54 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: patch
5
- uri: https://cloud-api.yandex.net/v1/disk/resources?path=yadisk_test_png.png
6
- body:
7
- encoding: UTF-8
8
- string: '{"custom_properties":{"key":"value"}}'
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Content-Type:
15
- - application/json
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Tue, 18 Oct 2022 11:47:52 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- Vary:
36
- - Accept-Encoding
37
- Access-Control-Allow-Methods:
38
- - PUT, PATCH, DELETE, GET, OPTIONS
39
- Access-Control-Allow-Credentials:
40
- - 'true'
41
- Yandex-Cloud-Request-Id:
42
- - omitted
43
- Cache-Control:
44
- - no-cache
45
- Access-Control-Allow-Origin:
46
- - "*"
47
- Access-Control-Allow-Headers:
48
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
49
- Authorization
50
- body:
51
- encoding: UTF-8
52
- string: '{"antivirus_status":"clean","size":976,"comment_ids":{"private_resource":"12345678:d33a07b1dbd4b443f169e56484731fab7cf5b78ae5e6b357567a3af24c6ff965","public_resource":"12345678:d33a07b1dbd4b443f169e56484731fab7cf5b78ae5e6b357567a3af24c6ff965"},"name":"yadisk_test_png.png","exif":{},"created":"2022-10-18T11:47:37+00:00","custom_properties":{"key":"value"},"resource_id":"12345678:d33a07b1dbd4b443f169e56484731fab7cf5b78ae5e6b357567a3af24c6ff965","modified":"2022-10-18T11:47:37+00:00","mime_type":"image/png","file":"https://downloader.disk.yandex.ru/disk/33edf5c0fff9981b32a682b433f93b464b9ef6e5bad2396aa48774f01f627bb5/634ecaa8/wQYFfZvXbSuHTOTzNLBFPm0KOuGlmqJqt-gP1pnGFp3pPxbUv3VruyBmBo9eQx6ADVGmh41pOtaWjuxNFY79JA%3D%3D?uid=12345678&filename=yadisk_test_png.png&disposition=attachment&hash=&limit=0&content_type=image%2Fpng&owner_uid=12345678&fsize=976&hid=11f9f98d69f194fd21a436fcc5f98c7e&media_type=image&tknv=v2&etag=08d91a170e2697b630465e9e9bc0b8bd","media_type":"image","preview":"https://downloader.disk.yandex.ru/preview/d619c43f6501afdbc0436ef1a31d83b3c5f81b1fef53f1bcd4dbccc67999ae95/inf/GAyQwWKMxmt5vqh3onJV2W0KOuGlmqJqt-gP1pnGFp3-zrM1ddX9qM_4XglWRw48beksfosE5iXGCDHqK0pdQw%3D%3D?uid=12345678&filename=yadisk_test_png.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=12345678&tknv=v2&size=S&crop=0","path":"disk:/yadisk_test_png.png","sha256":"48d8a840a19c51300bfe52e3d7199f73e960965f07532868962e8e11c143256d","type":"file","md5":"08d91a170e2697b630465e9e9bc0b8bd","revision":1666093658094153}'
53
- recorded_at: Tue, 18 Oct 2022 11:47:52 GMT
54
- recorded_with: VCR 6.1.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cloud-api.yandex.net/v1/disk/resources/upload?path=yadisk_upload_here
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Tue, 18 Oct 2022 11:43:11 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Vary:
34
- - Accept-Encoding
35
- Access-Control-Allow-Methods:
36
- - PUT, POST, GET, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"operation_id":"78ccc91b3a034a941a72dde1ae92fbf26d0facf9bad941eee9b432f4abdfdd1e","href":"https://uploader9x.disk.yandex.net:443/upload-target/20221018T144311.680.utd.6n9ay2kos10pewsoun8tlx7gf-k7o.674502","method":"PUT","templated":false}'
51
- recorded_at: Tue, 18 Oct 2022 11:43:11 GMT
52
- recorded_with: VCR 6.1.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://cloud-api.yandex.net/v1/disk/resources/upload?path=yadisk_test_png.png&url=https://www.fnordware.com/superpng/pnggrad8rgb.png
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Content-Type:
15
- - application/x-www-form-urlencoded
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 202
23
- message: ACCEPTED
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Tue, 18 Oct 2022 11:47:35 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Content-Length:
32
- - '156'
33
- Connection:
34
- - keep-alive
35
- Access-Control-Allow-Methods:
36
- - PUT, POST, GET, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"href":"https://cloud-api.yandex.net/v1/disk/operations/7aeaf57f7f0da5ce8477bca07922aa491fc9836175b11caf35221cf8738f8589","method":"GET","templated":false}'
51
- recorded_at: Tue, 18 Oct 2022 11:47:35 GMT
52
- recorded_with: VCR 6.1.0
@@ -1,111 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://uploader9x.disk.yandex.net/upload-target/20221018T144311.680.utd.6n9ay2kos10pewsoun8tlx7gf-k7o.674502
6
- body:
7
- encoding: UTF-8
8
- string: |
9
- Copyright (c) 2022 Ilya Brin
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
- headers:
17
- User-Agent:
18
- - Faraday v1.10.2
19
- Authorization:
20
- - "[**********]"
21
- Content-Type:
22
- - application/json
23
- Accept-Encoding:
24
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
25
- Accept:
26
- - "*/*"
27
- response:
28
- status:
29
- code: 201
30
- message: Created
31
- headers:
32
- Server:
33
- - nginx/1.14.2
34
- Date:
35
- - Tue, 18 Oct 2022 11:46:09 GMT
36
- Transfer-Encoding:
37
- - chunked
38
- Connection:
39
- - keep-alive
40
- Keep-Alive:
41
- - timeout=120
42
- Location:
43
- - "/disk/yadisk_upload_here"
44
- Access-Control-Allow-Origin:
45
- - "*"
46
- Access-Control-Allow-Methods:
47
- - POST, PUT, OPTIONS
48
- Access-Control-Allow-Headers:
49
- - Content-Type, Content-Length, Content-Range, X-HTTP-Method, X-Requested-With,
50
- X-Disk-Uploader-Wait-Complete-Upload
51
- Access-Control-Expose-Headers:
52
- - Content-Length, X-Ya-Expect-Content-Length, Location
53
- body:
54
- encoding: UTF-8
55
- string: ''
56
- recorded_at: Tue, 18 Oct 2022 11:46:08 GMT
57
- - request:
58
- method: put
59
- uri: https://uploader7o.disk.yandex.net/upload-target/20221018T144311.680.utd.6n9ay2kos10pewsoun8tlx7gf-k7o.674502
60
- body:
61
- encoding: UTF-8
62
- string: |
63
- Copyright (c) 2022 Ilya Brin
64
-
65
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66
-
67
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
68
-
69
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
70
- headers:
71
- User-Agent:
72
- - Faraday v1.10.2
73
- Authorization:
74
- - "[**********]"
75
- Content-Type:
76
- - application/json
77
- Accept-Encoding:
78
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
79
- Accept:
80
- - "*/*"
81
- response:
82
- status:
83
- code: 201
84
- message: Created
85
- headers:
86
- Server:
87
- - nginx/1.14.2
88
- Date:
89
- - Tue, 18 Oct 2022 12:29:16 GMT
90
- Transfer-Encoding:
91
- - chunked
92
- Connection:
93
- - keep-alive
94
- Keep-Alive:
95
- - timeout=120
96
- Location:
97
- - "/disk/yadisk_upload_here"
98
- Access-Control-Allow-Origin:
99
- - "*"
100
- Access-Control-Allow-Methods:
101
- - POST, PUT, OPTIONS
102
- Access-Control-Allow-Headers:
103
- - Content-Type, Content-Length, Content-Range, X-HTTP-Method, X-Requested-With,
104
- X-Disk-Uploader-Wait-Complete-Upload
105
- Access-Control-Expose-Headers:
106
- - Content-Length, X-Ya-Expect-Content-Length, Location
107
- body:
108
- encoding: UTF-8
109
- string: ''
110
- recorded_at: Tue, 18 Oct 2022 12:29:16 GMT
111
- recorded_with: VCR 6.1.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cloud-api.yandex.net/v1/disk/operations/78ccc91b3a034a941a72dde1ae92fbf26d0facf9bad941eee9b432f4abdfdd1e
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Tue, 18 Oct 2022 12:55:52 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Vary:
34
- - Accept-Encoding
35
- Access-Control-Allow-Methods:
36
- - GET, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"status":"success"}'
51
- recorded_at: Tue, 18 Oct 2022 12:55:52 GMT
52
- recorded_with: VCR 6.1.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cloud-api.yandex.net/v1/disk/public/resources/download?public_key=https://disk.yandex.ru/d/XzWAb9JaK605ig
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Tue, 18 Oct 2022 13:05:39 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Vary:
34
- - Accept-Encoding
35
- Access-Control-Allow-Methods:
36
- - GET, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"href":"https://downloader.disk.yandex.ru/zip/399ab66946405cfc84e690605d097efe0ec73a89d507f054d6ffa16256c9436b/634ea51b/TlFUQ1pWTXB1Y3Z5WDBSeGpBaGo3ZWVvK1VrVFBCRUY4b1Qrbnl4T1Y5MDdKYTFteXNPZjlEQ1JLMFUxNlNTRnEvSjZicG1SeU9Kb25UM1ZvWG5EYWc9PTo=?uid=0&filename=yadisk.png.zip&disposition=attachment&hash=NQTCZVMpucvyX0RxjAhj7eeo%2BUkTPBEF8oT%2BnyxOV907Ja1mysOf9DCRK0U16SSFq/J6bpmRyOJonT3VoXnDag%3D%3D%3A&limit=0&owner_uid=12345678&tknv=v2","method":"GET","templated":false}'
51
- recorded_at: Tue, 18 Oct 2022 13:05:39 GMT
52
- recorded_with: VCR 6.1.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cloud-api.yandex.net/v1/disk/public/resources?public_key=https://disk.yandex.ru/d/XzWAb9JaK605ig
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Tue, 18 Oct 2022 13:05:39 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Vary:
34
- - Accept-Encoding
35
- Access-Control-Allow-Methods:
36
- - GET, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"public_key":"NQTCZVMpucvyX0RxjAhj7eeo+UkTPBEF8oT+nyxOV907Ja1mysOf9DCRK0U16SSFq/J6bpmRyOJonT3VoXnDag==","public_url":"https://yadi.sk/d/XzWAb9JaK605ig","_embedded":{"sort":"","public_key":"NQTCZVMpucvyX0RxjAhj7eeo+UkTPBEF8oT+nyxOV907Ja1mysOf9DCRK0U16SSFq/J6bpmRyOJonT3VoXnDag==","items":[],"limit":20,"offset":0,"path":"/","total":0},"name":"yadisk.png","exif":{},"resource_id":"12345678:e8010643f169f5d1a54b366fae73d2799404e7a4c4465062d19a74c3f81bd49f","revision":1666098182045877,"created":"2022-10-18T12:20:57+00:00","modified":"2022-10-18T12:20:57+00:00","owner":{"login":"userlogin","display_name":"Ilya","uid":"12345678"},"path":"/","comment_ids":{"private_resource":"12345678:e8010643f269f5d1a54b377fae73d2799404e8a4c4465062d19a74c3f81bd49f","public_resource":"12345678:e8010643f169f5d1a54b366fae73d2799404e7a4c4465062d19a74c3f81bd49f"},"type":"dir","views_count":0}'
51
- recorded_at: Tue, 18 Oct 2022 13:05:39 GMT
52
- recorded_with: VCR 6.1.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://cloud-api.yandex.net/v1/disk/public/resources/save-to-disk?public_key=https://disk.yandex.ru/d/XzWAb9JaK605ig
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Content-Type:
15
- - application/x-www-form-urlencoded
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 201
23
- message: CREATED
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Tue, 18 Oct 2022 13:05:41 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Content-Length:
32
- - '167'
33
- Connection:
34
- - keep-alive
35
- Access-Control-Allow-Methods:
36
- - POST, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"href":"https://cloud-api.yandex.net/v1/disk/resources?path=disk%3A%2F%D0%97%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B8%2Fyadisk.png","method":"GET","templated":false}'
51
- recorded_at: Tue, 18 Oct 2022 13:05:41 GMT
52
- recorded_with: VCR 6.1.0
@@ -1,50 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: https://cloud-api.yandex.net/v1/disk/trash/resources?path=yadisk_created_dir_12b63824b98bc5eb70d25c703cfc3224a46e6896
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 204
21
- message: NO CONTENT
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Tue, 18 Oct 2022 13:16:41 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Content-Length:
30
- - '0'
31
- Connection:
32
- - keep-alive
33
- Access-Control-Allow-Methods:
34
- - GET, DELETE, OPTIONS
35
- Access-Control-Allow-Credentials:
36
- - 'true'
37
- Yandex-Cloud-Request-Id:
38
- - omitted
39
- Cache-Control:
40
- - no-cache
41
- Access-Control-Allow-Origin:
42
- - "*"
43
- Access-Control-Allow-Headers:
44
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
45
- Authorization
46
- body:
47
- encoding: UTF-8
48
- string: ''
49
- recorded_at: Tue, 18 Oct 2022 13:16:41 GMT
50
- recorded_with: VCR 6.1.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cloud-api.yandex.net/v1/disk/trash/resources?path=
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v1.10.2
12
- Authorization:
13
- - "[**********]"
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Tue, 18 Oct 2022 13:16:09 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Vary:
34
- - Accept-Encoding
35
- Access-Control-Allow-Methods:
36
- - GET, DELETE, OPTIONS
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- Yandex-Cloud-Request-Id:
40
- - omitted
41
- Cache-Control:
42
- - no-cache
43
- Access-Control-Allow-Origin:
44
- - "*"
45
- Access-Control-Allow-Headers:
46
- - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
47
- Authorization
48
- body:
49
- encoding: UTF-8
50
- string: '{"_embedded":{"sort":"","items":[{"name":"yadisk_created_dir","exif":{},"created":"2022-10-18T12:03:23+00:00","deleted":"2022-10-18T13:15:33+00:00","origin_path":"disk:/yadisk_created_dir","modified":"2022-10-18T13:15:33+00:00","resource_id":"12345678:eb75503df8c7eeef7e2b7b71ad9314a0f980ff3304a5577a5d8af4700f1122fc","path":"trash:/yadisk_created_dir_12b63824b98bc5eb70d25c703cfc3224a46e6896","comment_ids":{"private_resource":"12345678:eb75503df8c7eeef7e2b7b71ad9314a0f980ff3304a5577a5d8af4700f1122fc","public_resource":"12345678:eb75503df8c7eeef7e2b7b71ad9314a0f980ff3304a5577a5d8af4700f1122fc"},"type":"dir","revision":1666098933832448}],"limit":20,"offset":0,"path":"trash:/","total":1},"name":"trash","exif":{},"resource_id":"12345678:4db3a67d63d69257cf5c0c17c616e57706594e5ac747b2a478fd32ac9acc6284","origin_path":null,"modified":"2012-04-04T20:00:00+00:00","created":"2012-04-04T20:00:00+00:00","path":"trash:/","comment_ids":{},"type":"dir","revision":1333738864085459}'
51
- recorded_at: Tue, 18 Oct 2022 13:16:09 GMT
52
- recorded_with: VCR 6.1.0