contentful-management 3.4.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +16 -0
- data/lib/contentful/management/client.rb +2 -1
- data/lib/contentful/management/client_environment_methods_factory.rb +5 -2
- data/lib/contentful/management/entry.rb +13 -0
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/entry/references.yml +496 -0
- data/spec/fixtures/vcr_cassettes/entry/too_many_requests_retry.yml +1 -1
- data/spec/fixtures/vcr_cassettes/environment/all/limit_100.yml +1142 -0
- data/spec/fixtures/vcr_cassettes/environment/all/skip_25.yml +159 -0
- data/spec/fixtures/vcr_cassettes/environment/all.yml +986 -109
- data/spec/lib/contentful/management/entry_spec.rb +17 -1
- data/spec/lib/contentful/management/environment_spec.rb +52 -12
- metadata +8 -2
@@ -0,0 +1,159 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments?skip=25
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/3.5.0; platform ruby/3.0.4; os macOS/21;
|
12
|
+
Authorization:
|
13
|
+
- Bearer [REDACTED]
|
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
|
+
- '1019'
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.contentful.management.v1+json
|
33
|
+
X-Contentful-Ratelimit-Reset:
|
34
|
+
- '0'
|
35
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
36
|
+
- '107998'
|
37
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
38
|
+
- '28'
|
39
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
40
|
+
- '108000'
|
41
|
+
X-Contentful-Ratelimit-Second-Limit:
|
42
|
+
- '30'
|
43
|
+
Accept-Ranges:
|
44
|
+
- bytes
|
45
|
+
Cache-Control:
|
46
|
+
- max-age=0
|
47
|
+
Cf-Organization-Id:
|
48
|
+
- 29HCJPTi0Xu2SgCK47kBVA
|
49
|
+
Cf-Space-Id:
|
50
|
+
- facgnwwgj5fe
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'default-src ''self'' static.contentful.com; font-src ''self'' data: static.contentful.com
|
53
|
+
https://www.contentful.com fonts.googleapis.com static.contentful.com www.ctfstatic.com
|
54
|
+
fonts.gstatic.com https://use.typekit.net https://storage.googleapis.com;
|
55
|
+
img-src ''self'' data: static.contentful.com https://www.contentful.com www.ctfstatic.com
|
56
|
+
https://segments.company-target.com https://match.prod.bidr.io https://scripts.demandbase.com/
|
57
|
+
https://www.gstatic.com https://www.google-analytics.com; object-src ''none'';
|
58
|
+
script-src ''self'' ''unsafe-eval'' static.contentful.com https://tag.demandbase.com
|
59
|
+
https://autocomplete.demandbase.com https://www.gstatic.com https://static.zuora.com
|
60
|
+
https://www.recaptcha.net https://www.google-analytics.com ''nonce-dlZXCxmBHILq4nskbDhIMA=='';
|
61
|
+
style-src ''self'' ''unsafe-inline'' static.contentful.com https://www.contentful.com
|
62
|
+
fonts.googleapis.com www.ctfstatic.com https://scripts.demandbase.com; connect-src
|
63
|
+
''self'' static.contentful.com https://api.company-target.com https://segments.company-target.com
|
64
|
+
https://www.google-analytics.com https://sentry.io; frame-src https://*.zuora.com
|
65
|
+
https://www.google.com https://www.recaptcha.net; frame-ancestors ''self''
|
66
|
+
https://app.contentful.com; report-uri https://51772a31e6668243854408567273914e.report-uri.com/r/t/csp/enforce'
|
67
|
+
Etag:
|
68
|
+
- W/"650244a91cb16f1f1c398f693c867d4a"
|
69
|
+
Referrer-Policy:
|
70
|
+
- strict-origin-when-cross-origin
|
71
|
+
X-Content-Type-Options:
|
72
|
+
- nosniff
|
73
|
+
X-Contentful-Route:
|
74
|
+
- "/spaces/:space_id/environments"
|
75
|
+
X-Download-Options:
|
76
|
+
- noopen
|
77
|
+
X-Permitted-Cross-Domain-Policies:
|
78
|
+
- none
|
79
|
+
X-Xss-Protection:
|
80
|
+
- '0'
|
81
|
+
Strict-Transport-Security:
|
82
|
+
- max-age=15768000
|
83
|
+
Server:
|
84
|
+
- Contentful
|
85
|
+
Contentful-Api:
|
86
|
+
- cma
|
87
|
+
Contentful-Upstream:
|
88
|
+
- gatekeeper
|
89
|
+
Access-Control-Allow-Origin:
|
90
|
+
- "*"
|
91
|
+
Access-Control-Allow-Headers:
|
92
|
+
- 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
|
93
|
+
Access-Control-Expose-Headers:
|
94
|
+
- Etag
|
95
|
+
Access-Control-Allow-Methods:
|
96
|
+
- DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
|
97
|
+
Access-Control-Max-Age:
|
98
|
+
- '1728000'
|
99
|
+
Date:
|
100
|
+
- Wed, 14 Sep 2022 11:46:56 GMT
|
101
|
+
X-Contentful-Request-Id:
|
102
|
+
- 8f8d0960-b090-4c02-a453-b8a851a93ad2
|
103
|
+
body:
|
104
|
+
encoding: ASCII-8BIT
|
105
|
+
string: |+
|
106
|
+
{
|
107
|
+
"total":26,
|
108
|
+
"limit":25,
|
109
|
+
"skip":25,
|
110
|
+
"sys":{
|
111
|
+
"type":"Array"
|
112
|
+
},
|
113
|
+
"items":[
|
114
|
+
{
|
115
|
+
"name":"environment-26",
|
116
|
+
"sys":{
|
117
|
+
"type":"Environment",
|
118
|
+
"id":"environment-26",
|
119
|
+
"version":3,
|
120
|
+
"space":{
|
121
|
+
"sys":{
|
122
|
+
"type":"Link",
|
123
|
+
"linkType":"Space",
|
124
|
+
"id":"facgnwwgj5fe"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"status":{
|
128
|
+
"sys":{
|
129
|
+
"type":"Link",
|
130
|
+
"linkType":"Status",
|
131
|
+
"id":"ready"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
"createdBy":{
|
135
|
+
"sys":{
|
136
|
+
"type":"Link",
|
137
|
+
"linkType":"User",
|
138
|
+
"id":"2wIKFiIBdEWuI2fnBzOJnw"
|
139
|
+
}
|
140
|
+
},
|
141
|
+
"createdAt":"2022-09-14T11:43:20Z",
|
142
|
+
"updatedBy":{
|
143
|
+
"sys":{
|
144
|
+
"type":"Link",
|
145
|
+
"linkType":"User",
|
146
|
+
"id":"2wIKFiIBdEWuI2fnBzOJnw"
|
147
|
+
}
|
148
|
+
},
|
149
|
+
"updatedAt":"2022-09-14T11:43:21Z",
|
150
|
+
"aliases":[]
|
151
|
+
}
|
152
|
+
}
|
153
|
+
]
|
154
|
+
}
|
155
|
+
|
156
|
+
http_version:
|
157
|
+
recorded_at: Wed, 14 Sep 2022 11:46:56 GMT
|
158
|
+
recorded_with: VCR 4.0.0
|
159
|
+
...
|