contentful-management 3.8.0 → 3.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +1 -1
  3. data/.rubocop_todo.yml +72 -7
  4. data/CHANGELOG.md +11 -0
  5. data/contentful-management.gemspec +4 -3
  6. data/lib/contentful/management/api_key.rb +2 -0
  7. data/lib/contentful/management/array.rb +2 -0
  8. data/lib/contentful/management/asset.rb +5 -3
  9. data/lib/contentful/management/client.rb +8 -4
  10. data/lib/contentful/management/client_api_key_methods_factory.rb +2 -0
  11. data/lib/contentful/management/client_asset_methods_factory.rb +2 -0
  12. data/lib/contentful/management/client_association_all_published_method_factory.rb +2 -0
  13. data/lib/contentful/management/client_association_methods_factory.rb +2 -0
  14. data/lib/contentful/management/client_content_type_methods_factory.rb +2 -0
  15. data/lib/contentful/management/client_editor_interface_methods_factory.rb +2 -0
  16. data/lib/contentful/management/client_entry_methods_factory.rb +2 -0
  17. data/lib/contentful/management/client_environment_methods_factory.rb +2 -0
  18. data/lib/contentful/management/client_locale_methods_factory.rb +2 -0
  19. data/lib/contentful/management/client_organization_methods_factory.rb +2 -0
  20. data/lib/contentful/management/client_organization_periodic_usage_methods_factory.rb +2 -0
  21. data/lib/contentful/management/client_personal_access_tokens_methods_factory.rb +2 -0
  22. data/lib/contentful/management/client_preview_api_key_methods_factory.rb +2 -0
  23. data/lib/contentful/management/client_role_methods_factory.rb +2 -0
  24. data/lib/contentful/management/client_snapshot_methods_factory.rb +2 -0
  25. data/lib/contentful/management/client_space_membership_methods_factory.rb +2 -0
  26. data/lib/contentful/management/client_space_methods_factory.rb +2 -0
  27. data/lib/contentful/management/client_space_periodic_usage_methods_factory.rb +2 -0
  28. data/lib/contentful/management/client_tag_methods_factory.rb +2 -0
  29. data/lib/contentful/management/client_ui_extension_methods_factory.rb +2 -0
  30. data/lib/contentful/management/client_upload_methods_factory.rb +2 -0
  31. data/lib/contentful/management/client_user_methods_factory.rb +2 -0
  32. data/lib/contentful/management/client_webhook_call_methods_factory.rb +2 -0
  33. data/lib/contentful/management/client_webhook_health_methods_factory.rb +2 -0
  34. data/lib/contentful/management/client_webhook_methods_factory.rb +2 -0
  35. data/lib/contentful/management/content_type.rb +13 -11
  36. data/lib/contentful/management/content_type_editor_interface_methods_factory.rb +2 -0
  37. data/lib/contentful/management/content_type_entry_methods_factory.rb +2 -0
  38. data/lib/contentful/management/content_type_snapshot_methods_factory.rb +2 -0
  39. data/lib/contentful/management/dynamic_entry.rb +3 -3
  40. data/lib/contentful/management/editor_interface.rb +5 -3
  41. data/lib/contentful/management/entry.rb +5 -3
  42. data/lib/contentful/management/entry_association_methods_factory.rb +2 -0
  43. data/lib/contentful/management/entry_snapshot_methods_factory.rb +2 -0
  44. data/lib/contentful/management/environment.rb +2 -0
  45. data/lib/contentful/management/environment_asset_methods_factory.rb +2 -0
  46. data/lib/contentful/management/environment_association_methods_factory.rb +2 -0
  47. data/lib/contentful/management/environment_content_type_methods_factory.rb +2 -0
  48. data/lib/contentful/management/environment_editor_interface_methods_factory.rb +2 -0
  49. data/lib/contentful/management/environment_entry_methods_factory.rb +2 -0
  50. data/lib/contentful/management/environment_locale_methods_factory.rb +2 -0
  51. data/lib/contentful/management/environment_tag_methods_factory.rb +2 -0
  52. data/lib/contentful/management/environment_ui_extension_methods_factory.rb +2 -0
  53. data/lib/contentful/management/error.rb +5 -2
  54. data/lib/contentful/management/field.rb +4 -0
  55. data/lib/contentful/management/file.rb +2 -0
  56. data/lib/contentful/management/link.rb +2 -0
  57. data/lib/contentful/management/locale.rb +3 -1
  58. data/lib/contentful/management/location.rb +2 -0
  59. data/lib/contentful/management/organization.rb +2 -0
  60. data/lib/contentful/management/organization_periodic_usage.rb +2 -0
  61. data/lib/contentful/management/organization_user_methods_factory.rb +2 -0
  62. data/lib/contentful/management/personal_access_token.rb +2 -0
  63. data/lib/contentful/management/preview_api_key.rb +2 -0
  64. data/lib/contentful/management/request.rb +3 -8
  65. data/lib/contentful/management/resource/all_published.rb +2 -0
  66. data/lib/contentful/management/resource/archiver.rb +2 -0
  67. data/lib/contentful/management/resource/array_like.rb +2 -0
  68. data/lib/contentful/management/resource/asset_fields.rb +2 -0
  69. data/lib/contentful/management/resource/entry_fields.rb +2 -0
  70. data/lib/contentful/management/resource/environment_aware.rb +2 -0
  71. data/lib/contentful/management/resource/field_aware.rb +2 -0
  72. data/lib/contentful/management/resource/fields.rb +3 -1
  73. data/lib/contentful/management/resource/metadata.rb +3 -0
  74. data/lib/contentful/management/resource/publisher.rb +2 -0
  75. data/lib/contentful/management/resource/refresher.rb +3 -0
  76. data/lib/contentful/management/resource/system_properties.rb +3 -1
  77. data/lib/contentful/management/resource.rb +4 -3
  78. data/lib/contentful/management/resource_builder.rb +5 -2
  79. data/lib/contentful/management/resource_requester.rb +4 -1
  80. data/lib/contentful/management/response.rb +4 -2
  81. data/lib/contentful/management/role.rb +3 -1
  82. data/lib/contentful/management/snapshot.rb +2 -0
  83. data/lib/contentful/management/space.rb +3 -0
  84. data/lib/contentful/management/space_api_key_methods_factory.rb +2 -0
  85. data/lib/contentful/management/space_association_methods_factory.rb +2 -0
  86. data/lib/contentful/management/space_environment_methods_factory.rb +2 -0
  87. data/lib/contentful/management/space_membership.rb +2 -0
  88. data/lib/contentful/management/space_periodic_usage.rb +2 -0
  89. data/lib/contentful/management/space_preview_api_key_methods_factory.rb +2 -0
  90. data/lib/contentful/management/space_role_methods_factory.rb +2 -0
  91. data/lib/contentful/management/space_space_membership_methods_factory.rb +2 -0
  92. data/lib/contentful/management/space_user_methods_factory.rb +2 -0
  93. data/lib/contentful/management/space_webhook_methods_factory.rb +2 -0
  94. data/lib/contentful/management/support.rb +4 -2
  95. data/lib/contentful/management/tag.rb +2 -0
  96. data/lib/contentful/management/ui_extension.rb +4 -0
  97. data/lib/contentful/management/upload.rb +2 -0
  98. data/lib/contentful/management/user.rb +2 -0
  99. data/lib/contentful/management/validation.rb +2 -0
  100. data/lib/contentful/management/version.rb +3 -1
  101. data/lib/contentful/management/webhook.rb +2 -0
  102. data/lib/contentful/management/webhook_call.rb +2 -0
  103. data/lib/contentful/management/webhook_health.rb +2 -0
  104. data/lib/contentful/management/webhook_webhook_call_methods_factory.rb +2 -0
  105. data/lib/contentful/management/webhook_webhook_health_methods_factory.rb +2 -0
  106. data/lib/contentful/management.rb +2 -0
  107. data/spec/fixtures/vcr_cassettes/content_type/default_value.yml +487 -0
  108. data/spec/fixtures/vcr_cassettes/content_type/update_with_deleted_true.yml +483 -0
  109. data/spec/lib/contentful/management/content_type_spec.rb +50 -0
  110. metadata +17 -19
