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.
- checksums.yaml +4 -4
- data/Gemfile +0 -9
- data/Gemfile.lock +8 -39
- data/README.md +8 -2
- data/lib/yadisk/version.rb +1 -1
- data/yadisk.gemspec +2 -2
- metadata +8 -41
- data/spec/lib/yadisk/client_spec.rb +0 -15
- data/spec/lib/yadisk/disk_spec.rb +0 -229
- data/spec/lib/yadisk/operation_spec.rb +0 -18
- data/spec/lib/yadisk/public_spec.rb +0 -45
- data/spec/lib/yadisk/trash_spec.rb +0 -43
- data/spec/spec_helper.rb +0 -38
- data/spec/support/cassette_helpers.rb +0 -23
- data/spec/test_data/test_file.txt +0 -1
- data/spec/vcr/disk/copy.yml +0 -52
- data/spec/vcr/disk/create_dir.yml +0 -52
- data/spec/vcr/disk/create_dir_error_409.yml +0 -54
- data/spec/vcr/disk/delete.yml +0 -50
- data/spec/vcr/disk/download.yml +0 -52
- data/spec/vcr/disk/get_meta.yml +0 -52
- data/spec/vcr/disk/info.yml +0 -57
- data/spec/vcr/disk/last_uploaded.yml +0 -52
- data/spec/vcr/disk/list_files.yml +0 -52
- data/spec/vcr/disk/list_public.yml +0 -52
- data/spec/vcr/disk/move.yml +0 -52
- data/spec/vcr/disk/publish.yml +0 -54
- data/spec/vcr/disk/unpublish.yml +0 -54
- data/spec/vcr/disk/update_meta.yml +0 -54
- data/spec/vcr/disk/upload.yml +0 -52
- data/spec/vcr/disk/upload_by_url.yml +0 -52
- data/spec/vcr/disk/upload_from_file.yml +0 -111
- data/spec/vcr/operation/status.yml +0 -52
- data/spec/vcr/public/link.yml +0 -52
- data/spec/vcr/public/meta.yml +0 -52
- data/spec/vcr/public/save.yml +0 -52
- data/spec/vcr/trash/delete.yml +0 -50
- data/spec/vcr/trash/list.yml +0 -52
- data/spec/vcr/trash/restore.yml +0 -52
- data/spec/vcr_setup.rb +0 -31
data/spec/vcr/disk/copy.yml
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources/copy?from=yadisk_test_png.png&path=yadisk_test_png_copy.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: 201
|
23
|
-
message: CREATED
|
24
|
-
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
|
-
Date:
|
28
|
-
- Tue, 18 Oct 2022 11:48:30 GMT
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
Content-Length:
|
32
|
-
- '130'
|
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%2Fyadisk_test_png_copy.png","method":"GET","templated":false}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 11:48:30 GMT
|
52
|
-
recorded_with: VCR 6.1.0
|
@@ -1,52 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: put
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources?path=yadisk_created_dir
|
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 12:03:24 GMT
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
Content-Length:
|
32
|
-
- '124'
|
33
|
-
Connection:
|
34
|
-
- keep-alive
|
35
|
-
Access-Control-Allow-Methods:
|
36
|
-
- PUT, PATCH, DELETE, 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/resources?path=disk%3A%2Fyadisk_created_dir","method":"GET","templated":false}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 12:03:23 GMT
|
52
|
-
recorded_with: VCR 6.1.0
|
@@ -1,54 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: put
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources?path=yadisk_created_dir
|
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: 409
|
23
|
-
message: Conflict
|
24
|
-
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
|
-
Date:
|
28
|
-
- Tue, 18 Oct 2022 12:03:24 GMT
|
29
|
-
Content-Type:
|
30
|
-
- application/json
|
31
|
-
Content-Length:
|
32
|
-
- '271'
|
33
|
-
Connection:
|
34
|
-
- keep-alive
|
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
|
-
X-Envoy-Upstream-Service-Time:
|
47
|
-
- '249'
|
48
|
-
body:
|
49
|
-
encoding: UTF-8
|
50
|
-
string: '{"message":"По указанному пути \"yadisk_created_dir\" уже существует
|
51
|
-
папка с таким именем.","description":"Specified path \"yadisk_created_dir\"
|
52
|
-
points to existent directory.","error":"DiskPathPointsToExistentDirectoryError"}'
|
53
|
-
recorded_at: Tue, 18 Oct 2022 12:03:23 GMT
|
54
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/disk/delete.yml
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: delete
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources?path=yadisk_test_png.png
|
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 11:58:56 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
|
-
- PUT, PATCH, DELETE, GET, 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 11:58:55 GMT
|
50
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/disk/download.yml
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources/download?path=yadisk_test_png_copy.png
|
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:48:43 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/disk/037f3c29ce1efab998aa2f5e97f4d15044a910c366adb6faf35bc34348f90b41/634ecadb/wQYFfZvXbSuHTOTzNLBFPm0KOuGlmqJqt-gP1pnGFp3pPxbUv3VruyBmBo9eQx6ADVGmh41pOtaWjuxNFY79JA%3D%3D?uid=12345678&filename=yadisk_test_png_copy.png&disposition=attachment&hash=&limit=0&content_type=image%2Fpng&owner_uid=12345678&fsize=976&hid=11f9f98d69f194fd21a436fcc5f98c7e&media_type=image&tknv=v2&etag=08d91a170e2697b630465e9e9bc0b8bd","method":"GET","templated":false}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 11:48:42 GMT
|
52
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/disk/get_meta.yml
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources?path=yadisk_test_png.png
|
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:47:53 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, PATCH, DELETE, 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: '{"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:52+00:00","mime_type":"image/png","file":"https://downloader.disk.yandex.ru/disk/73f6463491664e1ae56d809cd81b9e188d1af9ee054c73119b283ff9eb5cbb88/634ecaa9/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":1666093672657383}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 11:47:52 GMT
|
52
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/disk/info.yml
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk
|
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: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, 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: '{"max_file_size":53687091200,"unlimited_autoupload_enabled":false,"total_space":3389266067456,"trash_size":0,"is_paid":true,"used_space":2099318908604,"system_folders":{"odnoklassniki":"disk:/Социальные
|
51
|
-
сети/Одноклассники","google":"disk:/Социальные сети/Google+","instagram":"disk:/Социальные
|
52
|
-
сети/Instagram","vkontakte":"disk:/Социальные сети/ВКонтакте","attach":"disk:/Почтовые
|
53
|
-
вложения","mailru":"disk:/Социальные сети/Мой Мир","downloads":"disk:/Загрузки/","applications":"disk:/Приложения","facebook":"disk:/Социальные
|
54
|
-
сети/Facebook","social":"disk:/Социальные сети/","messenger":"disk:/Файлы
|
55
|
-
Мессенджера","calendar":"disk:/Материалы встреч","scans":"disk:/Сканы","screenshots":"disk:/Скриншоты/","photostream":"disk:/Фотокамера/"},"user":{"country":"ru","login":"userlogin","display_name":"Ilya","uid":"12345678"},"revision":1666093125917488}'
|
56
|
-
recorded_at: Tue, 18 Oct 2022 11:43:08 GMT
|
57
|
-
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/last-uploaded?limit=1
|
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:55:47 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: '{"items":[{"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:52+00:00","mime_type":"image/png","file":"https://downloader.disk.yandex.ru/disk/739d07b1e98a23b639a7ca9e3cd07d8c0f08020f0147f8156e63e0e0f5a00894/634ecc83/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":1666093672657383}],"limit":1}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 11:55:46 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/resources/files?limit=1
|
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:52:53 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: '{"items":[{"antivirus_status":"clean","size":1771331,"comment_ids":{"private_resource":"12345678:57c4ee83eb3ceeb2f18bc6998cc063ff0af447296298bbc8917967bcec12d603","public_resource":"12345678:57c4ee83eb3ceeb2f18bc6998cc063ff0af447296298bbc8917967bcec12d603"},"name":"BecomeAnXCoder.pdf","exif":{},"created":"2012-06-12T14:10:23+00:00","resource_id":"12345678:57c4ee83eb3ceeb2f18bc6998cc063ff0af447296298bbc8917967bcec12d603","modified":"2012-06-12T14:10:23+00:00","mime_type":"application/pdf","file":"https://downloader.disk.yandex.ru/disk/06002fb71ffd5f37d2e392a3db3d53b176d3609ea5ac0f22fa8c1883877aeca8/634ecbd5/pEuHK5PJgmPBpWoQjSxrZpcHRRVwB_1TsWpns42PAgjPJV2cd48ftYZjPa3904daujDyEoSwTRKaApGlP2uhxA%3D%3D?uid=12345678&filename=BecomeAnXCoder.pdf&disposition=attachment&hash=&limit=0&content_type=application%2Fpdf&owner_uid=12345678&fsize=1771331&hid=bdd02a4b304ef7709e0c16e0890c867b&media_type=document&tknv=v2&etag=219d5b6e0b5a90ffa95b79db1d3c8aa7","media_type":"document","preview":"https://downloader.disk.yandex.ru/preview/04a9888e87b226e2708db51e9f7e128728f6bbaee9601d8c05d5eb8486cedf0a/inf/qxNRKmaykcabm3fqiYkrOAuRPD8zF8GXv13R1x_8nRTNTo-Mh_vlq9_q8A1f9K9s36a0e1BurVcWt-gwgcJjdA%3D%3D?uid=12345678&filename=BecomeAnXCoder.pdf&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=12345678&tknv=v2&size=S&crop=0","path":"disk:/Books/BecomeAnXCoder.pdf","sha256":"c94341c8cf086bf6207f444585466fa6449576009da76c0f296e6497cadbd90b","type":"file","md5":"219d5b6e0b5a90ffa95b79db1d3c8aa7","revision":1470077346326403}],"limit":1,"offset":0}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 11:52: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/resources/public?limit=1
|
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:57:06 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: '{"items":[{"antivirus_status":"clean","public_key":"kPhZek+XdUwHf+TUmFvY8swvYG+1woCj987654115z44oR7fpVfAessL+SzW6qgbq/J6bpmRyOJonT3VoXnDag==","public_url":"https://yadi.sk/i/ztOzg-OyVX6OlW","name":"Example.pdf","exif":{},"created":"2022-10-16T15:33:20+00:00","size":2771771,"resource_id":"12345678:ec8d5352235345aaeb467183282d275155759a433b7a5039314e579ae693093c","modified":"2022-10-16T15:33:20+00:00","comment_ids":{"private_resource":"12345678:ec8d5352235345aaeb467183282d275155759a433b7a5039314e579ae693093c","public_resource":"12345678:ec8d5352235345aaeb467183282d275155759a433b7a5039314e579ae693093c"},"mime_type":"application/pdf","file":"https://downloader.disk.yandex.ruetag=355b1b0f369c2d3bce7642fe216","media_type":"document","preview":"https://downloader.disk.yandex.ruetag=355b1b0f369c2d3bce7642fe216","path":"disk:/Example.pdf","sha256":"8897bf16f51006208ac6a4b93b0ecc39df404decff44dde7838c7e03a5e228xx","type":"file","md5":"30fb1b00069c2d3bce7642fe21639788","revision":4321564403723301}],"limit":1,"offset":0}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 11:57:05 GMT
|
52
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/disk/move.yml
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources/move?from=yadisk_test_png_copy.png&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: 201
|
23
|
-
message: CREATED
|
24
|
-
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
|
-
Date:
|
28
|
-
- Tue, 18 Oct 2022 12:21:14 GMT
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
Content-Length:
|
32
|
-
- '116'
|
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%2Fyadisk.png","method":"GET","templated":false}'
|
51
|
-
recorded_at: Tue, 18 Oct 2022 12:21:14 GMT
|
52
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/disk/publish.yml
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: put
|
5
|
-
uri: https://cloud-api.yandex.net/v1/disk/resources/publish?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:16 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:16 GMT
|
54
|
-
recorded_with: VCR 6.1.0
|