contentful-management 2.11.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+ require 'contentful/management/space'
3
+ require 'contentful/management/client'
4
+
5
+ module Contentful
6
+ module Management
7
+ describe OrganizationPeriodicUsage do
8
+ let(:token) { ENV.fetch('CF_TEST_CMA_TOKEN', '<ACCESS_TOKEN>') }
9
+ let(:organization_id) { 'org_id' }
10
+
11
+ let!(:client) { Client.new(token) }
12
+
13
+ subject { client.organization_periodic_usages(organization_id) }
14
+
15
+ describe '.all' do
16
+ it 'class method also works' do
17
+ vcr('organization_periodic_usage/all') { expect(Contentful::Management::OrganizationPeriodicUsage.all(client, organization_id)).to be_kind_of Contentful::Management::Array }
18
+ end
19
+ it 'returns a Contentful::Array' do
20
+ vcr('organization_periodic_usage/all') { expect(subject.all).to be_kind_of Contentful::Management::Array }
21
+ end
22
+ it 'builds a Contentful::Management::OrganizationPeriodicUsage object' do
23
+ vcr('organization_periodic_usage/all') { expect(subject.all.first).to be_kind_of Contentful::Management::OrganizationPeriodicUsage }
24
+ end
25
+ it 'builds a Contentful::Management::OrganizationPeriodicUsage object' do
26
+ vcr('organization_periodic_usage/filters') {
27
+ result = subject.all('metric[in]' => 'cda')
28
+ expect(result.size).to eq 1
29
+ expect(result.first).to be_kind_of Contentful::Management::OrganizationPeriodicUsage
30
+ expect(result.first.metric).to eq 'cda'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+ require 'contentful/management/space'
3
+ require 'contentful/management/client'
4
+
5
+ module Contentful
6
+ module Management
7
+ describe SpacePeriodicUsage do
8
+ let(:token) { ENV.fetch('CF_TEST_CMA_TOKEN', '<ACCESS_TOKEN>') }
9
+ let(:organization_id) { 'org_id' }
10
+
11
+ let!(:client) { Client.new(token) }
12
+
13
+ subject { client.space_periodic_usages(organization_id) }
14
+
15
+ describe '.all' do
16
+ it 'class method also works' do
17
+ vcr('space_periodic_usage/all') { expect(Contentful::Management::SpacePeriodicUsage.all(client, organization_id)).to be_kind_of Contentful::Management::Array }
18
+ end
19
+ it 'returns a Contentful::Array' do
20
+ vcr('space_periodic_usage/all') { expect(subject.all).to be_kind_of Contentful::Management::Array }
21
+ end
22
+ it 'builds a Contentful::Management::SpacePeriodicUsage object' do
23
+ vcr('space_periodic_usage/all') { expect(subject.all.first).to be_kind_of Contentful::Management::SpacePeriodicUsage }
24
+ end
25
+ it 'builds a Contentful::Management::SpacePeriodicUsage object' do
26
+ vcr('space_periodic_usage/filters') {
27
+ result = subject.all('metric[in]' => 'cda')
28
+ expect(result.all? { |pu| pu.metric == 'cda' }).to be_truthy
29
+ expect(result.first).to be_kind_of Contentful::Management::SpacePeriodicUsage
30
+ expect(result.first.metric).to eq 'cda'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Protas
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-09-19 00:00:00.000000000 Z
13
+ date: 2020-03-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -307,12 +307,10 @@ files:
307
307
  - examples/create_space.rb
308
308
  - lib/contentful/management.rb
309
309
  - lib/contentful/management/api_key.rb
310
- - lib/contentful/management/api_usage.rb
311
310
  - lib/contentful/management/array.rb
312
311
  - lib/contentful/management/asset.rb
313
312
  - lib/contentful/management/client.rb
314
313
  - lib/contentful/management/client_api_key_methods_factory.rb
315
- - lib/contentful/management/client_api_usage_methods_factory.rb
316
314
  - lib/contentful/management/client_asset_methods_factory.rb
317
315
  - lib/contentful/management/client_association_all_published_method_factory.rb
318
316
  - lib/contentful/management/client_association_methods_factory.rb
@@ -322,15 +320,16 @@ files:
322
320
  - lib/contentful/management/client_environment_methods_factory.rb
323
321
  - lib/contentful/management/client_locale_methods_factory.rb
324
322
  - lib/contentful/management/client_organization_methods_factory.rb
323
+ - lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
325
324
  - lib/contentful/management/client_personal_access_tokens_methods_factory.rb
326
325
  - lib/contentful/management/client_preview_api_key_methods_factory.rb
327
326
  - lib/contentful/management/client_role_methods_factory.rb
328
327
  - lib/contentful/management/client_snapshot_methods_factory.rb
329
328
  - lib/contentful/management/client_space_membership_methods_factory.rb
330
329
  - lib/contentful/management/client_space_methods_factory.rb
330
+ - lib/contentful/management/client_space_periodic_usage_methods_factory.rb
331
331
  - lib/contentful/management/client_ui_extension_methods_factory.rb
332
332
  - lib/contentful/management/client_upload_methods_factory.rb
333
- - lib/contentful/management/client_usage_period_methods_factory.rb
334
333
  - lib/contentful/management/client_user_methods_factory.rb
335
334
  - lib/contentful/management/client_webhook_call_methods_factory.rb
336
335
  - lib/contentful/management/client_webhook_health_methods_factory.rb
@@ -359,6 +358,7 @@ files:
359
358
  - lib/contentful/management/locale.rb
360
359
  - lib/contentful/management/location.rb
361
360
  - lib/contentful/management/organization.rb
361
+ - lib/contentful/management/organization_periodic_usage.rb
362
362
  - lib/contentful/management/personal_access_token.rb
363
363
  - lib/contentful/management/preview_api_key.rb
364
364
  - lib/contentful/management/request.rb
@@ -384,6 +384,7 @@ files:
384
384
  - lib/contentful/management/space_association_methods_factory.rb
385
385
  - lib/contentful/management/space_environment_methods_factory.rb
386
386
  - lib/contentful/management/space_membership.rb
387
+ - lib/contentful/management/space_periodic_usage.rb
387
388
  - lib/contentful/management/space_preview_api_key_methods_factory.rb
388
389
  - lib/contentful/management/space_role_methods_factory.rb
389
390
  - lib/contentful/management/space_space_membership_methods_factory.rb
@@ -391,7 +392,6 @@ files:
391
392
  - lib/contentful/management/support.rb
392
393
  - lib/contentful/management/ui_extension.rb
393
394
  - lib/contentful/management/upload.rb
394
- - lib/contentful/management/usage_period.rb
395
395
  - lib/contentful/management/user.rb
396
396
  - lib/contentful/management/validation.rb
397
397
  - lib/contentful/management/version.rb
@@ -433,7 +433,6 @@ files:
433
433
  - spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
434
434
  - spec/fixtures/vcr_cassettes/api_key/issue_189.yml
435
435
  - spec/fixtures/vcr_cassettes/api_key/preview.yml
436
- - spec/fixtures/vcr_cassettes/api_usage/all.yml
437
436
  - spec/fixtures/vcr_cassettes/array_page_1.yml
438
437
  - spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
439
438
  - spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
@@ -647,6 +646,8 @@ files:
647
646
  - spec/fixtures/vcr_cassettes/locale/update_code.yml
648
647
  - spec/fixtures/vcr_cassettes/locale/update_name.yml
649
648
  - spec/fixtures/vcr_cassettes/organization/all.yml
649
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
650
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
650
651
  - spec/fixtures/vcr_cassettes/personal_access_token/all.yml
651
652
  - spec/fixtures/vcr_cassettes/personal_access_token/create.yml
652
653
  - spec/fixtures/vcr_cassettes/personal_access_token/find.yml
@@ -722,6 +723,8 @@ files:
722
723
  - spec/fixtures/vcr_cassettes/space_memberships/delete.yml
723
724
  - spec/fixtures/vcr_cassettes/space_memberships/find.yml
724
725
  - spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
726
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
727
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
725
728
  - spec/fixtures/vcr_cassettes/ui_extension/all.yml
726
729
  - spec/fixtures/vcr_cassettes/ui_extension/create.yml
727
730
  - spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
@@ -733,7 +736,6 @@ files:
733
736
  - spec/fixtures/vcr_cassettes/upload/destroy.yml
734
737
  - spec/fixtures/vcr_cassettes/upload/find.yml
735
738
  - spec/fixtures/vcr_cassettes/upload/find_not_found.yml
736
- - spec/fixtures/vcr_cassettes/usage_period/all.yml
737
739
  - spec/fixtures/vcr_cassettes/user/find.yml
738
740
  - spec/fixtures/vcr_cassettes/webhook/all.yml
739
741
  - spec/fixtures/vcr_cassettes/webhook/create.yml
@@ -752,7 +754,6 @@ files:
752
754
  - spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
753
755
  - spec/fixtures/vcr_cassettes/webhook_health/find.yml
754
756
  - spec/lib/contentful/management/api_key_spec.rb
755
- - spec/lib/contentful/management/api_usage_spec.rb
756
757
  - spec/lib/contentful/management/array_spec.rb
757
758
  - spec/lib/contentful/management/asset_spec.rb
758
759
  - spec/lib/contentful/management/client_spec.rb
@@ -762,15 +763,16 @@ files:
762
763
  - spec/lib/contentful/management/environment_spec.rb
763
764
  - spec/lib/contentful/management/error_class_spec.rb
764
765
  - spec/lib/contentful/management/locale_spec.rb
766
+ - spec/lib/contentful/management/organization_periodic_usage_spec.rb
765
767
  - spec/lib/contentful/management/organization_spec.rb
766
768
  - spec/lib/contentful/management/personal_access_token_spec.rb
767
769
  - spec/lib/contentful/management/role_spec.rb
768
770
  - spec/lib/contentful/management/snapshot_spec.rb
769
771
  - spec/lib/contentful/management/space_membership_spec.rb
772
+ - spec/lib/contentful/management/space_periodic_usage_spec.rb
770
773
  - spec/lib/contentful/management/space_spec.rb
771
774
  - spec/lib/contentful/management/ui_extension_spec.rb
772
775
  - spec/lib/contentful/management/upload_spec.rb
773
- - spec/lib/contentful/management/usage_period_spec.rb
774
776
  - spec/lib/contentful/management/user_spec.rb
775
777
  - spec/lib/contentful/management/webhook_calls_spec.rb
776
778
  - spec/lib/contentful/management/webhook_health_spec.rb
@@ -835,7 +837,6 @@ test_files:
835
837
  - spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
836
838
  - spec/fixtures/vcr_cassettes/api_key/issue_189.yml
837
839
  - spec/fixtures/vcr_cassettes/api_key/preview.yml
838
- - spec/fixtures/vcr_cassettes/api_usage/all.yml
839
840
  - spec/fixtures/vcr_cassettes/array_page_1.yml
840
841
  - spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
841
842
  - spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
@@ -1049,6 +1050,8 @@ test_files:
1049
1050
  - spec/fixtures/vcr_cassettes/locale/update_code.yml
1050
1051
  - spec/fixtures/vcr_cassettes/locale/update_name.yml
1051
1052
  - spec/fixtures/vcr_cassettes/organization/all.yml
1053
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
1054
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
1052
1055
  - spec/fixtures/vcr_cassettes/personal_access_token/all.yml
1053
1056
  - spec/fixtures/vcr_cassettes/personal_access_token/create.yml
1054
1057
  - spec/fixtures/vcr_cassettes/personal_access_token/find.yml
@@ -1124,6 +1127,8 @@ test_files:
1124
1127
  - spec/fixtures/vcr_cassettes/space_memberships/delete.yml
1125
1128
  - spec/fixtures/vcr_cassettes/space_memberships/find.yml
1126
1129
  - spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
1130
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
1131
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
1127
1132
  - spec/fixtures/vcr_cassettes/ui_extension/all.yml
1128
1133
  - spec/fixtures/vcr_cassettes/ui_extension/create.yml
1129
1134
  - spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
@@ -1135,7 +1140,6 @@ test_files:
1135
1140
  - spec/fixtures/vcr_cassettes/upload/destroy.yml
1136
1141
  - spec/fixtures/vcr_cassettes/upload/find.yml
1137
1142
  - spec/fixtures/vcr_cassettes/upload/find_not_found.yml
1138
- - spec/fixtures/vcr_cassettes/usage_period/all.yml
1139
1143
  - spec/fixtures/vcr_cassettes/user/find.yml
1140
1144
  - spec/fixtures/vcr_cassettes/webhook/all.yml
1141
1145
  - spec/fixtures/vcr_cassettes/webhook/create.yml
@@ -1154,7 +1158,6 @@ test_files:
1154
1158
  - spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
1155
1159
  - spec/fixtures/vcr_cassettes/webhook_health/find.yml
1156
1160
  - spec/lib/contentful/management/api_key_spec.rb
1157
- - spec/lib/contentful/management/api_usage_spec.rb
1158
1161
  - spec/lib/contentful/management/array_spec.rb
1159
1162
  - spec/lib/contentful/management/asset_spec.rb
1160
1163
  - spec/lib/contentful/management/client_spec.rb
@@ -1164,15 +1167,16 @@ test_files:
1164
1167
  - spec/lib/contentful/management/environment_spec.rb
1165
1168
  - spec/lib/contentful/management/error_class_spec.rb
1166
1169
  - spec/lib/contentful/management/locale_spec.rb
1170
+ - spec/lib/contentful/management/organization_periodic_usage_spec.rb
1167
1171
  - spec/lib/contentful/management/organization_spec.rb
1168
1172
  - spec/lib/contentful/management/personal_access_token_spec.rb
1169
1173
  - spec/lib/contentful/management/role_spec.rb
1170
1174
  - spec/lib/contentful/management/snapshot_spec.rb
1171
1175
  - spec/lib/contentful/management/space_membership_spec.rb
1176
+ - spec/lib/contentful/management/space_periodic_usage_spec.rb
1172
1177
  - spec/lib/contentful/management/space_spec.rb
1173
1178
  - spec/lib/contentful/management/ui_extension_spec.rb
1174
1179
  - spec/lib/contentful/management/upload_spec.rb
1175
- - spec/lib/contentful/management/usage_period_spec.rb
1176
1180
  - spec/lib/contentful/management/user_spec.rb
1177
1181
  - spec/lib/contentful/management/webhook_calls_spec.rb
1178
1182
  - spec/lib/contentful/management/webhook_health_spec.rb
@@ -1,155 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.contentful.com/organizations/org_id/usages/organization?filters%5Bmetric%5D=cda&filters%5BusagePeriod%5D=1
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- X-Contentful-User-Agent:
11
- - sdk contentful-management.rb/2.5.0; platform ruby/2.4.1; os macOS/16;
12
- Authorization:
13
- - Bearer <ACCESS_TOKEN>
14
- Content-Type:
15
- - application/vnd.contentful.management.v1+json
16
- X-Contentful-Enable-Alpha-Feature:
17
- - usage-insights
18
- Connection:
19
- - close
20
- Host:
21
- - api.contentful.com
22
- User-Agent:
23
- - http.rb/2.2.2
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Accept-Ranges:
30
- - bytes
31
- Access-Control-Allow-Headers:
32
- - 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
33
- Access-Control-Allow-Methods:
34
- - DELETE,GET,HEAD,POST,PUT,OPTIONS
35
- Access-Control-Allow-Origin:
36
- - "*"
37
- Access-Control-Expose-Headers:
38
- - Etag
39
- Access-Control-Max-Age:
40
- - '1728000'
41
- Cache-Control:
42
- - max-age=0
43
- Content-Type:
44
- - application/vnd.contentful.management.v1+json
45
- Contentful-Api:
46
- - cma
47
- Date:
48
- - Sat, 10 Nov 2018 10:47:53 GMT
49
- Etag:
50
- - W/"efdf341b30e8c442ecb1bfe1b7f21817"
51
- Referrer-Policy:
52
- - strict-origin-when-cross-origin
53
- Server:
54
- - Contentful
55
- Strict-Transport-Security:
56
- - max-age=15768000
57
- X-Content-Type-Options:
58
- - nosniff
59
- X-Contentful-Request-Id:
60
- - 26c4437bd5b8c12ee6b71ad955dd7339
61
- X-Download-Options:
62
- - noopen
63
- X-Frame-Options:
64
- - ALLOWALL
65
- X-Permitted-Cross-Domain-Policies:
66
- - none
67
- X-Xss-Protection:
68
- - 1; mode=block
69
- Content-Length:
70
- - '959'
71
- Connection:
72
- - Close
73
- Set-Cookie:
74
- - incap_ses_728_673446=17XUL5vN1wivb82OzmAaCli35lsAAAAAbBLg2M0OjfGoassR05osmA==;
75
- path=/; Domain=.contentful.com
76
- - nlbi_673446=r1SmH3jioiwG5xWr6lKYhQAAAAB3pI+2F+Uz7kJVuxNgDetk; path=/; Domain=.contentful.com
77
- - visid_incap_673446=BbPQYzUTTGyyIO44A0XYili35lsAAAAAQUIPAAAAAABSSTQWr6HEWN7pTaZKxfmU;
78
- expires=Sat, 09 Nov 2019 14:12:09 GMT; path=/; Domain=.contentful.com
79
- X-Iinfo:
80
- - 3-12615349-12615354 NNNN CT(0 0 0) RT(1541846872399 65) q(0 0 0 -1) r(1 1)
81
- U5
82
- X-Cdn:
83
- - Incapsula
84
- body:
85
- encoding: ASCII-8BIT
86
- string: |+
87
- {
88
- "total":1,
89
- "limit":25,
90
- "skip":0,
91
- "sys":{
92
- "type":"Array"
93
- },
94
- "items":[
95
- {
96
- "unitOfMeasure":"apiRequests",
97
- "interval":"daily",
98
- "usage":[
99
- 0,
100
- 0,
101
- 0,
102
- 0,
103
- 0,
104
- 0,
105
- 0,
106
- 0,
107
- 0,
108
- 0,
109
- 9423,
110
- 49300,
111
- 12546,
112
- 0,
113
- 0,
114
- 0,
115
- 0,
116
- 0,
117
- 0,
118
- 0,
119
- 0,
120
- 0,
121
- 0,
122
- 0,
123
- 0,
124
- 0,
125
- 0,
126
- 0,
127
- 0,
128
- 0,
129
- 0
130
- ],
131
- "sys":{
132
- "type":"ApiUsage",
133
- "id":"1_org_id",
134
- "organization":{
135
- "sys":{
136
- "type":"Link",
137
- "linkType":"Organization",
138
- "id":"org_id"
139
- }
140
- },
141
- "usagePeriod":{
142
- "sys":{
143
- "type":"Link",
144
- "linkType":"UsagePeriod",
145
- "id":"1"
146
- }
147
- }
148
- }
149
- }
150
- ]
151
- }
152
-
153
- http_version:
154
- recorded_at: Sat, 10 Nov 2018 10:47:53 GMT
155
- recorded_with: VCR 4.0.0
@@ -1,114 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.contentful.com/organizations/org_id/usage_periods
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- X-Contentful-User-Agent:
11
- - sdk contentful-management.rb/2.5.0; platform ruby/2.4.1; os macOS/16;
12
- Authorization:
13
- - Bearer <ACCESS_TOKEN>
14
- Content-Type:
15
- - application/vnd.contentful.management.v1+json
16
- X-Contentful-Enable-Alpha-Feature:
17
- - usage-insights
18
- Connection:
19
- - close
20
- Host:
21
- - api.contentful.com
22
- User-Agent:
23
- - http.rb/2.2.2
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Accept-Ranges:
30
- - bytes
31
- Access-Control-Allow-Headers:
32
- - 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
33
- Access-Control-Allow-Methods:
34
- - DELETE,GET,HEAD,POST,PUT,OPTIONS
35
- Access-Control-Allow-Origin:
36
- - "*"
37
- Access-Control-Expose-Headers:
38
- - Etag
39
- Access-Control-Max-Age:
40
- - '1728000'
41
- Cache-Control:
42
- - max-age=0
43
- Content-Type:
44
- - application/vnd.contentful.management.v1+json
45
- Contentful-Api:
46
- - cma
47
- Date:
48
- - Sat, 10 Nov 2018 10:59:12 GMT
49
- Etag:
50
- - W/"0e32a37f3690af7bd68571521823b4c3"
51
- Referrer-Policy:
52
- - strict-origin-when-cross-origin
53
- Server:
54
- - Contentful
55
- Strict-Transport-Security:
56
- - max-age=15768000
57
- X-Content-Type-Options:
58
- - nosniff
59
- X-Contentful-Request-Id:
60
- - 9e2af1c902719cf6251824eb8bad9a5b
61
- X-Download-Options:
62
- - noopen
63
- X-Frame-Options:
64
- - ALLOWALL
65
- X-Permitted-Cross-Domain-Policies:
66
- - none
67
- X-Xss-Protection:
68
- - 1; mode=block
69
- Content-Length:
70
- - '347'
71
- Connection:
72
- - Close
73
- Set-Cookie:
74
- - incap_ses_728_673446=emwoQG4P7gsAZ9COzmAaCv+55lsAAAAA12p7HXlIfXdD2z8IqJzDPw==;
75
- path=/; Domain=.contentful.com
76
- - nlbi_673446=JuK/CqPU8mAD0NE+6lKYhQAAAAAeh+9STttZdZDE0eCH49c3; path=/; Domain=.contentful.com
77
- - visid_incap_673446=3rYhv3e6Tf2l54SFmGsgOP+55lsAAAAAQUIPAAAAAAA6Tug0qWXjQ5TjaPxx4YJR;
78
- expires=Sat, 09 Nov 2019 14:12:09 GMT; path=/; Domain=.contentful.com
79
- X-Iinfo:
80
- - 6-10352937-10352945 NNNN CT(90 182 0) RT(1541847550884 85) q(0 0 3 -1) r(5
81
- 5) U5
82
- X-Cdn:
83
- - Incapsula
84
- body:
85
- encoding: ASCII-8BIT
86
- string: |+
87
- {
88
- "total":2,
89
- "sys":{
90
- "type":"Array"
91
- },
92
- "items":[
93
- {
94
- "startDate":"2018-11-01",
95
- "endDate":null,
96
- "sys":{
97
- "type":"UsagePeriod",
98
- "id":"2"
99
- }
100
- },
101
- {
102
- "startDate":"2018-10-01",
103
- "endDate":"2018-10-31",
104
- "sys":{
105
- "type":"UsagePeriod",
106
- "id":"1"
107
- }
108
- }
109
- ]
110
- }
111
-
112
- http_version:
113
- recorded_at: Sat, 10 Nov 2018 10:59:12 GMT
114
- recorded_with: VCR 4.0.0