@@ -0,0 +1,487 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/32dbl893yf99
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/3.9.0; platform ruby/3.2.2; os Windows/ucrt;
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/5.0.1
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '594'
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
+ X-Xss-Protection:
44
+ - '0'
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Download-Options:
48
+ - noopen
49
+ X-Permitted-Cross-Domain-Policies:
50
+ - none
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
53
+ X-Contentful-Route:
54
+ - "/spaces/:id"
55
+ Cf-Space-Id:
56
+ - 32dbl893yf99
57
+ Cf-Organization-Id:
58
+ - 5JMqP9UrBoEuRnPSzJRKep
59
+ Cf-User-Id:
60
+ - 1cRzCWn3HdX3jCI0Gkisl6
61
+ Etag:
62
+ - W/"53a9b2eb2ba7bd06b11e0b065f3a5e70"
63
+ Content-Security-Policy:
64
+ - 'default-src ''self'' static.contentful.com; font-src ''self'' data: static.contentful.com
65
+ https://www.contentful.com fonts.googleapis.com static.contentful.com www.ctfstatic.com
66
+ fonts.gstatic.com https://use.typekit.net https://storage.googleapis.com;
67
+ img-src ''self'' data: static.contentful.com https://www.contentful.com www.ctfstatic.com
68
+ https://segments.company-target.com https://match.prod.bidr.io https://scripts.demandbase.com/
69
+ https://www.gstatic.com https://www.google-analytics.com; object-src ''none'';
70
+ script-src ''self'' static.contentful.com https://tag.demandbase.com https://autocomplete.demandbase.com
71
+ https://www.gstatic.com https://static.zuora.com https://www.recaptcha.net
72
+ https://www.google-analytics.com https://js.hcaptcha.com ''nonce-d0Jk+u+32zaCpeuVFJBqrA=='';
73
+ style-src ''self'' static.contentful.com https://www.contentful.com fonts.googleapis.com
74
+ www.ctfstatic.com https://scripts.demandbase.com ''nonce-d0Jk+u+32zaCpeuVFJBqrA=='';
75
+ connect-src ''self'' static.contentful.com https://api.company-target.com
76
+ https://segments.company-target.com https://www.google-analytics.com https://sentry.io;
77
+ frame-src https://*.zuora.com https://www.google.com https://www.recaptcha.net
78
+ https://newassets.hcaptcha.com; frame-ancestors ''self'' https://app.contentful.com;
79
+ report-uri https://51772a31e6668243854408567273914e.report-uri.com/r/t/csp/enforce'
80
+ Accept-Ranges:
81
+ - bytes
82
+ Cache-Control:
83
+ - max-age=0
84
+ Strict-Transport-Security:
85
+ - max-age=15768000
86
+ Server:
87
+ - Contentful
88
+ Contentful-Api:
89
+ - cma
90
+ Contentful-Upstream:
91
+ - gatekeeper
92
+ Access-Control-Allow-Origin:
93
+ - "*"
94
+ Access-Control-Allow-Headers:
95
+ - Accept,Accept-Language,Authorization,Cache-Control,CF-Context,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,X-Contentful-Comment-Body-Format,X-Contentful-Parent-Entity-Reference
96
+ Access-Control-Expose-Headers:
97
+ - Etag,x-contentful-request-id
98
+ Access-Control-Allow-Methods:
99
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
100
+ Access-Control-Max-Age:
101
+ - '1728000'
102
+ Date:
103
+ - Sat, 09 Sep 2023 03:21:35 GMT
104
+ X-Contentful-Request-Id:
105
+ - 1783deab-6330-4342-9b00-4428e47ca2cd
106
+ body:
107
+ encoding: ASCII-8BIT
108
+ string: |+
109
+ {
110
+ "name":"Blank",
111
+ "sys":{
112
+ "type":"Space",
113
+ "id":"32dbl893yf99",
114
+ "version":1,
115
+ "createdBy":{
116
+ "sys":{
117
+ "type":"Link",
118
+ "linkType":"User",
119
+ "id":"1cRzCWn3HdX3jCI0Gkisl6"
120
+ }
121
+ },
122
+ "createdAt":"2023-09-09T02:37:44Z",
123
+ "updatedBy":{
124
+ "sys":{
125
+ "type":"Link",
126
+ "linkType":"User",
127
+ "id":"1cRzCWn3HdX3jCI0Gkisl6"
128
+ }
129
+ },
130
+ "updatedAt":"2023-09-09T02:37:44Z",
131
+ "organization":{
132
+ "sys":{
133
+ "type":"Link",
134
+ "linkType":"Organization",
135
+ "id":"5JMqP9UrBoEuRnPSzJRKep"
136
+ }
137
+ }
138
+ }
139
+ }
140
+
141
+ recorded_at: Sat, 09 Sep 2023 03:21:35 GMT
142
+ - request:
143
+ method: put
144
+ uri: https://api.contentful.com/spaces/32dbl893yf99/environments/master/content_types/content_with_default_value
145
+ body:
146
+ encoding: UTF-8
147
+ string: '{"name":"Content With Default Value","fields":[{"id":"default_value_field","name":"default_value_field","type":"Text","defaultValue":{"en-US":"default
148
+ content"}}]}'
149
+ headers:
150
+ X-Contentful-User-Agent:
151
+ - sdk contentful-management.rb/3.9.0; platform ruby/3.2.2; os Windows/ucrt;
152
+ Authorization:
153
+ - Bearer <ACCESS_TOKEN>
154
+ Content-Type:
155
+ - application/vnd.contentful.management.v1+json
156
+ Connection:
157
+ - close
158
+ Host:
159
+ - api.contentful.com
160
+ User-Agent:
161
+ - http.rb/5.0.1
162
+ response:
163
+ status:
164
+ code: 201
165
+ message: Created
166
+ headers:
167
+ Connection:
168
+ - close
169
+ Content-Length:
170
+ - '778'
171
+ Content-Type:
172
+ - application/vnd.contentful.management.v1+json
173
+ X-Contentful-Ratelimit-Hour-Limit:
174
+ - '36000'
175
+ X-Contentful-Ratelimit-Second-Limit:
176
+ - '10'
177
+ X-Contentful-Ratelimit-Reset:
178
+ - '0'
179
+ X-Contentful-Ratelimit-Hour-Remaining:
180
+ - '35998'
181
+ X-Contentful-Ratelimit-Second-Remaining:
182
+ - '8'
183
+ Cf-Environment-Id:
184
+ - master
185
+ Cf-Environment-Uuid:
186
+ - master
187
+ Cf-Space-Id:
188
+ - 32dbl893yf99
189
+ Etag:
190
+ - '"4044777871622356263"'
191
+ X-Contentful-Route:
192
+ - "/spaces/:space/environments/:environment/content_types/:id"
193
+ Strict-Transport-Security:
194
+ - max-age=15768000
195
+ X-Content-Type-Options:
196
+ - nosniff
197
+ Contentful-Api:
198
+ - cma
199
+ Server:
200
+ - Contentful
201
+ Contentful-Upstream:
202
+ - content-api
203
+ Access-Control-Allow-Origin:
204
+ - "*"
205
+ Access-Control-Allow-Headers:
206
+ - Accept,Accept-Language,Authorization,Cache-Control,CF-Context,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,X-Contentful-Comment-Body-Format,X-Contentful-Parent-Entity-Reference
207
+ Access-Control-Expose-Headers:
208
+ - Etag,x-contentful-request-id
209
+ Access-Control-Allow-Methods:
210
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
211
+ Access-Control-Max-Age:
212
+ - '1728000'
213
+ Accept-Ranges:
214
+ - bytes
215
+ Date:
216
+ - Sat, 09 Sep 2023 03:21:36 GMT
217
+ X-Contentful-Request-Id:
218
+ - 669fa9aa-ecd8-438a-9196-4f7bb78209e5
219
+ body:
220
+ encoding: ASCII-8BIT
221
+ string: '{"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"32dbl893yf99"}},"id":"content_with_default_value","type":"ContentType","createdAt":"2023-09-09T03:21:35.939Z","updatedAt":"2023-09-09T03:21:35.939Z","environment":{"sys":{"id":"master","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"publishedCounter":0,"version":1},"displayField":null,"name":"Content
222
+ With Default Value","description":null,"fields":[{"id":"default_value_field","name":"default_value_field","type":"Text","localized":false,"required":false,"validations":[],"defaultValue":{"en-US":"default
223
+ content"},"disabled":false,"omitted":false}]}
224
+
225
+ '
226
+ recorded_at: Sat, 09 Sep 2023 03:21:35 GMT
227
+ - request:
228
+ method: put
229
+ uri: https://api.contentful.com/spaces/32dbl893yf99/environments/master/content_types/content_with_default_value/published
230
+ body:
231
+ encoding: UTF-8
232
+ string: ''
233
+ headers:
234
+ X-Contentful-User-Agent:
235
+ - sdk contentful-management.rb/3.9.0; platform ruby/3.2.2; os Windows/ucrt;
236
+ Authorization:
237
+ - Bearer <ACCESS_TOKEN>
238
+ Content-Type:
239
+ - application/vnd.contentful.management.v1+json
240
+ X-Contentful-Version:
241
+ - '1'
242
+ Version:
243
+ - '1'
244
+ Connection:
245
+ - close
246
+ Host:
247
+ - api.contentful.com
248
+ User-Agent:
249
+ - http.rb/5.0.1
250
+ response:
251
+ status:
252
+ code: 200
253
+ message: OK
254
+ headers:
255
+ Connection:
256
+ - close
257
+ Content-Length:
258
+ - '972'
259
+ Content-Type:
260
+ - application/vnd.contentful.management.v1+json
261
+ X-Contentful-Ratelimit-Reset:
262
+ - '0'
263
+ X-Contentful-Ratelimit-Hour-Remaining:
264
+ - '35999'
265
+ X-Contentful-Ratelimit-Second-Remaining:
266
+ - '9'
267
+ X-Contentful-Ratelimit-Hour-Limit:
268
+ - '36000'
269
+ X-Contentful-Ratelimit-Second-Limit:
270
+ - '10'
271
+ Cf-Environment-Id:
272
+ - master
273
+ Cf-Environment-Uuid:
274
+ - master
275
+ Cf-Space-Id:
276
+ - 32dbl893yf99
277
+ Etag:
278
+ - '"7419449699360668456"'
279
+ X-Contentful-Route:
280
+ - "/spaces/:space/environments/:environment/content_types/:id/published"
281
+ Strict-Transport-Security:
282
+ - max-age=15768000
283
+ X-Content-Type-Options:
284
+ - nosniff
285
+ Contentful-Api:
286
+ - cma
287
+ Server:
288
+ - Contentful
289
+ Contentful-Upstream:
290
+ - content-api
291
+ Access-Control-Allow-Origin:
292
+ - "*"
293
+ Access-Control-Allow-Headers:
294
+ - Accept,Accept-Language,Authorization,Cache-Control,CF-Context,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,X-Contentful-Comment-Body-Format,X-Contentful-Parent-Entity-Reference
295
+ Access-Control-Expose-Headers:
296
+ - Etag,x-contentful-request-id
297
+ Access-Control-Allow-Methods:
298
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
299
+ Access-Control-Max-Age:
300
+ - '1728000'
301
+ Accept-Ranges:
302
+ - bytes
303
+ Date:
304
+ - Sat, 09 Sep 2023 03:21:36 GMT
305
+ X-Contentful-Request-Id:
306
+ - 5cfd8c02-7f04-41e4-880f-cedd77c43328
307
+ body:
308
+ encoding: ASCII-8BIT
309
+ string: '{"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"32dbl893yf99"}},"id":"content_with_default_value","type":"ContentType","createdAt":"2023-09-09T03:21:35.939Z","updatedAt":"2023-09-09T03:21:36.224Z","environment":{"sys":{"id":"master","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"publishedCounter":1,"version":2,"firstPublishedAt":"2023-09-09T03:21:36.224Z","publishedAt":"2023-09-09T03:21:36.224Z","publishedBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"publishedVersion":1},"displayField":null,"name":"Content
310
+ With Default Value","description":null,"fields":[{"id":"default_value_field","name":"default_value_field","type":"Text","localized":false,"required":false,"validations":[],"defaultValue":{"en-US":"default
311
+ content"},"disabled":false,"omitted":false}]}
312
+
313
+ '
314
+ recorded_at: Sat, 09 Sep 2023 03:21:35 GMT
315
+ - request:
316
+ method: get
317
+ uri: https://api.contentful.com/spaces/32dbl893yf99/environments/master/content_types/content_with_default_value
318
+ body:
319
+ encoding: UTF-8
320
+ string: ''
321
+ headers:
322
+ X-Contentful-User-Agent:
323
+ - sdk contentful-management.rb/3.9.0; platform ruby/3.2.2; os Windows/ucrt;
324
+ Authorization:
325
+ - Bearer <ACCESS_TOKEN>
326
+ Content-Type:
327
+ - application/vnd.contentful.management.v1+json
328
+ Connection:
329
+ - close
330
+ Host:
331
+ - api.contentful.com
332
+ User-Agent:
333
+ - http.rb/5.0.1
334
+ response:
335
+ status:
336
+ code: 200
337
+ message: OK
338
+ headers:
339
+ Connection:
340
+ - close
341
+ Content-Length:
342
+ - '972'
343
+ Content-Type:
344
+ - application/vnd.contentful.management.v1+json
345
+ X-Contentful-Ratelimit-Second-Remaining:
346
+ - '8'
347
+ X-Contentful-Ratelimit-Hour-Limit:
348
+ - '36000'
349
+ X-Contentful-Ratelimit-Second-Limit:
350
+ - '10'
351
+ X-Contentful-Ratelimit-Reset:
352
+ - '0'
353
+ X-Contentful-Ratelimit-Hour-Remaining:
354
+ - '35998'
355
+ Cf-Environment-Id:
356
+ - master
357
+ Cf-Environment-Uuid:
358
+ - master
359
+ Cf-Space-Id:
360
+ - 32dbl893yf99
361
+ Etag:
362
+ - '"7838732340352631259"'
363
+ X-Contentful-Route:
364
+ - "/spaces/:space/environments/:environment/content_types/:id"
365
+ Strict-Transport-Security:
366
+ - max-age=15768000
367
+ X-Content-Type-Options:
368
+ - nosniff
369
+ Contentful-Api:
370
+ - cma
371
+ Server:
372
+ - Contentful
373
+ Contentful-Upstream:
374
+ - content-api
375
+ Access-Control-Allow-Origin:
376
+ - "*"
377
+ Access-Control-Allow-Headers:
378
+ - Accept,Accept-Language,Authorization,Cache-Control,CF-Context,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,X-Contentful-Comment-Body-Format,X-Contentful-Parent-Entity-Reference
379
+ Access-Control-Expose-Headers:
380
+ - Etag,x-contentful-request-id
381
+ Access-Control-Allow-Methods:
382
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
383
+ Access-Control-Max-Age:
384
+ - '1728000'
385
+ Accept-Ranges:
386
+ - bytes
387
+ Date:
388
+ - Sat, 09 Sep 2023 03:21:36 GMT
389
+ X-Contentful-Request-Id:
390
+ - 233c11b7-631f-4a2d-8ac2-1849861e5c65
391
+ body:
392
+ encoding: ASCII-8BIT
393
+ string: '{"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"32dbl893yf99"}},"id":"content_with_default_value","type":"ContentType","createdAt":"2023-09-09T03:21:35.939Z","updatedAt":"2023-09-09T03:21:36.224Z","environment":{"sys":{"id":"master","type":"Link","linkType":"Environment"}},"publishedVersion":1,"publishedAt":"2023-09-09T03:21:36.224Z","firstPublishedAt":"2023-09-09T03:21:36.224Z","createdBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"publishedCounter":1,"version":2,"publishedBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}}},"displayField":null,"name":"Content
394
+ With Default Value","description":null,"fields":[{"id":"default_value_field","name":"default_value_field","type":"Text","localized":false,"required":false,"validations":[],"defaultValue":{"en-US":"default
395
+ content"},"disabled":false,"omitted":false}]}
396
+
397
+ '
398
+ recorded_at: Sat, 09 Sep 2023 03:21:36 GMT
399
+ - request:
400
+ method: post
401
+ uri: https://api.contentful.com/spaces/32dbl893yf99/environments/master/entries
402
+ body:
403
+ encoding: UTF-8
404
+ string: '{"metadata":null,"fields":{}}'
405
+ headers:
406
+ X-Contentful-User-Agent:
407
+ - sdk contentful-management.rb/3.9.0; platform ruby/3.2.2; os Windows/ucrt;
408
+ Authorization:
409
+ - Bearer <ACCESS_TOKEN>
410
+ Content-Type:
411
+ - application/vnd.contentful.management.v1+json
412
+ X-Contentful-Content-Type:
413
+ - content_with_default_value
414
+ Content-Type-Id:
415
+ - content_with_default_value
416
+ Connection:
417
+ - close
418
+ Host:
419
+ - api.contentful.com
420
+ User-Agent:
421
+ - http.rb/5.0.1
422
+ response:
423
+ status:
424
+ code: 201
425
+ message: Created
426
+ headers:
427
+ Connection:
428
+ - close
429
+ Content-Length:
430
+ - '683'
431
+ Content-Type:
432
+ - application/vnd.contentful.management.v1+json
433
+ X-Contentful-Ratelimit-Hour-Limit:
434
+ - '36000'
435
+ X-Contentful-Ratelimit-Second-Limit:
436
+ - '10'
437
+ X-Contentful-Ratelimit-Reset:
438
+ - '0'
439
+ X-Contentful-Ratelimit-Hour-Remaining:
440
+ - '35997'
441
+ X-Contentful-Ratelimit-Second-Remaining:
442
+ - '7'
443
+ Cf-Environment-Id:
444
+ - master
445
+ Cf-Environment-Uuid:
446
+ - master
447
+ Cf-Space-Id:
448
+ - 32dbl893yf99
449
+ Etag:
450
+ - '"9130801670712245701"'
451
+ X-Contentful-Route:
452
+ - "/spaces/:space/environments/:environment/entries"
453
+ Strict-Transport-Security:
454
+ - max-age=15768000
455
+ X-Content-Type-Options:
456
+ - nosniff
457
+ Contentful-Api:
458
+ - cma
459
+ Server:
460
+ - Contentful
461
+ Contentful-Upstream:
462
+ - content-api
463
+ Access-Control-Allow-Origin:
464
+ - "*"
465
+ Access-Control-Allow-Headers:
466
+ - Accept,Accept-Language,Authorization,Cache-Control,CF-Context,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,X-Contentful-Comment-Body-Format,X-Contentful-Parent-Entity-Reference
467
+ Access-Control-Expose-Headers:
468
+ - Etag,x-contentful-request-id
469
+ Access-Control-Allow-Methods:
470
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
471
+ Access-Control-Max-Age:
472
+ - '1728000'
473
+ Accept-Ranges:
474
+ - bytes
475
+ Date:
476
+ - Sat, 09 Sep 2023 03:21:37 GMT
477
+ X-Contentful-Request-Id:
478
+ - eb78f4b3-503b-4de5-8fbd-54f9ffb5ab59
479
+ body:
480
+ encoding: ASCII-8BIT
481
+ string: '{"metadata":{"tags":[]},"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"32dbl893yf99"}},"id":"5HOeUNysgEeta24CCEeUDc","type":"Entry","createdAt":"2023-09-09T03:21:36.985Z","updatedAt":"2023-09-09T03:21:36.985Z","environment":{"sys":{"id":"master","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"1cRzCWn3HdX3jCI0Gkisl6"}},"publishedCounter":0,"version":1,"automationTags":[],"contentType":{"sys":{"type":"Link","linkType":"ContentType","id":"content_with_default_value"}}},"fields":{"default_value_field":{"en-US":"default
482
+ content"}}}
483
+
484
+ '
485
+ recorded_at: Sat, 09 Sep 2023 03:21:36 GMT
486
+ recorded_with: VCR 6.2.0
487
+ ...