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,147 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/assets
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"fields":{"title":{"en-US":"Asset title"},"file":{"en-US":{"contentType":"image/jpeg","fileName":"pic1.jpg","upload":"https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg"}}},"metadata":{"tags":[{"sys":{"type":"Link","linkType":"Tag","id":"icon"}}]}}'
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: 201
25
+ message: Created
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '1209'
31
+ Content-Type:
32
+ - application/vnd.contentful.management.v1+json
33
+ X-Contentful-Ratelimit-Hour-Remaining:
34
+ - '35999'
35
+ X-Contentful-Ratelimit-Second-Remaining:
36
+ - '9'
37
+ X-Contentful-Ratelimit-Hour-Limit:
38
+ - '36000'
39
+ X-Contentful-Ratelimit-Second-Limit:
40
+ - '10'
41
+ X-Contentful-Ratelimit-Reset:
42
+ - '0'
43
+ Cf-Environment-Id:
44
+ - master
45
+ Cf-Environment-Uuid:
46
+ - master
47
+ Cf-Space-Id:
48
+ - o4h6g9w3pooi
49
+ Etag:
50
+ - '"3970687324231021320"'
51
+ X-Contentful-Route:
52
+ - "/spaces/:space/environments/:environment/assets"
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:25:24 GMT
79
+ X-Contentful-Request-Id:
80
+ - 8c9f38c7-27f6-4261-993c-fc2453df8348
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: |
84
+ {
85
+ "metadata": {
86
+ "tags": [
87
+ {
88
+ "sys": {
89
+ "type": "Link",
90
+ "linkType": "Tag",
91
+ "id": "icon"
92
+ }
93
+ }
94
+ ]
95
+ },
96
+ "sys": {
97
+ "space": {
98
+ "sys": {
99
+ "type": "Link",
100
+ "linkType": "Space",
101
+ "id": "o4h6g9w3pooi"
102
+ }
103
+ },
104
+ "id": "LEWboHM4EeTTWEaPjiz1q",
105
+ "type": "Asset",
106
+ "createdAt": "2022-04-19T15:25:24.257Z",
107
+ "updatedAt": "2022-04-19T15:25:24.257Z",
108
+ "environment": {
109
+ "sys": {
110
+ "id": "master",
111
+ "type": "Link",
112
+ "linkType": "Environment"
113
+ }
114
+ },
115
+ "createdBy": {
116
+ "sys": {
117
+ "type": "Link",
118
+ "linkType": "User",
119
+ "id": "59Erm8D1JuuD273aXNb65T"
120
+ }
121
+ },
122
+ "updatedBy": {
123
+ "sys": {
124
+ "type": "Link",
125
+ "linkType": "User",
126
+ "id": "59Erm8D1JuuD273aXNb65T"
127
+ }
128
+ },
129
+ "publishedCounter": 0,
130
+ "version": 1
131
+ },
132
+ "fields": {
133
+ "title": {
134
+ "en-US": "Asset title"
135
+ },
136
+ "file": {
137
+ "en-US": {
138
+ "upload": "https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg",
139
+ "fileName": "pic1.jpg",
140
+ "contentType": "image/jpeg"
141
+ }
142
+ }
143
+ }
144
+ }
145
+ http_version:
146
+ recorded_at: Tue, 19 Apr 2022 15:25:24 GMT
147
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,293 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/content_types/simple
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
+ - '1297'
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
+ - '"11041571175402543699"'
51
+ X-Contentful-Route:
52
+ - "/spaces/:space/environments/:environment/content_types/: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:25:02 GMT
79
+ X-Contentful-Request-Id:
80
+ - 224cb2e0-ff09-483e-98f0-e191992e8eee
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: |
84
+ {
85
+ "sys": {
86
+ "space": {
87
+ "sys": {
88
+ "type": "Link",
89
+ "linkType": "Space",
90
+ "id": "o4h6g9w3pooi"
91
+ }
92
+ },
93
+ "id": "simple",
94
+ "type": "ContentType",
95
+ "createdAt": "2022-04-05T20:19:40.583Z",
96
+ "updatedAt": "2022-04-13T04:02:23.826Z",
97
+ "environment": {
98
+ "sys": {
99
+ "id": "master",
100
+ "type": "Link",
101
+ "linkType": "Environment"
102
+ }
103
+ },
104
+ "publishedVersion": 3,
105
+ "publishedAt": "2022-04-13T04:02:23.826Z",
106
+ "firstPublishedAt": "2022-04-05T20:19:41.701Z",
107
+ "createdBy": {
108
+ "sys": {
109
+ "type": "Link",
110
+ "linkType": "User",
111
+ "id": "59Erm8D1JuuD273aXNb65T"
112
+ }
113
+ },
114
+ "updatedBy": {
115
+ "sys": {
116
+ "type": "Link",
117
+ "linkType": "User",
118
+ "id": "59Erm8D1JuuD273aXNb65T"
119
+ }
120
+ },
121
+ "publishedCounter": 2,
122
+ "version": 4,
123
+ "publishedBy": {
124
+ "sys": {
125
+ "type": "Link",
126
+ "linkType": "User",
127
+ "id": "59Erm8D1JuuD273aXNb65T"
128
+ }
129
+ }
130
+ },
131
+ "displayField": "name",
132
+ "name": "simple",
133
+ "description": "",
134
+ "fields": [
135
+ {
136
+ "id": "name",
137
+ "name": "title",
138
+ "type": "Symbol",
139
+ "localized": false,
140
+ "required": false,
141
+ "validations": [],
142
+ "disabled": false,
143
+ "omitted": false
144
+ }
145
+ ]
146
+ }
147
+ http_version:
148
+ recorded_at: Tue, 19 Apr 2022 15:25:02 GMT
149
+ - request:
150
+ method: post
151
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/entries
152
+ body:
153
+ encoding: UTF-8
154
+ string: '{"fields":{},"metadata":{"tags":[{"sys":{"type":"Link","linkType":"Tag","id":"icon"}}]}}'
155
+ headers:
156
+ X-Contentful-User-Agent:
157
+ - sdk contentful-management.rb/3.3.0; platform ruby/2.7.2; os macOS/21;
158
+ Authorization:
159
+ - Bearer <ACCESS_TOKEN>
160
+ Content-Type:
161
+ - application/vnd.contentful.management.v1+json
162
+ X-Contentful-Content-Type:
163
+ - simple
164
+ Content-Type-Id:
165
+ - simple
166
+ Connection:
167
+ - close
168
+ Host:
169
+ - api.contentful.com
170
+ User-Agent:
171
+ - http.rb/4.4.1
172
+ response:
173
+ status:
174
+ code: 201
175
+ message: Created
176
+ headers:
177
+ Connection:
178
+ - close
179
+ Content-Length:
180
+ - '1061'
181
+ Content-Type:
182
+ - application/vnd.contentful.management.v1+json
183
+ X-Contentful-Ratelimit-Hour-Remaining:
184
+ - '35999'
185
+ X-Contentful-Ratelimit-Second-Remaining:
186
+ - '9'
187
+ X-Contentful-Ratelimit-Hour-Limit:
188
+ - '36000'
189
+ X-Contentful-Ratelimit-Second-Limit:
190
+ - '10'
191
+ X-Contentful-Ratelimit-Reset:
192
+ - '0'
193
+ Cf-Environment-Id:
194
+ - master
195
+ Cf-Environment-Uuid:
196
+ - master
197
+ Cf-Space-Id:
198
+ - o4h6g9w3pooi
199
+ Etag:
200
+ - '"7093301486410152310"'
201
+ X-Contentful-Route:
202
+ - "/spaces/:space/environments/:environment/entries"
203
+ Strict-Transport-Security:
204
+ - max-age=15768000
205
+ X-Content-Type-Options:
206
+ - nosniff
207
+ Contentful-Api:
208
+ - cma
209
+ Server:
210
+ - Contentful
211
+ Contentful-Upstream:
212
+ - content-api
213
+ Access-Control-Allow-Origin:
214
+ - "*"
215
+ Access-Control-Allow-Headers:
216
+ - 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
217
+ Access-Control-Expose-Headers:
218
+ - Etag
219
+ Access-Control-Allow-Methods:
220
+ - DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
221
+ Access-Control-Max-Age:
222
+ - '1728000'
223
+ Cache-Control:
224
+ - no-store
225
+ Accept-Ranges:
226
+ - bytes
227
+ Date:
228
+ - Tue, 19 Apr 2022 15:25:03 GMT
229
+ X-Contentful-Request-Id:
230
+ - ff50b283-cbe7-4203-8450-9ffc934b39d7
231
+ body:
232
+ encoding: ASCII-8BIT
233
+ string: |
234
+ {
235
+ "metadata": {
236
+ "tags": [
237
+ {
238
+ "sys": {
239
+ "type": "Link",
240
+ "linkType": "Tag",
241
+ "id": "icon"
242
+ }
243
+ }
244
+ ]
245
+ },
246
+ "sys": {
247
+ "space": {
248
+ "sys": {
249
+ "type": "Link",
250
+ "linkType": "Space",
251
+ "id": "o4h6g9w3pooi"
252
+ }
253
+ },
254
+ "id": "5KPW3HoFPIy35O6KwbPwkm",
255
+ "type": "Entry",
256
+ "createdAt": "2022-04-19T15:25:03.511Z",
257
+ "updatedAt": "2022-04-19T15:25:03.511Z",
258
+ "environment": {
259
+ "sys": {
260
+ "id": "master",
261
+ "type": "Link",
262
+ "linkType": "Environment"
263
+ }
264
+ },
265
+ "createdBy": {
266
+ "sys": {
267
+ "type": "Link",
268
+ "linkType": "User",
269
+ "id": "59Erm8D1JuuD273aXNb65T"
270
+ }
271
+ },
272
+ "updatedBy": {
273
+ "sys": {
274
+ "type": "Link",
275
+ "linkType": "User",
276
+ "id": "59Erm8D1JuuD273aXNb65T"
277
+ }
278
+ },
279
+ "publishedCounter": 0,
280
+ "version": 1,
281
+ "contentType": {
282
+ "sys": {
283
+ "type": "Link",
284
+ "linkType": "ContentType",
285
+ "id": "simple"
286
+ }
287
+ }
288
+ },
289
+ "fields": {}
290
+ }
291
+ http_version:
292
+ recorded_at: Tue, 19 Apr 2022 15:25:03 GMT
293
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,125 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/testPrivate
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"test private","sys":{"visibility":"private","id":"testPrivate","type":"Tag"}}'
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: 201
25
+ message: Created
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '765'
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
+ - '"14718553105474549183"'
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:49 GMT
79
+ X-Contentful-Request-Id:
80
+ - 35913cd7-7d77-46bc-828f-679b386d0d40
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: |
84
+ {
85
+ "name": "test private",
86
+ "sys": {
87
+ "visibility": "private",
88
+ "id": "testPrivate",
89
+ "type": "Tag",
90
+ "space": {
91
+ "sys": {
92
+ "type": "Link",
93
+ "linkType": "Space",
94
+ "id": "o4h6g9w3pooi"
95
+ }
96
+ },
97
+ "environment": {
98
+ "sys": {
99
+ "id": "master",
100
+ "type": "Link",
101
+ "linkType": "Environment"
102
+ }
103
+ },
104
+ "version": 1,
105
+ "createdAt": "2022-04-19T15:12:49.603Z",
106
+ "createdBy": {
107
+ "sys": {
108
+ "type": "Link",
109
+ "linkType": "User",
110
+ "id": "59Erm8D1JuuD273aXNb65T"
111
+ }
112
+ },
113
+ "updatedAt": "2022-04-19T15:12:49.603Z",
114
+ "updatedBy": {
115
+ "sys": {
116
+ "type": "Link",
117
+ "linkType": "User",
118
+ "id": "59Erm8D1JuuD273aXNb65T"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ http_version:
124
+ recorded_at: Tue, 19 Apr 2022 15:12:49 GMT
125
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,125 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.contentful.com/spaces/o4h6g9w3pooi/environments/master/tags/testPublic
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"test public","sys":{"visibility":"public","id":"testPublic","type":"Tag"}}'
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: 201
25
+ message: Created
26
+ headers:
27
+ Connection:
28
+ - close
29
+ Content-Length:
30
+ - '762'
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
+ - '"12520374875767868435"'
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:50 GMT
79
+ X-Contentful-Request-Id:
80
+ - ecda9af5-d5d8-4f45-8f2b-0ecd445bc8ed
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: |
84
+ {
85
+ "name": "test public",
86
+ "sys": {
87
+ "visibility": "public",
88
+ "id": "testPublic",
89
+ "type": "Tag",
90
+ "space": {
91
+ "sys": {
92
+ "type": "Link",
93
+ "linkType": "Space",
94
+ "id": "o4h6g9w3pooi"
95
+ }
96
+ },
97
+ "environment": {
98
+ "sys": {
99
+ "id": "master",
100
+ "type": "Link",
101
+ "linkType": "Environment"
102
+ }
103
+ },
104
+ "version": 1,
105
+ "createdAt": "2022-04-19T15:12:50.434Z",
106
+ "createdBy": {
107
+ "sys": {
108
+ "type": "Link",
109
+ "linkType": "User",
110
+ "id": "59Erm8D1JuuD273aXNb65T"
111
+ }
112
+ },
113
+ "updatedAt": "2022-04-19T15:12:50.434Z",
114
+ "updatedBy": {
115
+ "sys": {
116
+ "type": "Link",
117
+ "linkType": "User",
118
+ "id": "59Erm8D1JuuD273aXNb65T"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ http_version:
124
+ recorded_at: Tue, 19 Apr 2022 15:12:50 GMT
125
+ recorded_with: VCR 4.0.0