contentful-management 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +23 -0
  3. data/CHANGELOG.md +4 -0
  4. data/README.md +45 -1
  5. data/lib/contentful/management/asset.rb +2 -2
  6. data/lib/contentful/management/client.rb +10 -0
  7. data/lib/contentful/management/client_tag_methods_factory.rb +11 -0
  8. data/lib/contentful/management/entry.rb +3 -3
  9. data/lib/contentful/management/environment.rb +10 -0
  10. data/lib/contentful/management/environment_tag_methods_factory.rb +11 -0
  11. data/lib/contentful/management/resource/refresher.rb +1 -0
  12. data/lib/contentful/management/resource_requester.rb +2 -2
  13. data/lib/contentful/management/tag.rb +27 -0
  14. data/lib/contentful/management/version.rb +1 -1
  15. data/spec/fixtures/vcr_cassettes/environment/tag_proxy.yml +658 -0
  16. data/spec/fixtures/vcr_cassettes/tag/add_tag_to_asset.yml +456 -0
  17. data/spec/fixtures/vcr_cassettes/tag/add_tag_to_entry.yml +315 -0
  18. data/spec/fixtures/vcr_cassettes/tag/all.yml +252 -0
  19. data/spec/fixtures/vcr_cassettes/tag/create_asset_with_tags.yml +147 -0
  20. data/spec/fixtures/vcr_cassettes/tag/create_entry_with_tags.yml +293 -0
  21. data/spec/fixtures/vcr_cassettes/tag/create_visibility_private.yml +125 -0
  22. data/spec/fixtures/vcr_cassettes/tag/create_visibility_public.yml +125 -0
  23. data/spec/fixtures/vcr_cassettes/tag/destroy.yml +208 -0
  24. data/spec/fixtures/vcr_cassettes/tag/destroy_referenced.yml +226 -0
  25. data/spec/fixtures/vcr_cassettes/tag/find.yml +125 -0
  26. data/spec/fixtures/vcr_cassettes/tag/not_found.yml +98 -0
  27. data/spec/fixtures/vcr_cassettes/tag/remove_tag_from_asset.yml +456 -0
  28. data/spec/fixtures/vcr_cassettes/tag/remove_tag_from_entry.yml +315 -0
  29. data/spec/fixtures/vcr_cassettes/tag/update.yml +251 -0
  30. data/spec/lib/contentful/management/environment_spec.rb +12 -0
  31. data/spec/lib/contentful/management/tag_spec.rb +186 -0
  32. metadata +41 -7
  33. data/.travis.yml +0 -12
