yadisk-client 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +37 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +142 -0
  5. data/Gemfile +16 -0
  6. data/Gemfile.lock +110 -0
  7. data/LICENSE +7 -0
  8. data/README.md +61 -0
  9. data/Rakefile +16 -0
  10. data/lib/yadisk/client.rb +44 -0
  11. data/lib/yadisk/collection.rb +26 -0
  12. data/lib/yadisk/error.rb +6 -0
  13. data/lib/yadisk/object.rb +25 -0
  14. data/lib/yadisk/objects/disk.rb +6 -0
  15. data/lib/yadisk/objects/link.rb +5 -0
  16. data/lib/yadisk/objects/operation.rb +5 -0
  17. data/lib/yadisk/objects/public.rb +6 -0
  18. data/lib/yadisk/objects/resource.rb +11 -0
  19. data/lib/yadisk/objects/trash.rb +6 -0
  20. data/lib/yadisk/resources/disk.rb +88 -0
  21. data/lib/yadisk/resources/operation.rb +10 -0
  22. data/lib/yadisk/resources/public.rb +17 -0
  23. data/lib/yadisk/resources/trash.rb +20 -0
  24. data/lib/yadisk/rest.rb +58 -0
  25. data/lib/yadisk/version.rb +9 -0
  26. data/lib/yadisk.rb +35 -0
  27. data/spec/lib/yadisk/client_spec.rb +19 -0
  28. data/spec/lib/yadisk/disk_spec.rb +226 -0
  29. data/spec/lib/yadisk/errors_spec.rb +16 -0
  30. data/spec/lib/yadisk/operations_spec.rb +23 -0
  31. data/spec/lib/yadisk/public_spec.rb +51 -0
  32. data/spec/lib/yadisk/trash_spec.rb +72 -0
  33. data/spec/spec_helper.rb +24 -0
  34. data/spec/support/cassette_helpers.rb +23 -0
  35. data/spec/test_data/test_file.txt +1 -0
  36. data/spec/vcr/disk/DELETE_delete.yml +50 -0
  37. data/spec/vcr/disk/ERROR_info.yml +48 -0
  38. data/spec/vcr/disk/GET_download.yml +52 -0
  39. data/spec/vcr/disk/GET_get_meta.yml +52 -0
  40. data/spec/vcr/disk/GET_info.yml +52 -0
  41. data/spec/vcr/disk/GET_list_public.yml +52 -0
  42. data/spec/vcr/disk/GET_upload.yml +48 -0
  43. data/spec/vcr/disk/PATCH_update_meta.yml +54 -0
  44. data/spec/vcr/disk/POST_copy.yml +50 -0
  45. data/spec/vcr/disk/POST_move.yml +50 -0
  46. data/spec/vcr/disk/POST_upload_by_url.yml +52 -0
  47. data/spec/vcr/disk/PUT_create_dir.yml +50 -0
  48. data/spec/vcr/disk/PUT_publish.yml +54 -0
  49. data/spec/vcr/disk/PUT_unpublish.yml +54 -0
  50. data/spec/vcr/operations/GET_status.yml +52 -0
  51. data/spec/vcr/trash/DELETE_delete.yml +50 -0
  52. data/spec/vcr/trash/DELETE_delete_error.yml +49 -0
  53. data/spec/vcr/trash/GET_list.yml +51 -0
  54. data/spec/vcr/trash/PUT_restore.yml +51 -0
  55. data/spec/vcr_setup.rb +35 -0
  56. data/yadisk.gemspec +26 -0
  57. metadata +146 -0
