contentful-management 2.9.1 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +30 -13
  4. data/contentful-management.gemspec +6 -5
  5. data/lib/contentful/management/client.rb +10 -12
  6. data/lib/contentful/management/{client_usage_period_methods_factory.rb → client_organization_periodic_usage_methods_factory.rb} +3 -4
  7. data/lib/contentful/management/client_space_methods_factory.rb +2 -2
  8. data/lib/contentful/management/{client_api_usage_methods_factory.rb → client_space_periodic_usage_methods_factory.rb} +4 -11
  9. data/lib/contentful/management/entry.rb +14 -12
  10. data/lib/contentful/management/field.rb +3 -1
  11. data/lib/contentful/management/organization.rb +18 -8
  12. data/lib/contentful/management/{api_usage.rb → organization_periodic_usage.rb} +13 -18
  13. data/lib/contentful/management/organization_user_methods_factory.rb +18 -0
  14. data/lib/contentful/management/resource.rb +3 -2
  15. data/lib/contentful/management/resource/environment_aware.rb +11 -8
  16. data/lib/contentful/management/resource_builder.rb +4 -4
  17. data/lib/contentful/management/space.rb +12 -2
  18. data/lib/contentful/management/{usage_period.rb → space_periodic_usage.rb} +12 -9
  19. data/lib/contentful/management/space_user_methods_factory.rb +19 -0
  20. data/lib/contentful/management/user.rb +7 -1
  21. data/lib/contentful/management/validation.rb +6 -1
  22. data/lib/contentful/management/version.rb +1 -1
  23. data/spec/fixtures/vcr_cassettes/asset/196_environment_id.yml +140 -0
  24. data/spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml +150 -0
  25. data/spec/fixtures/vcr_cassettes/entry/issue_215_1.yml +905 -0
  26. data/spec/fixtures/vcr_cassettes/entry/issue_215_2.yml +899 -0
  27. data/spec/fixtures/vcr_cassettes/entry/issue_215_3.yml +893 -0
  28. data/spec/fixtures/vcr_cassettes/organization/user.yml +238 -0
  29. data/spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml +368 -0
  30. data/spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml +167 -0
  31. data/spec/fixtures/vcr_cassettes/space/user.yml +254 -0
  32. data/spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml +6800 -0
  33. data/spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml +1976 -0
  34. data/spec/lib/contentful/management/asset_spec.rb +8 -0
  35. data/spec/lib/contentful/management/content_type_spec.rb +6 -0
  36. data/spec/lib/contentful/management/entry_spec.rb +48 -0
  37. data/spec/lib/contentful/management/organization_periodic_usage_spec.rb +36 -0
  38. data/spec/lib/contentful/management/organization_spec.rb +20 -0
  39. data/spec/lib/contentful/management/space_periodic_usage_spec.rb +36 -0
  40. data/spec/lib/contentful/management/space_spec.rb +20 -0
  41. metadata +68 -34
  42. data/spec/fixtures/vcr_cassettes/api_usage/all.yml +0 -155
  43. data/spec/fixtures/vcr_cassettes/usage_period/all.yml +0 -114
  44. data/spec/lib/contentful/management/api_usage_spec.rb +0 -28
  45. data/spec/lib/contentful/management/usage_period_spec.rb +0 -27
