@@ -65,7 +65,10 @@ func (r *DomainVerificationsPage[T]) GetNextPage() (res *DomainVerificationsPage
65
65
return nil , nil
66
66
}
67
67
cfg := r .cfg .Clone (r .cfg .Context )
68
- cfg .Apply (option .WithQuery ("token" , next ))
68
+ err = cfg .Apply (option .WithQuery ("token" , next ))
69
+ if err != nil {
70
+ return nil , err
71
+ }
69
72
var raw * http.Response
70
73
cfg .ResponseInto = & raw
71
74
cfg .ResponseBodyInto = & res
@@ -183,7 +186,10 @@ func (r *EditorsPage[T]) GetNextPage() (res *EditorsPage[T], err error) {
183
186
return nil , nil
184
187
}
185
188
cfg := r .cfg .Clone (r .cfg .Context )
186
- cfg .Apply (option .WithQuery ("token" , next ))
189
+ err = cfg .Apply (option .WithQuery ("token" , next ))
190
+ if err != nil {
191
+ return nil , err
192
+ }
187
193
var raw * http.Response
188
194
cfg .ResponseInto = & raw
189
195
cfg .ResponseBodyInto = & res
@@ -301,7 +307,10 @@ func (r *EntriesPage[T]) GetNextPage() (res *EntriesPage[T], err error) {
301
307
return nil , nil
302
308
}
303
309
cfg := r .cfg .Clone (r .cfg .Context )
304
- cfg .Apply (option .WithQuery ("token" , next ))
310
+ err = cfg .Apply (option .WithQuery ("token" , next ))
311
+ if err != nil {
312
+ return nil , err
313
+ }
305
314
var raw * http.Response
306
315
cfg .ResponseInto = & raw
307
316
cfg .ResponseBodyInto = & res
@@ -420,7 +429,10 @@ func (r *EnvironmentClassesPage[T]) GetNextPage() (res *EnvironmentClassesPage[T
420
429
return nil , nil
421
430
}
422
431
cfg := r .cfg .Clone (r .cfg .Context )
423
- cfg .Apply (option .WithQuery ("token" , next ))
432
+ err = cfg .Apply (option .WithQuery ("token" , next ))
433
+ if err != nil {
434
+ return nil , err
435
+ }
424
436
var raw * http.Response
425
437
cfg .ResponseInto = & raw
426
438
cfg .ResponseBodyInto = & res
@@ -539,7 +551,10 @@ func (r *EnvironmentsPage[T]) GetNextPage() (res *EnvironmentsPage[T], err error
539
551
return nil , nil
540
552
}
541
553
cfg := r .cfg .Clone (r .cfg .Context )
542
- cfg .Apply (option .WithQuery ("token" , next ))
554
+ err = cfg .Apply (option .WithQuery ("token" , next ))
555
+ if err != nil {
556
+ return nil , err
557
+ }
543
558
var raw * http.Response
544
559
cfg .ResponseInto = & raw
545
560
cfg .ResponseBodyInto = & res
@@ -657,7 +672,10 @@ func (r *GroupsPage[T]) GetNextPage() (res *GroupsPage[T], err error) {
657
672
return nil , nil
658
673
}
659
674
cfg := r .cfg .Clone (r .cfg .Context )
660
- cfg .Apply (option .WithQuery ("token" , next ))
675
+ err = cfg .Apply (option .WithQuery ("token" , next ))
676
+ if err != nil {
677
+ return nil , err
678
+ }
661
679
var raw * http.Response
662
680
cfg .ResponseInto = & raw
663
681
cfg .ResponseBodyInto = & res
@@ -776,7 +794,10 @@ func (r *IntegrationsPage[T]) GetNextPage() (res *IntegrationsPage[T], err error
776
794
return nil , nil
777
795
}
778
796
cfg := r .cfg .Clone (r .cfg .Context )
779
- cfg .Apply (option .WithQuery ("token" , next ))
797
+ err = cfg .Apply (option .WithQuery ("token" , next ))
798
+ if err != nil {
799
+ return nil , err
800
+ }
780
801
var raw * http.Response
781
802
cfg .ResponseInto = & raw
782
803
cfg .ResponseBodyInto = & res
@@ -895,7 +916,10 @@ func (r *LoginProvidersPage[T]) GetNextPage() (res *LoginProvidersPage[T], err e
895
916
return nil , nil
896
917
}
897
918
cfg := r .cfg .Clone (r .cfg .Context )
898
- cfg .Apply (option .WithQuery ("token" , next ))
919
+ err = cfg .Apply (option .WithQuery ("token" , next ))
920
+ if err != nil {
921
+ return nil , err
922
+ }
899
923
var raw * http.Response
900
924
cfg .ResponseInto = & raw
901
925
cfg .ResponseBodyInto = & res
@@ -1013,7 +1037,10 @@ func (r *MembersPage[T]) GetNextPage() (res *MembersPage[T], err error) {
1013
1037
return nil , nil
1014
1038
}
1015
1039
cfg := r .cfg .Clone (r .cfg .Context )
1016
- cfg .Apply (option .WithQuery ("token" , next ))
1040
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1041
+ if err != nil {
1042
+ return nil , err
1043
+ }
1017
1044
var raw * http.Response
1018
1045
cfg .ResponseInto = & raw
1019
1046
cfg .ResponseBodyInto = & res
@@ -1132,7 +1159,10 @@ func (r *OrganizationsPage[T]) GetNextPage() (res *OrganizationsPage[T], err err
1132
1159
return nil , nil
1133
1160
}
1134
1161
cfg := r .cfg .Clone (r .cfg .Context )
1135
- cfg .Apply (option .WithQuery ("token" , next ))
1162
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1163
+ if err != nil {
1164
+ return nil , err
1165
+ }
1136
1166
var raw * http.Response
1137
1167
cfg .ResponseInto = & raw
1138
1168
cfg .ResponseBodyInto = & res
@@ -1251,7 +1281,10 @@ func (r *PersonalAccessTokensPage[T]) GetNextPage() (res *PersonalAccessTokensPa
1251
1281
return nil , nil
1252
1282
}
1253
1283
cfg := r .cfg .Clone (r .cfg .Context )
1254
- cfg .Apply (option .WithQuery ("token" , next ))
1284
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1285
+ if err != nil {
1286
+ return nil , err
1287
+ }
1255
1288
var raw * http.Response
1256
1289
cfg .ResponseInto = & raw
1257
1290
cfg .ResponseBodyInto = & res
@@ -1369,7 +1402,10 @@ func (r *PoliciesPage[T]) GetNextPage() (res *PoliciesPage[T], err error) {
1369
1402
return nil , nil
1370
1403
}
1371
1404
cfg := r .cfg .Clone (r .cfg .Context )
1372
- cfg .Apply (option .WithQuery ("token" , next ))
1405
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1406
+ if err != nil {
1407
+ return nil , err
1408
+ }
1373
1409
var raw * http.Response
1374
1410
cfg .ResponseInto = & raw
1375
1411
cfg .ResponseBodyInto = & res
@@ -1487,7 +1523,10 @@ func (r *ProjectsPage[T]) GetNextPage() (res *ProjectsPage[T], err error) {
1487
1523
return nil , nil
1488
1524
}
1489
1525
cfg := r .cfg .Clone (r .cfg .Context )
1490
- cfg .Apply (option .WithQuery ("token" , next ))
1526
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1527
+ if err != nil {
1528
+ return nil , err
1529
+ }
1491
1530
var raw * http.Response
1492
1531
cfg .ResponseInto = & raw
1493
1532
cfg .ResponseBodyInto = & res
@@ -1605,7 +1644,10 @@ func (r *RunnersPage[T]) GetNextPage() (res *RunnersPage[T], err error) {
1605
1644
return nil , nil
1606
1645
}
1607
1646
cfg := r .cfg .Clone (r .cfg .Context )
1608
- cfg .Apply (option .WithQuery ("token" , next ))
1647
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1648
+ if err != nil {
1649
+ return nil , err
1650
+ }
1609
1651
var raw * http.Response
1610
1652
cfg .ResponseInto = & raw
1611
1653
cfg .ResponseBodyInto = & res
@@ -1723,7 +1765,10 @@ func (r *SecretsPage[T]) GetNextPage() (res *SecretsPage[T], err error) {
1723
1765
return nil , nil
1724
1766
}
1725
1767
cfg := r .cfg .Clone (r .cfg .Context )
1726
- cfg .Apply (option .WithQuery ("token" , next ))
1768
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1769
+ if err != nil {
1770
+ return nil , err
1771
+ }
1727
1772
var raw * http.Response
1728
1773
cfg .ResponseInto = & raw
1729
1774
cfg .ResponseBodyInto = & res
@@ -1841,7 +1886,10 @@ func (r *ServicesPage[T]) GetNextPage() (res *ServicesPage[T], err error) {
1841
1886
return nil , nil
1842
1887
}
1843
1888
cfg := r .cfg .Clone (r .cfg .Context )
1844
- cfg .Apply (option .WithQuery ("token" , next ))
1889
+ err = cfg .Apply (option .WithQuery ("token" , next ))
1890
+ if err != nil {
1891
+ return nil , err
1892
+ }
1845
1893
var raw * http.Response
1846
1894
cfg .ResponseInto = & raw
1847
1895
cfg .ResponseBodyInto = & res
@@ -1960,7 +2008,10 @@ func (r *SSOConfigurationsPage[T]) GetNextPage() (res *SSOConfigurationsPage[T],
1960
2008
return nil , nil
1961
2009
}
1962
2010
cfg := r .cfg .Clone (r .cfg .Context )
1963
- cfg .Apply (option .WithQuery ("token" , next ))
2011
+ err = cfg .Apply (option .WithQuery ("token" , next ))
2012
+ if err != nil {
2013
+ return nil , err
2014
+ }
1964
2015
var raw * http.Response
1965
2016
cfg .ResponseInto = & raw
1966
2017
cfg .ResponseBodyInto = & res
@@ -2079,7 +2130,10 @@ func (r *TaskExecutionsPage[T]) GetNextPage() (res *TaskExecutionsPage[T], err e
2079
2130
return nil , nil
2080
2131
}
2081
2132
cfg := r .cfg .Clone (r .cfg .Context )
2082
- cfg .Apply (option .WithQuery ("token" , next ))
2133
+ err = cfg .Apply (option .WithQuery ("token" , next ))
2134
+ if err != nil {
2135
+ return nil , err
2136
+ }
2083
2137
var raw * http.Response
2084
2138
cfg .ResponseInto = & raw
2085
2139
cfg .ResponseBodyInto = & res
@@ -2197,7 +2251,10 @@ func (r *TasksPage[T]) GetNextPage() (res *TasksPage[T], err error) {
2197
2251
return nil , nil
2198
2252
}
2199
2253
cfg := r .cfg .Clone (r .cfg .Context )
2200
- cfg .Apply (option .WithQuery ("token" , next ))
2254
+ err = cfg .Apply (option .WithQuery ("token" , next ))
2255
+ if err != nil {
2256
+ return nil , err
2257
+ }
2201
2258
var raw * http.Response
2202
2259
cfg .ResponseInto = & raw
2203
2260
cfg .ResponseBodyInto = & res
@@ -2315,7 +2372,10 @@ func (r *TokensPage[T]) GetNextPage() (res *TokensPage[T], err error) {
2315
2372
return nil , nil
2316
2373
}
2317
2374
cfg := r .cfg .Clone (r .cfg .Context )
2318
- cfg .Apply (option .WithQuery ("token" , next ))
2375
+ err = cfg .Apply (option .WithQuery ("token" , next ))
2376
+ if err != nil {
2377
+ return nil , err
2378
+ }
2319
2379
var raw * http.Response
2320
2380
cfg .ResponseInto = & raw
2321
2381
cfg .ResponseBodyInto = & res
0 commit comments