@@ -0,0 +1,48 @@
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: 401
21
+ message: UNAUTHORIZED
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Wed, 05 Oct 2022 14:32:20 GMT
27
+ Content-Type:
28
+ - application/json
29
+ Content-Length:
30
+ - '99'
31
+ Connection:
32
+ - keep-alive
33
+ Access-Control-Allow-Credentials:
34
+ - 'true'
35
+ Yandex-Cloud-Request-Id:
36
+ - omitted
37
+ Cache-Control:
38
+ - no-cache
39
+ Access-Control-Allow-Origin:
40
+ - "*"
41
+ Access-Control-Allow-Headers:
42
+ - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
43
+ Authorization
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"items":[{"key":"value"}]}'
47
+ recorded_at: Wed, 05 Oct 2022 14:32:20 GMT
48
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/download?path=remote_file.txt
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
+ - Wed, 05 Oct 2022 14:32:16 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":[{"key":"value"}]}'
51
+ recorded_at: Wed, 05 Oct 2022 14:32:16 GMT
52
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources?path=remote_file.txt
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
+ - Wed, 05 Oct 2022 14:32:13 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: '{"items":[{"key":"value"}]}'
51
+ recorded_at: Wed, 05 Oct 2022 14:32:13 GMT
52
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,52 @@
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
+ - Wed, 05 Oct 2022 14:32:12 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":[{"key":"value"}]}'
51
+ recorded_at: Wed, 05 Oct 2022 14:32:12 GMT
52
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/public
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
+ - Wed, 05 Oct 2022 14:32:17 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":[{"key":"value"}]}'
51
+ recorded_at: Wed, 05 Oct 2022 14:32:18 GMT
52
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/upload?path=remote_file.txt
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: 409
21
+ message: CONFLICT
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Wed, 05 Oct 2022 14:32:12 GMT
27
+ Content-Type:
28
+ - application/json
29
+ Content-Length:
30
+ - '177'
31
+ Connection:
32
+ - keep-alive
33
+ Access-Control-Allow-Credentials:
34
+ - 'true'
35
+ Yandex-Cloud-Request-Id:
36
+ - omitted
37
+ Cache-Control:
38
+ - no-cache
39
+ Access-Control-Allow-Origin:
40
+ - "*"
41
+ Access-Control-Allow-Headers:
42
+ - Accept-Language, Accept, X-Uid, X-HTTP-Method, X-Requested-With, Content-Type,
43
+ Authorization
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"items":[{"key":"value"}]}'
47
+ recorded_at: Wed, 05 Oct 2022 14:32:12 GMT
48
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: patch
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources?path=remote_file.txt
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"custom_properties":{"key_one":"value_1","key_two":"value_2"}}'
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
+ - Wed, 05 Oct 2022 14:32:14 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: '{"items":[{"key":"value"}]}'
53
+ recorded_at: Wed, 05 Oct 2022 14:32:14 GMT
54
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/copy?from=remote_file.txt&path=remote_file_copy.txt
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
+ - Wed, 05 Oct 2022 14:32:16 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '187'
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
+ body:
47
+ encoding: UTF-8
48
+ string: '{"items":[{"key":"value"}]}'
49
+ recorded_at: Wed, 05 Oct 2022 14:32:16 GMT
50
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/move?from=remote_file_copy.txt&path=remote_file_new_name.txt
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
+ - Wed, 05 Oct 2022 14:32:17 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '195'
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
+ body:
47
+ encoding: UTF-8
48
+ string: '{"items":[{"key":"value"}]}'
49
+ recorded_at: Wed, 05 Oct 2022 14:32:17 GMT
50
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/upload?path=uploaded_by_url.png&url=https://www.example.com/image.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
+ - Wed, 05 Oct 2022 14:32:13 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: '{"items":[{"key":"value"}]}'
51
+ recorded_at: Wed, 05 Oct 2022 14:32:13 GMT
52
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources?path=test_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
+ - Wed, 05 Oct 2022 14:32:15 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '251'
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
+ body:
47
+ encoding: UTF-8
48
+ string: '{"items":[{"key":"value"}]}'
49
+ recorded_at: Wed, 05 Oct 2022 14:32:15 GMT
50
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/publish?path=remote_file.txt
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
+ - Wed, 05 Oct 2022 14:32:18 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: '{"items":[{"key":"value"}]}'
53
+ recorded_at: Wed, 05 Oct 2022 14:32:18 GMT
54
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://cloud-api.yandex.net/v1/disk/resources/unpublish?path=remote_file.txt
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
+ - Wed, 05 Oct 2022 14:32:19 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: '{"items":[{"key":"value"}]}'
53
+ recorded_at: Wed, 05 Oct 2022 14:32:19 GMT
54
+ recorded_with: VCR 6.1.0