@@ -0,0 +1,905 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/vuo79u060fmw
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
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
+ Accept-Ranges:
28
+ - bytes
29
+ Access-Control-Allow-Headers:
30
+ - 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-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
31
+ Access-Control-Allow-Methods:
32
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Expose-Headers:
36
+ - Etag
37
+ Access-Control-Max-Age:
38
+ - '1728000'
39
+ Cache-Control:
40
+ - max-age=0
41
+ Cf-Organization-Id:
42
+ - 4SsuxQCaMaemfIms52Jr8s
43
+ Cf-Space-Id:
44
+ - vuo79u060fmw
45
+ Content-Type:
46
+ - application/vnd.contentful.management.v1+json
47
+ Contentful-Api:
48
+ - cma
49
+ Date:
50
+ - Thu, 02 Jul 2020 11:08:58 GMT
51
+ Etag:
52
+ - W/"600c18d721048034dcdaf8c7b867fe49"
53
+ Referrer-Policy:
54
+ - strict-origin-when-cross-origin
55
+ Server:
56
+ - Contentful
57
+ Strict-Transport-Security:
58
+ - max-age=15768000
59
+ X-Content-Type-Options:
60
+ - nosniff
61
+ X-Contentful-Ratelimit-Hour-Limit:
62
+ - '36000'
63
+ X-Contentful-Ratelimit-Hour-Remaining:
64
+ - '35999'
65
+ X-Contentful-Ratelimit-Reset:
66
+ - '0'
67
+ X-Contentful-Ratelimit-Second-Limit:
68
+ - '10'
69
+ X-Contentful-Ratelimit-Second-Remaining:
70
+ - '9'
71
+ X-Contentful-Request-Id:
72
+ - af7ffa726487d39fbb0755d87c7f865e
73
+ X-Download-Options:
74
+ - noopen
75
+ X-Frame-Options:
76
+ - ALLOWALL
77
+ X-Permitted-Cross-Domain-Policies:
78
+ - none
79
+ X-Xss-Protection:
80
+ - 1; mode=block
81
+ Content-Length:
82
+ - '609'
83
+ Connection:
84
+ - Close
85
+ Set-Cookie:
86
+ - incap_ses_878_673446=euo+SzmYolOzeTzLXUgvDErA/V4AAAAAtY6wQXeXAlFVRjf2r6gB7Q==;
87
+ path=/; Domain=.contentful.com
88
+ - nlbi_673446=VGbBVyT4hS+nbM0mYMlkBAAAAABvU5CnUYhBaZKkt0VuKinw; path=/; Domain=.contentful.com
89
+ - visid_incap_673446=ffctK6+pRNCn6rVyZ0UCMkrA/V4AAAAAQUIPAAAAAABjOwLlgsYy0JoGJPuS9813;
90
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
91
+ X-Cdn:
92
+ - Incapsula
93
+ X-Iinfo:
94
+ - 12-35946183-35946197 NNNY CT(0 0 0) RT(1593688137916 66) q(0 0 0 -1) r(1 1)
95
+ U5
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: |+
99
+ {
100
+ "name":"management.rb - #215",
101
+ "sys":{
102
+ "type":"Space",
103
+ "id":"vuo79u060fmw",
104
+ "version":1,
105
+ "createdBy":{
106
+ "sys":{
107
+ "type":"Link",
108
+ "linkType":"User",
109
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
110
+ }
111
+ },
112
+ "createdAt":"2020-07-02T10:40:30Z",
113
+ "updatedBy":{
114
+ "sys":{
115
+ "type":"Link",
116
+ "linkType":"User",
117
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
118
+ }
119
+ },
120
+ "updatedAt":"2020-07-02T10:40:30Z",
121
+ "organization":{
122
+ "sys":{
123
+ "type":"Link",
124
+ "linkType":"Organization",
125
+ "id":"4SsuxQCaMaemfIms52Jr8s"
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ http_version:
132
+ recorded_at: Thu, 02 Jul 2020 11:08:58 GMT
133
+ - request:
134
+ method: get
135
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master
136
+ body:
137
+ encoding: UTF-8
138
+ string: ''
139
+ headers:
140
+ X-Contentful-User-Agent:
141
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
142
+ Authorization:
143
+ - Bearer <ACCESS_TOKEN>
144
+ Content-Type:
145
+ - application/vnd.contentful.management.v1+json
146
+ Connection:
147
+ - close
148
+ Host:
149
+ - api.contentful.com
150
+ User-Agent:
151
+ - http.rb/4.4.1
152
+ response:
153
+ status:
154
+ code: 200
155
+ message: OK
156
+ headers:
157
+ Accept-Ranges:
158
+ - bytes
159
+ Access-Control-Allow-Headers:
160
+ - 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-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
161
+ Access-Control-Allow-Methods:
162
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
163
+ Access-Control-Allow-Origin:
164
+ - "*"
165
+ Access-Control-Expose-Headers:
166
+ - Etag
167
+ Access-Control-Max-Age:
168
+ - '1728000'
169
+ Cache-Control:
170
+ - max-age=0
171
+ Cf-Organization-Id:
172
+ - 4SsuxQCaMaemfIms52Jr8s
173
+ Cf-Space-Id:
174
+ - vuo79u060fmw
175
+ Content-Type:
176
+ - application/vnd.contentful.management.v1+json
177
+ Contentful-Api:
178
+ - cma
179
+ Date:
180
+ - Thu, 02 Jul 2020 11:08:58 GMT
181
+ Etag:
182
+ - W/"a282fd54c09fd4a1e6f9f8e3cec37e64"
183
+ Referrer-Policy:
184
+ - strict-origin-when-cross-origin
185
+ Server:
186
+ - Contentful
187
+ Strict-Transport-Security:
188
+ - max-age=15768000
189
+ X-Content-Type-Options:
190
+ - nosniff
191
+ X-Contentful-Ratelimit-Hour-Limit:
192
+ - '36000'
193
+ X-Contentful-Ratelimit-Hour-Remaining:
194
+ - '35998'
195
+ X-Contentful-Ratelimit-Reset:
196
+ - '0'
197
+ X-Contentful-Ratelimit-Second-Limit:
198
+ - '10'
199
+ X-Contentful-Ratelimit-Second-Remaining:
200
+ - '8'
201
+ X-Contentful-Request-Id:
202
+ - 6587a835e586e57c932221acc06977da
203
+ X-Download-Options:
204
+ - noopen
205
+ X-Frame-Options:
206
+ - ALLOWALL
207
+ X-Permitted-Cross-Domain-Policies:
208
+ - none
209
+ X-Xss-Protection:
210
+ - 1; mode=block
211
+ Content-Length:
212
+ - '688'
213
+ Connection:
214
+ - Close
215
+ Set-Cookie:
216
+ - incap_ses_878_673446=2NuNU/wCkE37eTzLXUgvDErA/V4AAAAAOukJY9nfib3fkqOHlSWbVw==;
217
+ path=/; Domain=.contentful.com
218
+ - nlbi_673446=4seLRmaeViuExU4OYMlkBAAAAAAXnWH5RpVXypW5bSoPMWHA; path=/; Domain=.contentful.com
219
+ - visid_incap_673446=oKF+tsyVQZeBdRjaV9ITE0rA/V4AAAAAQUIPAAAAAAD0a+lkJgSpMhZJs00uQDV5;
220
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
221
+ X-Cdn:
222
+ - Incapsula
223
+ X-Iinfo:
224
+ - 9-10766258-10766259 NNNY CT(0 0 0) RT(1593688138241 56) q(0 0 0 -1) r(2 2)
225
+ U5
226
+ body:
227
+ encoding: ASCII-8BIT
228
+ string: |+
229
+ {
230
+ "name":"master",
231
+ "sys":{
232
+ "type":"Environment",
233
+ "id":"master",
234
+ "version":1,
235
+ "space":{
236
+ "sys":{
237
+ "type":"Link",
238
+ "linkType":"Space",
239
+ "id":"vuo79u060fmw"
240
+ }
241
+ },
242
+ "status":{
243
+ "sys":{
244
+ "type":"Link",
245
+ "linkType":"Status",
246
+ "id":"ready"
247
+ }
248
+ },
249
+ "createdBy":{
250
+ "sys":{
251
+ "type":"Link",
252
+ "linkType":"User",
253
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
254
+ }
255
+ },
256
+ "createdAt":"2020-07-02T10:40:30Z",
257
+ "updatedBy":{
258
+ "sys":{
259
+ "type":"Link",
260
+ "linkType":"User",
261
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
262
+ }
263
+ },
264
+ "updatedAt":"2020-07-02T10:40:30Z"
265
+ }
266
+ }
267
+
268
+ http_version:
269
+ recorded_at: Thu, 02 Jul 2020 11:08:58 GMT
270
+ - request:
271
+ method: get
272
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/30QNJFxJQwLpdqZn8CHsHf
273
+ body:
274
+ encoding: UTF-8
275
+ string: ''
276
+ headers:
277
+ X-Contentful-User-Agent:
278
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
279
+ Authorization:
280
+ - Bearer <ACCESS_TOKEN>
281
+ Content-Type:
282
+ - application/vnd.contentful.management.v1+json
283
+ Connection:
284
+ - close
285
+ Host:
286
+ - api.contentful.com
287
+ User-Agent:
288
+ - http.rb/4.4.1
289
+ response:
290
+ status:
291
+ code: 200
292
+ message: OK
293
+ headers:
294
+ Access-Control-Allow-Headers:
295
+ - 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-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
296
+ Access-Control-Allow-Methods:
297
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
298
+ Access-Control-Allow-Origin:
299
+ - "*"
300
+ Access-Control-Expose-Headers:
301
+ - Etag
302
+ Access-Control-Max-Age:
303
+ - '1728000'
304
+ Cf-Environment-Id:
305
+ - master
306
+ Cf-Environment-Uuid:
307
+ - master
308
+ Cf-Space-Id:
309
+ - vuo79u060fmw
310
+ Content-Type:
311
+ - application/vnd.contentful.management.v1+json
312
+ Contentful-Api:
313
+ - cma
314
+ Date:
315
+ - Thu, 02 Jul 2020 11:08:58 GMT
316
+ Etag:
317
+ - '"15362932808005589327"'
318
+ Server:
319
+ - Contentful
320
+ Strict-Transport-Security:
321
+ - max-age=15768000
322
+ X-Content-Type-Options:
323
+ - nosniff
324
+ X-Contentful-Ratelimit-Hour-Limit:
325
+ - '36000'
326
+ X-Contentful-Ratelimit-Hour-Remaining:
327
+ - '35997'
328
+ X-Contentful-Ratelimit-Reset:
329
+ - '0'
330
+ X-Contentful-Ratelimit-Second-Limit:
331
+ - '10'
332
+ X-Contentful-Ratelimit-Second-Remaining:
333
+ - '7'
334
+ X-Contentful-Request-Id:
335
+ - 7732242cda35896fc6858dcd68ccf110
336
+ Content-Length:
337
+ - '1336'
338
+ Connection:
339
+ - Close
340
+ Set-Cookie:
341
+ - incap_ses_878_673446=C22IU1pejidKejzLXUgvDErA/V4AAAAArm5WaJd8txYhPJbh8nd3LQ==;
342
+ path=/; Domain=.contentful.com
343
+ - nlbi_673446=qEi1FTufHzHufeuzYMlkBAAAAAAXkJ0KCdpO+XvACUUH96NI; path=/; Domain=.contentful.com
344
+ - visid_incap_673446=2Squb80/S+afcD1LerwO5krA/V4AAAAAQUIPAAAAAAA7qaeFZJ2irhhJFygTAQli;
345
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
346
+ X-Cdn:
347
+ - Incapsula
348
+ X-Iinfo:
349
+ - 3-13057547-13057550 NNNY CT(0 0 0) RT(1593688138569 65) q(0 0 0 -1) r(3 3)
350
+ U5
351
+ body:
352
+ encoding: ASCII-8BIT
353
+ string: |
354
+ {
355
+ "metadata": {
356
+ "tags": []
357
+ },
358
+ "sys": {
359
+ "space": {
360
+ "sys": {
361
+ "type": "Link",
362
+ "linkType": "Space",
363
+ "id": "vuo79u060fmw"
364
+ }
365
+ },
366
+ "id": "30QNJFxJQwLpdqZn8CHsHf",
367
+ "type": "Entry",
368
+ "createdAt": "2020-07-02T10:41:23.580Z",
369
+ "updatedAt": "2020-07-02T10:49:08.754Z",
370
+ "environment": {
371
+ "sys": {
372
+ "id": "master",
373
+ "type": "Link",
374
+ "linkType": "Environment"
375
+ }
376
+ },
377
+ "publishedVersion": 6,
378
+ "publishedAt": "2020-07-02T10:49:08.754Z",
379
+ "firstPublishedAt": "2020-07-02T10:41:37.829Z",
380
+ "createdBy": {
381
+ "sys": {
382
+ "type": "Link",
383
+ "linkType": "User",
384
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
385
+ }
386
+ },
387
+ "updatedBy": {
388
+ "sys": {
389
+ "type": "Link",
390
+ "linkType": "User",
391
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
392
+ }
393
+ },
394
+ "publishedCounter": 2,
395
+ "version": 7,
396
+ "publishedBy": {
397
+ "sys": {
398
+ "type": "Link",
399
+ "linkType": "User",
400
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
401
+ }
402
+ },
403
+ "contentType": {
404
+ "sys": {
405
+ "type": "Link",
406
+ "linkType": "ContentType",
407
+ "id": "test"
408
+ }
409
+ }
410
+ },
411
+ "fields": {
412
+ "title": {
413
+ "en-US": "With JSON Array"
414
+ },
415
+ "json": {
416
+ "en-US": [
417
+ 1,
418
+ 2,
419
+ 3
420
+ ]
421
+ }
422
+ }
423
+ }
424
+ http_version:
425
+ recorded_at: Thu, 02 Jul 2020 11:08:58 GMT
426
+ - request:
427
+ method: get
428
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/content_types/test
429
+ body:
430
+ encoding: UTF-8
431
+ string: ''
432
+ headers:
433
+ X-Contentful-User-Agent:
434
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
435
+ Authorization:
436
+ - Bearer <ACCESS_TOKEN>
437
+ Content-Type:
438
+ - application/vnd.contentful.management.v1+json
439
+ Connection:
440
+ - close
441
+ Host:
442
+ - api.contentful.com
443
+ User-Agent:
444
+ - http.rb/4.4.1
445
+ response:
446
+ status:
447
+ code: 200
448
+ message: OK
449
+ headers:
450
+ Access-Control-Allow-Headers:
451
+ - 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-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
452
+ Access-Control-Allow-Methods:
453
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
454
+ Access-Control-Allow-Origin:
455
+ - "*"
456
+ Access-Control-Expose-Headers:
457
+ - Etag
458
+ Access-Control-Max-Age:
459
+ - '1728000'
460
+ Cf-Environment-Id:
461
+ - master
462
+ Cf-Environment-Uuid:
463
+ - master
464
+ Cf-Space-Id:
465
+ - vuo79u060fmw
466
+ Content-Type:
467
+ - application/vnd.contentful.management.v1+json
468
+ Contentful-Api:
469
+ - cma
470
+ Date:
471
+ - Thu, 02 Jul 2020 11:08:59 GMT
472
+ Etag:
473
+ - '"7672835949377777237"'
474
+ Server:
475
+ - Contentful
476
+ Strict-Transport-Security:
477
+ - max-age=15768000
478
+ X-Content-Type-Options:
479
+ - nosniff
480
+ X-Contentful-Ratelimit-Hour-Limit:
481
+ - '36000'
482
+ X-Contentful-Ratelimit-Hour-Remaining:
483
+ - '35999'
484
+ X-Contentful-Ratelimit-Reset:
485
+ - '0'
486
+ X-Contentful-Ratelimit-Second-Limit:
487
+ - '10'
488
+ X-Contentful-Ratelimit-Second-Remaining:
489
+ - '9'
490
+ X-Contentful-Request-Id:
491
+ - e14ccd4d9743dc8e04bd4988321bd411
492
+ Content-Length:
493
+ - '1498'
494
+ Connection:
495
+ - Close
496
+ Set-Cookie:
497
+ - incap_ses_878_673446=Udn7MwOZfVXAejzLXUgvDEvA/V4AAAAAsKsKa3kMWSOE5H63ihb0Kw==;
498
+ path=/; Domain=.contentful.com
499
+ - nlbi_673446=1psWF+EWqmqC6S3bYMlkBAAAAAD+LYtLufZq0+KDFhrBKKXI; path=/; Domain=.contentful.com
500
+ - visid_incap_673446=mcfogEL6TLWoHflYzqRdGUvA/V4AAAAAQUIPAAAAAAAM+Yg+757sYnD8Ya9XtSg3;
501
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
502
+ X-Cdn:
503
+ - Incapsula
504
+ X-Iinfo:
505
+ - 9-10766288-10766293 NNNY CT(0 0 0) RT(1593688139004 86) q(0 0 0 -1) r(4 4)
506
+ U5
507
+ body:
508
+ encoding: ASCII-8BIT
509
+ string: |
510
+ {
511
+ "sys": {
512
+ "space": {
513
+ "sys": {
514
+ "type": "Link",
515
+ "linkType": "Space",
516
+ "id": "vuo79u060fmw"
517
+ }
518
+ },
519
+ "id": "test",
520
+ "type": "ContentType",
521
+ "createdAt": "2020-07-02T10:40:58.930Z",
522
+ "updatedAt": "2020-07-02T10:40:59.377Z",
523
+ "environment": {
524
+ "sys": {
525
+ "id": "master",
526
+ "type": "Link",
527
+ "linkType": "Environment"
528
+ }
529
+ },
530
+ "publishedVersion": 1,
531
+ "publishedAt": "2020-07-02T10:40:59.377Z",
532
+ "firstPublishedAt": "2020-07-02T10:40:59.377Z",
533
+ "createdBy": {
534
+ "sys": {
535
+ "type": "Link",
536
+ "linkType": "User",
537
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
538
+ }
539
+ },
540
+ "updatedBy": {
541
+ "sys": {
542
+ "type": "Link",
543
+ "linkType": "User",
544
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
545
+ }
546
+ },
547
+ "publishedCounter": 1,
548
+ "version": 2,
549
+ "publishedBy": {
550
+ "sys": {
551
+ "type": "Link",
552
+ "linkType": "User",
553
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
554
+ }
555
+ }
556
+ },
557
+ "displayField": "title",
558
+ "name": "Test",
559
+ "description": "",
560
+ "fields": [
561
+ {
562
+ "id": "title",
563
+ "name": "Title",
564
+ "type": "Symbol",
565
+ "localized": false,
566
+ "required": false,
567
+ "validations": [],
568
+ "disabled": false,
569
+ "omitted": false
570
+ },
571
+ {
572
+ "id": "json",
573
+ "name": "JSON",
574
+ "type": "Object",
575
+ "localized": false,
576
+ "required": false,
577
+ "validations": [],
578
+ "disabled": false,
579
+ "omitted": false
580
+ }
581
+ ]
582
+ }
583
+ http_version:
584
+ recorded_at: Thu, 02 Jul 2020 11:08:59 GMT
585
+ - request:
586
+ method: put
587
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/30QNJFxJQwLpdqZn8CHsHf
588
+ body:
589
+ encoding: UTF-8
590
+ string: '{"fields":{"title":{"en-US":"With JSON Array"},"json":{"en-US":[2,3,4]}}}'
591
+ headers:
592
+ X-Contentful-User-Agent:
593
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
594
+ Authorization:
595
+ - Bearer <ACCESS_TOKEN>
596
+ Content-Type:
597
+ - application/vnd.contentful.management.v1+json
598
+ X-Contentful-Version:
599
+ - '7'
600
+ X-Contentful-Content-Type:
601
+ - test
602
+ Content-Type-Id:
603
+ - test
604
+ Version:
605
+ - '7'
606
+ Connection:
607
+ - close
608
+ Host:
609
+ - api.contentful.com
610
+ User-Agent:
611
+ - http.rb/4.4.1
612
+ response:
613
+ status:
614
+ code: 200
615
+ message: OK
616
+ headers:
617
+ Access-Control-Allow-Headers:
618
+ - 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-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
619
+ Access-Control-Allow-Methods:
620
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
621
+ Access-Control-Allow-Origin:
622
+ - "*"
623
+ Access-Control-Expose-Headers:
624
+ - Etag
625
+ Access-Control-Max-Age:
626
+ - '1728000'
627
+ Cf-Environment-Id:
628
+ - master
629
+ Cf-Environment-Uuid:
630
+ - master
631
+ Cf-Space-Id:
632
+ - vuo79u060fmw
633
+ Content-Type:
634
+ - application/vnd.contentful.management.v1+json
635
+ Contentful-Api:
636
+ - cma
637
+ Date:
638
+ - Thu, 02 Jul 2020 11:09:02 GMT
639
+ Etag:
640
+ - '"9585533151618724726"'
641
+ Server:
642
+ - Contentful
643
+ Strict-Transport-Security:
644
+ - max-age=15768000
645
+ X-Content-Type-Options:
646
+ - nosniff
647
+ X-Contentful-Ratelimit-Hour-Limit:
648
+ - '36000'
649
+ X-Contentful-Ratelimit-Hour-Remaining:
650
+ - '35999'
651
+ X-Contentful-Ratelimit-Reset:
652
+ - '0'
653
+ X-Contentful-Ratelimit-Second-Limit:
654
+ - '10'
655
+ X-Contentful-Ratelimit-Second-Remaining:
656
+ - '9'
657
+ X-Contentful-Request-Id:
658
+ - c2853d3ad9d0078f6662cfc8221d03a1
659
+ Content-Length:
660
+ - '1336'
661
+ Connection:
662
+ - Close
663
+ Set-Cookie:
664
+ - incap_ses_878_673446=Gn6ONmpleyWLfTzLXUgvDE7A/V4AAAAAAdMVEAPb84/mPoEehX8HRg==;
665
+ path=/; Domain=.contentful.com
666
+ - nlbi_673446=jsJWcJM5M2tACUz6YMlkBAAAAADmSCrLXG9vcIqvgWgUHbiW; path=/; Domain=.contentful.com
667
+ - visid_incap_673446=PIfIUu8yTCWZ7+Zw2qh2l07A/V4AAAAAQUIPAAAAAAC6L9wjp238qH5eQMJXGUNt;
668
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
669
+ X-Cdn:
670
+ - Incapsula
671
+ X-Iinfo:
672
+ - 13-43297485-43297507 NNNY CT(0 0 0) RT(1593688142330 100) q(0 0 0 -1) r(3
673
+ 3) U5
674
+ body:
675
+ encoding: ASCII-8BIT
676
+ string: |
677
+ {
678
+ "metadata": {
679
+ "tags": []
680
+ },
681
+ "sys": {
682
+ "space": {
683
+ "sys": {
684
+ "type": "Link",
685
+ "linkType": "Space",
686
+ "id": "vuo79u060fmw"
687
+ }
688
+ },
689
+ "id": "30QNJFxJQwLpdqZn8CHsHf",
690
+ "type": "Entry",
691
+ "createdAt": "2020-07-02T10:41:23.580Z",
692
+ "updatedAt": "2020-07-02T11:09:02.576Z",
693
+ "environment": {
694
+ "sys": {
695
+ "id": "master",
696
+ "type": "Link",
697
+ "linkType": "Environment"
698
+ }
699
+ },
700
+ "publishedVersion": 6,
701
+ "publishedAt": "2020-07-02T10:49:08.754Z",
702
+ "firstPublishedAt": "2020-07-02T10:41:37.829Z",
703
+ "createdBy": {
704
+ "sys": {
705
+ "type": "Link",
706
+ "linkType": "User",
707
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
708
+ }
709
+ },
710
+ "updatedBy": {
711
+ "sys": {
712
+ "type": "Link",
713
+ "linkType": "User",
714
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
715
+ }
716
+ },
717
+ "publishedCounter": 2,
718
+ "version": 8,
719
+ "publishedBy": {
720
+ "sys": {
721
+ "type": "Link",
722
+ "linkType": "User",
723
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
724
+ }
725
+ },
726
+ "contentType": {
727
+ "sys": {
728
+ "type": "Link",
729
+ "linkType": "ContentType",
730
+ "id": "test"
731
+ }
732
+ }
733
+ },
734
+ "fields": {
735
+ "title": {
736
+ "en-US": "With JSON Array"
737
+ },
738
+ "json": {
739
+ "en-US": [
740
+ 2,
741
+ 3,
742
+ 4
743
+ ]
744
+ }
745
+ }
746
+ }
747
+ http_version:
748
+ recorded_at: Thu, 02 Jul 2020 11:09:02 GMT
749
+ - request:
750
+ method: get
751
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/30QNJFxJQwLpdqZn8CHsHf
752
+ body:
753
+ encoding: UTF-8
754
+ string: ''
755
+ headers:
756
+ X-Contentful-User-Agent:
757
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
758
+ Authorization:
759
+ - Bearer <ACCESS_TOKEN>
760
+ Content-Type:
761
+ - application/vnd.contentful.management.v1+json
762
+ Connection:
763
+ - close
764
+ Host:
765
+ - api.contentful.com
766
+ User-Agent:
767
+ - http.rb/4.4.1
768
+ response:
769
+ status:
770
+ code: 200
771
+ message: OK
772
+ headers:
773
+ Access-Control-Allow-Headers:
774
+ - 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-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
775
+ Access-Control-Allow-Methods:
776
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
777
+ Access-Control-Allow-Origin:
778
+ - "*"
779
+ Access-Control-Expose-Headers:
780
+ - Etag
781
+ Access-Control-Max-Age:
782
+ - '1728000'
783
+ Cf-Environment-Id:
784
+ - master
785
+ Cf-Environment-Uuid:
786
+ - master
787
+ Cf-Space-Id:
788
+ - vuo79u060fmw
789
+ Content-Type:
790
+ - application/vnd.contentful.management.v1+json
791
+ Contentful-Api:
792
+ - cma
793
+ Date:
794
+ - Thu, 02 Jul 2020 11:09:03 GMT
795
+ Etag:
796
+ - '"9585533151618724726"'
797
+ Server:
798
+ - Contentful
799
+ Strict-Transport-Security:
800
+ - max-age=15768000
801
+ X-Content-Type-Options:
802
+ - nosniff
803
+ X-Contentful-Ratelimit-Hour-Limit:
804
+ - '36000'
805
+ X-Contentful-Ratelimit-Hour-Remaining:
806
+ - '35999'
807
+ X-Contentful-Ratelimit-Reset:
808
+ - '0'
809
+ X-Contentful-Ratelimit-Second-Limit:
810
+ - '10'
811
+ X-Contentful-Ratelimit-Second-Remaining:
812
+ - '9'
813
+ X-Contentful-Request-Id:
814
+ - 4addb37a5d86e7e27a2e76716274ed23
815
+ Content-Length:
816
+ - '1336'
817
+ Connection:
818
+ - Close
819
+ Set-Cookie:
820
+ - incap_ses_878_673446=SHDRdq/jz3IffjzLXUgvDE/A/V4AAAAAL7tB9arn/nwODJAO3jq8iQ==;
821
+ path=/; Domain=.contentful.com
822
+ - nlbi_673446=siUUfZXjqg/DpBFGYMlkBAAAAACNP4X9s53ppEXwdfJqzinq; path=/; Domain=.contentful.com
823
+ - visid_incap_673446=U0xjy4GqS1OuSEAsWDnquk/A/V4AAAAAQUIPAAAAAACcvgJK29w5SzwoXEFj2Utb;
824
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
825
+ X-Cdn:
826
+ - Incapsula
827
+ X-Iinfo:
828
+ - 11-24041697-24041789 NNNY CT(0 0 0) RT(1593688142778 398) q(0 0 0 -1) r(2
829
+ 2) U5
830
+ body:
831
+ encoding: ASCII-8BIT
832
+ string: |
833
+ {
834
+ "metadata": {
835
+ "tags": []
836
+ },
837
+ "sys": {
838
+ "space": {
839
+ "sys": {
840
+ "type": "Link",
841
+ "linkType": "Space",
842
+ "id": "vuo79u060fmw"
843
+ }
844
+ },
845
+ "id": "30QNJFxJQwLpdqZn8CHsHf",
846
+ "type": "Entry",
847
+ "createdAt": "2020-07-02T10:41:23.580Z",
848
+ "updatedAt": "2020-07-02T11:09:02.576Z",
849
+ "environment": {
850
+ "sys": {
851
+ "id": "master",
852
+ "type": "Link",
853
+ "linkType": "Environment"
854
+ }
855
+ },
856
+ "publishedVersion": 6,
857
+ "publishedAt": "2020-07-02T10:49:08.754Z",
858
+ "firstPublishedAt": "2020-07-02T10:41:37.829Z",
859
+ "createdBy": {
860
+ "sys": {
861
+ "type": "Link",
862
+ "linkType": "User",
863
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
864
+ }
865
+ },
866
+ "updatedBy": {
867
+ "sys": {
868
+ "type": "Link",
869
+ "linkType": "User",
870
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
871
+ }
872
+ },
873
+ "publishedCounter": 2,
874
+ "version": 8,
875
+ "publishedBy": {
876
+ "sys": {
877
+ "type": "Link",
878
+ "linkType": "User",
879
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
880
+ }
881
+ },
882
+ "contentType": {
883
+ "sys": {
884
+ "type": "Link",
885
+ "linkType": "ContentType",
886
+ "id": "test"
887
+ }
888
+ }
889
+ },
890
+ "fields": {
891
+ "title": {
892
+ "en-US": "With JSON Array"
893
+ },
894
+ "json": {
895
+ "en-US": [
896
+ 2,
897
+ 3,
898
+ 4
899
+ ]
900
+ }
901
+ }
902
+ }
903
+ http_version:
904
+ recorded_at: Thu, 02 Jul 2020 11:09:03 GMT
905
+ recorded_with: VCR 4.0.0