@@ -0,0 +1,208 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/randomTag
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/3.3.0; platform ruby/2.7.2; os macOS/21;
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - api.contentful.com
20
+ User-Agent:
21
+ - http.rb/4.4.1
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '761'
31
+ Content-Type:
32
+ - application/vnd.contentful.management.v1+json
33
+ X-Contentful-Ratelimit-Hour-Limit:
34
+ - '36000'
35
+ X-Contentful-Ratelimit-Second-Limit:
36
+ - '10'
37
+ X-Contentful-Ratelimit-Reset:
38
+ - '0'
39
+ X-Contentful-Ratelimit-Hour-Remaining:
40
+ - '35999'
41
+ X-Contentful-Ratelimit-Second-Remaining:
42
+ - '9'
43
+ Cf-Environment-Id:
44
+ - master
45
+ Cf-Environment-Uuid:
46
+ - master
47
+ Cf-Space-Id:
48
+ - o4h6g9w3pooi
49
+ Etag:
50
+ - '"9002876232051501929"'
51
+ X-Contentful-Route:
52
+ - "/spaces/:space/environments/:environment/tags/:id"
53
+ Strict-Transport-Security:
54
+ - max-age=15768000
55
+ X-Content-Type-Options:
56
+ - nosniff
57
+ Contentful-Api:
58
+ - cma
59
+ Server:
60
+ - Contentful
61
+ Contentful-Upstream:
62
+ - content-api
63
+ Access-Control-Allow-Origin:
64
+ - "*"
65
+ Access-Control-Allow-Headers:
66
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-Tag-Visibility,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save,cf-trace
67
+ Access-Control-Expose-Headers:
68
+ - Etag
69
+ Access-Control-Allow-Methods:
70
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
71
+ Access-Control-Max-Age:
72
+ - '1728000'
73
+ Cache-Control:
74
+ - no-store
75
+ Accept-Ranges:
76
+ - bytes
77
+ Date:
78
+ - Tue, 19 Apr 2022 15:23:04 GMT
79
+ X-Contentful-Request-Id:
80
+ - eca5f24e-25fd-4c99-b31d-c53ed6c91ac4
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: |
84
+ {
85
+ "sys": {
86
+ "type": "Tag",
87
+ "id": "randomTag",
88
+ "space": {
89
+ "sys": {
90
+ "type": "Link",
91
+ "linkType": "Space",
92
+ "id": "o4h6g9w3pooi"
93
+ }
94
+ },
95
+ "environment": {
96
+ "sys": {
97
+ "id": "master",
98
+ "type": "Link",
99
+ "linkType": "Environment"
100
+ }
101
+ },
102
+ "createdBy": {
103
+ "sys": {
104
+ "type": "Link",
105
+ "linkType": "User",
106
+ "id": "59Erm8D1JuuD273aXNb65T"
107
+ }
108
+ },
109
+ "updatedBy": {
110
+ "sys": {
111
+ "type": "Link",
112
+ "linkType": "User",
113
+ "id": "59Erm8D1JuuD273aXNb65T"
114
+ }
115
+ },
116
+ "createdAt": "2022-04-19T15:23:00.106Z",
117
+ "updatedAt": "2022-04-19T15:23:00.106Z",
118
+ "version": 1,
119
+ "visibility": "private"
120
+ },
121
+ "name": "random tag"
122
+ }
123
+ http_version:
124
+ recorded_at: Tue, 19 Apr 2022 15:23:04 GMT
125
+ - request:
126
+ method: delete
127
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/randomTag
128
+ body:
129
+ encoding: UTF-8
130
+ string: ''
131
+ headers:
132
+ X-Contentful-User-Agent:
133
+ - sdk contentful-management.rb/3.3.0; platform ruby/2.7.2; os macOS/21;
134
+ Authorization:
135
+ - Bearer <ACCESS_TOKEN>
136
+ Content-Type:
137
+ - application/vnd.contentful.management.v1+json
138
+ X-Contentful-Version:
139
+ - '1'
140
+ Version:
141
+ - '1'
142
+ Connection:
143
+ - close
144
+ Host:
145
+ - api.contentful.com
146
+ User-Agent:
147
+ - http.rb/4.4.1
148
+ response:
149
+ status:
150
+ code: 204
151
+ message: No Content
152
+ headers:
153
+ Connection:
154
+ - close
155
+ X-Contentful-Ratelimit-Hour-Remaining:
156
+ - '35999'
157
+ X-Contentful-Ratelimit-Second-Remaining:
158
+ - '9'
159
+ X-Contentful-Ratelimit-Hour-Limit:
160
+ - '36000'
161
+ X-Contentful-Ratelimit-Second-Limit:
162
+ - '10'
163
+ X-Contentful-Ratelimit-Reset:
164
+ - '0'
165
+ Cf-Environment-Id:
166
+ - master
167
+ Cf-Environment-Uuid:
168
+ - master
169
+ Cf-Space-Id:
170
+ - o4h6g9w3pooi
171
+ Etag:
172
+ - '"9002876232051501929"'
173
+ X-Contentful-Route:
174
+ - "/spaces/:space/environments/:environment/tags/:id"
175
+ Strict-Transport-Security:
176
+ - max-age=15768000
177
+ X-Content-Type-Options:
178
+ - nosniff
179
+ Contentful-Api:
180
+ - cma
181
+ Server:
182
+ - Contentful
183
+ Contentful-Upstream:
184
+ - content-api
185
+ Access-Control-Allow-Origin:
186
+ - "*"
187
+ Access-Control-Allow-Headers:
188
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-Tag-Visibility,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save,cf-trace
189
+ Access-Control-Expose-Headers:
190
+ - Etag
191
+ Access-Control-Allow-Methods:
192
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
193
+ Access-Control-Max-Age:
194
+ - '1728000'
195
+ Cache-Control:
196
+ - no-store
197
+ Accept-Ranges:
198
+ - bytes
199
+ Date:
200
+ - Tue, 19 Apr 2022 15:23:05 GMT
201
+ X-Contentful-Request-Id:
202
+ - 7b87415d-c76d-4ede-b0e2-4031ad6a43df
203
+ body:
204
+ encoding: ASCII-8BIT
205
+ string: ''
206
+ http_version:
207
+ recorded_at: Tue, 19 Apr 2022 15:23:05 GMT
208
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,226 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/icon
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/3.3.0; platform ruby/2.7.2; os macOS/21;
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - api.contentful.com
20
+ User-Agent:
21
+ - http.rb/4.4.1
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '749'
31
+ Content-Type:
32
+ - application/vnd.contentful.management.v1+json
33
+ X-Contentful-Ratelimit-Second-Limit:
34
+ - '10'
35
+ X-Contentful-Ratelimit-Reset:
36
+ - '0'
37
+ X-Contentful-Ratelimit-Hour-Remaining:
38
+ - '35999'
39
+ X-Contentful-Ratelimit-Second-Remaining:
40
+ - '9'
41
+ X-Contentful-Ratelimit-Hour-Limit:
42
+ - '36000'
43
+ Cf-Environment-Id:
44
+ - master
45
+ Cf-Environment-Uuid:
46
+ - master
47
+ Cf-Space-Id:
48
+ - o4h6g9w3pooi
49
+ Etag:
50
+ - '"4525717000654800747"'
51
+ X-Contentful-Route:
52
+ - "/spaces/:space/environments/:environment/tags/:id"
53
+ Strict-Transport-Security:
54
+ - max-age=15768000
55
+ X-Content-Type-Options:
56
+ - nosniff
57
+ Contentful-Api:
58
+ - cma
59
+ Server:
60
+ - Contentful
61
+ Contentful-Upstream:
62
+ - content-api
63
+ Access-Control-Allow-Origin:
64
+ - "*"
65
+ Access-Control-Allow-Headers:
66
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-Tag-Visibility,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save,cf-trace
67
+ Access-Control-Expose-Headers:
68
+ - Etag
69
+ Access-Control-Allow-Methods:
70
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
71
+ Access-Control-Max-Age:
72
+ - '1728000'
73
+ Cache-Control:
74
+ - no-store
75
+ Accept-Ranges:
76
+ - bytes
77
+ Date:
78
+ - Tue, 19 Apr 2022 15:14:31 GMT
79
+ X-Contentful-Request-Id:
80
+ - 2b95374f-6ae8-4184-a0f3-5a7a360a1066
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: |
84
+ {
85
+ "sys": {
86
+ "type": "Tag",
87
+ "id": "icon",
88
+ "space": {
89
+ "sys": {
90
+ "type": "Link",
91
+ "linkType": "Space",
92
+ "id": "o4h6g9w3pooi"
93
+ }
94
+ },
95
+ "environment": {
96
+ "sys": {
97
+ "id": "master",
98
+ "type": "Link",
99
+ "linkType": "Environment"
100
+ }
101
+ },
102
+ "createdBy": {
103
+ "sys": {
104
+ "type": "Link",
105
+ "linkType": "User",
106
+ "id": "59Erm8D1JuuD273aXNb65T"
107
+ }
108
+ },
109
+ "updatedBy": {
110
+ "sys": {
111
+ "type": "Link",
112
+ "linkType": "User",
113
+ "id": "59Erm8D1JuuD273aXNb65T"
114
+ }
115
+ },
116
+ "createdAt": "2022-01-19T18:50:31.193Z",
117
+ "updatedAt": "2022-01-19T18:50:31.193Z",
118
+ "version": 1,
119
+ "visibility": "public"
120
+ },
121
+ "name": "icon"
122
+ }
123
+ http_version:
124
+ recorded_at: Tue, 19 Apr 2022 15:14:31 GMT
125
+ - request:
126
+ method: delete
127
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/icon
128
+ body:
129
+ encoding: UTF-8
130
+ string: ''
131
+ headers:
132
+ X-Contentful-User-Agent:
133
+ - sdk contentful-management.rb/3.3.0; platform ruby/2.7.2; os macOS/21;
134
+ Authorization:
135
+ - Bearer <ACCESS_TOKEN>
136
+ Content-Type:
137
+ - application/vnd.contentful.management.v1+json
138
+ X-Contentful-Version:
139
+ - '1'
140
+ Version:
141
+ - '1'
142
+ Connection:
143
+ - close
144
+ Host:
145
+ - api.contentful.com
146
+ User-Agent:
147
+ - http.rb/4.4.1
148
+ response:
149
+ status:
150
+ code: 422
151
+ message: Unprocessable Entity
152
+ headers:
153
+ Connection:
154
+ - close
155
+ Content-Length:
156
+ - '310'
157
+ Content-Type:
158
+ - application/vnd.contentful.management.v1+json
159
+ X-Contentful-Ratelimit-Reset:
160
+ - '0'
161
+ X-Contentful-Ratelimit-Hour-Remaining:
162
+ - '35999'
163
+ X-Contentful-Ratelimit-Second-Remaining:
164
+ - '9'
165
+ X-Contentful-Ratelimit-Hour-Limit:
166
+ - '36000'
167
+ X-Contentful-Ratelimit-Second-Limit:
168
+ - '10'
169
+ Cf-Environment-Id:
170
+ - master
171
+ Cf-Environment-Uuid:
172
+ - master
173
+ Cf-Space-Id:
174
+ - o4h6g9w3pooi
175
+ Etag:
176
+ - '"3340999475138518114"'
177
+ X-Contentful-Route:
178
+ - "/spaces/:space/environments/:environment/tags/:id"
179
+ Strict-Transport-Security:
180
+ - max-age=15768000
181
+ X-Content-Type-Options:
182
+ - nosniff
183
+ Contentful-Api:
184
+ - cma
185
+ Server:
186
+ - Contentful
187
+ Contentful-Upstream:
188
+ - content-api
189
+ Access-Control-Allow-Origin:
190
+ - "*"
191
+ Access-Control-Allow-Headers:
192
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-Tag-Visibility,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save,cf-trace
193
+ Access-Control-Expose-Headers:
194
+ - Etag
195
+ Access-Control-Allow-Methods:
196
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
197
+ Access-Control-Max-Age:
198
+ - '1728000'
199
+ Accept-Ranges:
200
+ - bytes
201
+ Date:
202
+ - Tue, 19 Apr 2022 15:14:32 GMT
203
+ X-Contentful-Request-Id:
204
+ - 727a53d1-e679-4654-8bec-f955da1334e9
205
+ body:
206
+ encoding: ASCII-8BIT
207
+ string: |
208
+ {
209
+ "sys": {
210
+ "type": "Error",
211
+ "id": "ActionPreconditionsFailed"
212
+ },
213
+ "message": "Validation error",
214
+ "details": {
215
+ "errors": [
216
+ {
217
+ "name": "reference",
218
+ "details": "Tag is referenced by another entity"
219
+ }
220
+ ]
221
+ },
222
+ "requestId": "727a53d1-e679-4654-8bec-f955da1334e9"
223
+ }
224
+ http_version:
225
+ recorded_at: Tue, 19 Apr 2022 15:14:32 GMT
226
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,125 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/fooTag
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/3.3.0; platform ruby/2.7.2; os macOS/21;
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - api.contentful.com
20
+ User-Agent:
21
+ - http.rb/4.4.1
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '755'
31
+ Content-Type:
32
+ - application/vnd.contentful.management.v1+json
33
+ X-Contentful-Ratelimit-Hour-Limit:
34
+ - '36000'
35
+ X-Contentful-Ratelimit-Second-Limit:
36
+ - '10'
37
+ X-Contentful-Ratelimit-Reset:
38
+ - '0'
39
+ X-Contentful-Ratelimit-Hour-Remaining:
40
+ - '35999'
41
+ X-Contentful-Ratelimit-Second-Remaining:
42
+ - '9'
43
+ Cf-Environment-Id:
44
+ - master
45
+ Cf-Environment-Uuid:
46
+ - master
47
+ Cf-Space-Id:
48
+ - o4h6g9w3pooi
49
+ Etag:
50
+ - '"10585579938702672161"'
51
+ X-Contentful-Route:
52
+ - "/spaces/:space/environments/:environment/tags/:id"
53
+ Strict-Transport-Security:
54
+ - max-age=15768000
55
+ X-Content-Type-Options:
56
+ - nosniff
57
+ Contentful-Api:
58
+ - cma
59
+ Server:
60
+ - Contentful
61
+ Contentful-Upstream:
62
+ - content-api
63
+ Access-Control-Allow-Origin:
64
+ - "*"
65
+ Access-Control-Allow-Headers:
66
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-Tag-Visibility,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save,cf-trace
67
+ Access-Control-Expose-Headers:
68
+ - Etag
69
+ Access-Control-Allow-Methods:
70
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
71
+ Access-Control-Max-Age:
72
+ - '1728000'
73
+ Cache-Control:
74
+ - no-store
75
+ Accept-Ranges:
76
+ - bytes
77
+ Date:
78
+ - Tue, 19 Apr 2022 15:12:08 GMT
79
+ X-Contentful-Request-Id:
80
+ - d880a88d-ef78-4f15-af07-5f4ec56e863f
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: |
84
+ {
85
+ "sys": {
86
+ "type": "Tag",
87
+ "id": "fooTag",
88
+ "space": {
89
+ "sys": {
90
+ "type": "Link",
91
+ "linkType": "Space",
92
+ "id": "o4h6g9w3pooi"
93
+ }
94
+ },
95
+ "environment": {
96
+ "sys": {
97
+ "id": "master",
98
+ "type": "Link",
99
+ "linkType": "Environment"
100
+ }
101
+ },
102
+ "createdBy": {
103
+ "sys": {
104
+ "type": "Link",
105
+ "linkType": "User",
106
+ "id": "59Erm8D1JuuD273aXNb65T"
107
+ }
108
+ },
109
+ "updatedBy": {
110
+ "sys": {
111
+ "type": "Link",
112
+ "linkType": "User",
113
+ "id": "59Erm8D1JuuD273aXNb65T"
114
+ }
115
+ },
116
+ "createdAt": "2022-04-12T05:09:33.997Z",
117
+ "updatedAt": "2022-04-19T15:11:43.850Z",
118
+ "version": 2,
119
+ "visibility": "private"
120
+ },
121
+ "name": "Foo Tag"
122
+ }
123
+ http_version:
124
+ recorded_at: Tue, 19 Apr 2022 15:12:08 GMT
125
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,98 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/not_exist
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/3.3.0; platform ruby/2.7.2; os macOS/21;
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - api.contentful.com
20
+ User-Agent:
21
+ - http.rb/4.4.1
22
+ response:
23
+ status:
24
+ code: 404
25
+ message: Not Found
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '284'
31
+ Content-Type:
32
+ - application/vnd.contentful.management.v1+json
33
+ X-Contentful-Ratelimit-Reset:
34
+ - '0'
35
+ X-Contentful-Ratelimit-Hour-Remaining:
36
+ - '35999'
37
+ X-Contentful-Ratelimit-Second-Remaining:
38
+ - '9'
39
+ X-Contentful-Ratelimit-Hour-Limit:
40
+ - '36000'
41
+ X-Contentful-Ratelimit-Second-Limit:
42
+ - '10'
43
+ Cf-Environment-Id:
44
+ - master
45
+ Cf-Environment-Uuid:
46
+ - master
47
+ Cf-Space-Id:
48
+ - o4h6g9w3pooi
49
+ Etag:
50
+ - '"4374314573011755726"'
51
+ X-Contentful-Route:
52
+ - "/spaces/:space/environments/:environment/tags/:id"
53
+ Strict-Transport-Security:
54
+ - max-age=15768000
55
+ X-Content-Type-Options:
56
+ - nosniff
57
+ Contentful-Api:
58
+ - cma
59
+ Server:
60
+ - Contentful
61
+ Contentful-Upstream:
62
+ - content-api
63
+ Access-Control-Allow-Origin:
64
+ - "*"
65
+ Access-Control-Allow-Headers:
66
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-Tag-Visibility,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save,cf-trace
67
+ Access-Control-Expose-Headers:
68
+ - Etag
69
+ Access-Control-Allow-Methods:
70
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
71
+ Access-Control-Max-Age:
72
+ - '1728000'
73
+ Accept-Ranges:
74
+ - bytes
75
+ Date:
76
+ - Tue, 19 Apr 2022 15:12:09 GMT
77
+ X-Contentful-Request-Id:
78
+ - ef116ddd-bbd8-4e06-96f5-7de802748524
79
+ body:
80
+ encoding: ASCII-8BIT
81
+ string: |
82
+ {
83
+ "sys": {
84
+ "type": "Error",
85
+ "id": "NotFound"
86
+ },
87
+ "message": "The resource could not be found.",
88
+ "details": {
89
+ "type": "Tag",
90
+ "id": "not_exist",
91
+ "environment": "master",
92
+ "space": "o4h6g9w3pooi"
93
+ },
94
+ "requestId": "ef116ddd-bbd8-4e06-96f5-7de802748524"
95
+ }
96
+ http_version:
97
+ recorded_at: Tue, 19 Apr 2022 15:12:09 GMT
98
+ recorded_with: VCR 4.0.0