@@ -60,6 +60,9 @@ func (r domainVerificationsPageJSON) RawJSON() string {
60
60
// there is no next page, this function will return a 'nil' for the page value, but
61
61
// will not return an error
62
62
func (r * DomainVerificationsPage [T ]) GetNextPage () (res * DomainVerificationsPage [T ], err error ) {
63
+ if len (r .DomainVerifications ) == 0 {
64
+ return nil , nil
65
+ }
63
66
next := r .Pagination .NextToken
64
67
if len (next ) == 0 {
65
68
return nil , nil
@@ -181,6 +184,9 @@ func (r editorsPageJSON) RawJSON() string {
181
184
// there is no next page, this function will return a 'nil' for the page value, but
182
185
// will not return an error
183
186
func (r * EditorsPage [T ]) GetNextPage () (res * EditorsPage [T ], err error ) {
187
+ if len (r .Editors ) == 0 {
188
+ return nil , nil
189
+ }
184
190
next := r .Pagination .NextToken
185
191
if len (next ) == 0 {
186
192
return nil , nil
@@ -302,6 +308,9 @@ func (r entriesPageJSON) RawJSON() string {
302
308
// there is no next page, this function will return a 'nil' for the page value, but
303
309
// will not return an error
304
310
func (r * EntriesPage [T ]) GetNextPage () (res * EntriesPage [T ], err error ) {
311
+ if len (r .Entries ) == 0 {
312
+ return nil , nil
313
+ }
305
314
next := r .Pagination .NextToken
306
315
if len (next ) == 0 {
307
316
return nil , nil
@@ -424,6 +433,9 @@ func (r environmentClassesPageJSON) RawJSON() string {
424
433
// there is no next page, this function will return a 'nil' for the page value, but
425
434
// will not return an error
426
435
func (r * EnvironmentClassesPage [T ]) GetNextPage () (res * EnvironmentClassesPage [T ], err error ) {
436
+ if len (r .EnvironmentClasses ) == 0 {
437
+ return nil , nil
438
+ }
427
439
next := r .Pagination .NextToken
428
440
if len (next ) == 0 {
429
441
return nil , nil
@@ -546,6 +558,9 @@ func (r environmentsPageJSON) RawJSON() string {
546
558
// there is no next page, this function will return a 'nil' for the page value, but
547
559
// will not return an error
548
560
func (r * EnvironmentsPage [T ]) GetNextPage () (res * EnvironmentsPage [T ], err error ) {
561
+ if len (r .Environments ) == 0 {
562
+ return nil , nil
563
+ }
549
564
next := r .Pagination .NextToken
550
565
if len (next ) == 0 {
551
566
return nil , nil
@@ -667,6 +682,9 @@ func (r gatewaysPageJSON) RawJSON() string {
667
682
// there is no next page, this function will return a 'nil' for the page value, but
668
683
// will not return an error
669
684
func (r * GatewaysPage [T ]) GetNextPage () (res * GatewaysPage [T ], err error ) {
685
+ if len (r .Gateways ) == 0 {
686
+ return nil , nil
687
+ }
670
688
next := r .Pagination .NextToken
671
689
if len (next ) == 0 {
672
690
return nil , nil
@@ -788,6 +806,9 @@ func (r groupsPageJSON) RawJSON() string {
788
806
// there is no next page, this function will return a 'nil' for the page value, but
789
807
// will not return an error
790
808
func (r * GroupsPage [T ]) GetNextPage () (res * GroupsPage [T ], err error ) {
809
+ if len (r .Groups ) == 0 {
810
+ return nil , nil
811
+ }
791
812
next := r .Pagination .NextToken
792
813
if len (next ) == 0 {
793
814
return nil , nil
@@ -910,6 +931,9 @@ func (r integrationsPageJSON) RawJSON() string {
910
931
// there is no next page, this function will return a 'nil' for the page value, but
911
932
// will not return an error
912
933
func (r * IntegrationsPage [T ]) GetNextPage () (res * IntegrationsPage [T ], err error ) {
934
+ if len (r .Integrations ) == 0 {
935
+ return nil , nil
936
+ }
913
937
next := r .Pagination .NextToken
914
938
if len (next ) == 0 {
915
939
return nil , nil
@@ -1032,6 +1056,9 @@ func (r loginProvidersPageJSON) RawJSON() string {
1032
1056
// there is no next page, this function will return a 'nil' for the page value, but
1033
1057
// will not return an error
1034
1058
func (r * LoginProvidersPage [T ]) GetNextPage () (res * LoginProvidersPage [T ], err error ) {
1059
+ if len (r .LoginProviders ) == 0 {
1060
+ return nil , nil
1061
+ }
1035
1062
next := r .Pagination .NextToken
1036
1063
if len (next ) == 0 {
1037
1064
return nil , nil
@@ -1153,6 +1180,9 @@ func (r membersPageJSON) RawJSON() string {
1153
1180
// there is no next page, this function will return a 'nil' for the page value, but
1154
1181
// will not return an error
1155
1182
func (r * MembersPage [T ]) GetNextPage () (res * MembersPage [T ], err error ) {
1183
+ if len (r .Members ) == 0 {
1184
+ return nil , nil
1185
+ }
1156
1186
next := r .Pagination .NextToken
1157
1187
if len (next ) == 0 {
1158
1188
return nil , nil
@@ -1275,6 +1305,9 @@ func (r personalAccessTokensPageJSON) RawJSON() string {
1275
1305
// there is no next page, this function will return a 'nil' for the page value, but
1276
1306
// will not return an error
1277
1307
func (r * PersonalAccessTokensPage [T ]) GetNextPage () (res * PersonalAccessTokensPage [T ], err error ) {
1308
+ if len (r .PersonalAccessTokens ) == 0 {
1309
+ return nil , nil
1310
+ }
1278
1311
next := r .Pagination .NextToken
1279
1312
if len (next ) == 0 {
1280
1313
return nil , nil
@@ -1396,6 +1429,9 @@ func (r policiesPageJSON) RawJSON() string {
1396
1429
// there is no next page, this function will return a 'nil' for the page value, but
1397
1430
// will not return an error
1398
1431
func (r * PoliciesPage [T ]) GetNextPage () (res * PoliciesPage [T ], err error ) {
1432
+ if len (r .Policies ) == 0 {
1433
+ return nil , nil
1434
+ }
1399
1435
next := r .Pagination .NextToken
1400
1436
if len (next ) == 0 {
1401
1437
return nil , nil
@@ -1517,6 +1553,9 @@ func (r projectsPageJSON) RawJSON() string {
1517
1553
// there is no next page, this function will return a 'nil' for the page value, but
1518
1554
// will not return an error
1519
1555
func (r * ProjectsPage [T ]) GetNextPage () (res * ProjectsPage [T ], err error ) {
1556
+ if len (r .Projects ) == 0 {
1557
+ return nil , nil
1558
+ }
1520
1559
next := r .Pagination .NextToken
1521
1560
if len (next ) == 0 {
1522
1561
return nil , nil
@@ -1638,6 +1677,9 @@ func (r recordsPageJSON) RawJSON() string {
1638
1677
// there is no next page, this function will return a 'nil' for the page value, but
1639
1678
// will not return an error
1640
1679
func (r * RecordsPage [T ]) GetNextPage () (res * RecordsPage [T ], err error ) {
1680
+ if len (r .Records ) == 0 {
1681
+ return nil , nil
1682
+ }
1641
1683
next := r .Pagination .NextToken
1642
1684
if len (next ) == 0 {
1643
1685
return nil , nil
@@ -1759,6 +1801,9 @@ func (r runnersPageJSON) RawJSON() string {
1759
1801
// there is no next page, this function will return a 'nil' for the page value, but
1760
1802
// will not return an error
1761
1803
func (r * RunnersPage [T ]) GetNextPage () (res * RunnersPage [T ], err error ) {
1804
+ if len (r .Runners ) == 0 {
1805
+ return nil , nil
1806
+ }
1762
1807
next := r .Pagination .NextToken
1763
1808
if len (next ) == 0 {
1764
1809
return nil , nil
@@ -1880,6 +1925,9 @@ func (r secretsPageJSON) RawJSON() string {
1880
1925
// there is no next page, this function will return a 'nil' for the page value, but
1881
1926
// will not return an error
1882
1927
func (r * SecretsPage [T ]) GetNextPage () (res * SecretsPage [T ], err error ) {
1928
+ if len (r .Secrets ) == 0 {
1929
+ return nil , nil
1930
+ }
1883
1931
next := r .Pagination .NextToken
1884
1932
if len (next ) == 0 {
1885
1933
return nil , nil
@@ -2001,6 +2049,9 @@ func (r servicesPageJSON) RawJSON() string {
2001
2049
// there is no next page, this function will return a 'nil' for the page value, but
2002
2050
// will not return an error
2003
2051
func (r * ServicesPage [T ]) GetNextPage () (res * ServicesPage [T ], err error ) {
2052
+ if len (r .Services ) == 0 {
2053
+ return nil , nil
2054
+ }
2004
2055
next := r .Pagination .NextToken
2005
2056
if len (next ) == 0 {
2006
2057
return nil , nil
@@ -2123,6 +2174,9 @@ func (r ssoConfigurationsPageJSON) RawJSON() string {
2123
2174
// there is no next page, this function will return a 'nil' for the page value, but
2124
2175
// will not return an error
2125
2176
func (r * SSOConfigurationsPage [T ]) GetNextPage () (res * SSOConfigurationsPage [T ], err error ) {
2177
+ if len (r .SSOConfigurations ) == 0 {
2178
+ return nil , nil
2179
+ }
2126
2180
next := r .Pagination .NextToken
2127
2181
if len (next ) == 0 {
2128
2182
return nil , nil
@@ -2245,6 +2299,9 @@ func (r taskExecutionsPageJSON) RawJSON() string {
2245
2299
// there is no next page, this function will return a 'nil' for the page value, but
2246
2300
// will not return an error
2247
2301
func (r * TaskExecutionsPage [T ]) GetNextPage () (res * TaskExecutionsPage [T ], err error ) {
2302
+ if len (r .TaskExecutions ) == 0 {
2303
+ return nil , nil
2304
+ }
2248
2305
next := r .Pagination .NextToken
2249
2306
if len (next ) == 0 {
2250
2307
return nil , nil
@@ -2366,6 +2423,9 @@ func (r tasksPageJSON) RawJSON() string {
2366
2423
// there is no next page, this function will return a 'nil' for the page value, but
2367
2424
// will not return an error
2368
2425
func (r * TasksPage [T ]) GetNextPage () (res * TasksPage [T ], err error ) {
2426
+ if len (r .Tasks ) == 0 {
2427
+ return nil , nil
2428
+ }
2369
2429
next := r .Pagination .NextToken
2370
2430
if len (next ) == 0 {
2371
2431
return nil , nil
@@ -2487,6 +2547,9 @@ func (r tokensPageJSON) RawJSON() string {
2487
2547
// there is no next page, this function will return a 'nil' for the page value, but
2488
2548
// will not return an error
2489
2549
func (r * TokensPage [T ]) GetNextPage () (res * TokensPage [T ], err error ) {
2550
+ if len (r .Tokens ) == 0 {
2551
+ return nil , nil
2552
+ }
2490
2553
next := r .Pagination .NextToken
2491
2554
if len (next ) == 0 {
2492
2555
return nil , nil
0 commit comments