@@ -407,26 +407,6 @@ Mono<Response<BinaryData>> listStringsNext(@PathParam(value = "nextLink", encode
407
407
Response <BinaryData > listStringsNextSync (@ PathParam (value = "nextLink" , encoded = true ) String nextLink ,
408
408
@ HostParam ("endpoint" ) String endpoint , @ HeaderParam ("Accept" ) String accept , RequestOptions requestOptions ,
409
409
Context context );
410
-
411
- @ Get ("{nextLink}" )
412
- @ ExpectedResponses ({ 200 })
413
- @ UnexpectedResponseExceptionType (value = ClientAuthenticationException .class , code = { 401 })
414
- @ UnexpectedResponseExceptionType (value = ResourceNotFoundException .class , code = { 404 })
415
- @ UnexpectedResponseExceptionType (value = ResourceModifiedException .class , code = { 409 })
416
- @ UnexpectedResponseExceptionType (HttpResponseException .class )
417
- Mono <Response <BinaryData >> listIntegersNext (@ PathParam (value = "nextLink" , encoded = true ) String nextLink ,
418
- @ HostParam ("endpoint" ) String endpoint , @ HeaderParam ("Accept" ) String accept , RequestOptions requestOptions ,
419
- Context context );
420
-
421
- @ Get ("{nextLink}" )
422
- @ ExpectedResponses ({ 200 })
423
- @ UnexpectedResponseExceptionType (value = ClientAuthenticationException .class , code = { 401 })
424
- @ UnexpectedResponseExceptionType (value = ResourceNotFoundException .class , code = { 404 })
425
- @ UnexpectedResponseExceptionType (value = ResourceModifiedException .class , code = { 409 })
426
- @ UnexpectedResponseExceptionType (HttpResponseException .class )
427
- Response <BinaryData > listIntegersNextSync (@ PathParam (value = "nextLink" , encoded = true ) String nextLink ,
428
- @ HostParam ("endpoint" ) String endpoint , @ HeaderParam ("Accept" ) String accept , RequestOptions requestOptions ,
429
- Context context );
430
410
}
431
411
432
412
/**
@@ -1290,7 +1270,7 @@ private Mono<PagedResponse<BinaryData>> listIntegersSinglePageAsync(RequestOptio
1290
1270
return FluxUtil
1291
1271
.withContext (context -> service .listIntegers (this .getEndpoint (), accept , requestOptions , context ))
1292
1272
.map (res -> new PagedResponseBase <>(res .getRequest (), res .getStatusCode (), res .getHeaders (),
1293
- getValues (res .getValue (), "value" ), getNextLink ( res . getValue (), "nextLink" ) , null ));
1273
+ getValues (res .getValue (), "value" ), null , null ));
1294
1274
}
1295
1275
1296
1276
/**
@@ -1312,11 +1292,7 @@ private Mono<PagedResponse<BinaryData>> listIntegersSinglePageAsync(RequestOptio
1312
1292
*/
1313
1293
@ ServiceMethod (returns = ReturnType .COLLECTION )
1314
1294
public PagedFlux <BinaryData > listIntegersAsync (RequestOptions requestOptions ) {
1315
- RequestOptions requestOptionsForNextPage = new RequestOptions ();
1316
- requestOptionsForNextPage .setContext (
1317
- requestOptions != null && requestOptions .getContext () != null ? requestOptions .getContext () : Context .NONE );
1318
- return new PagedFlux <>(() -> listIntegersSinglePageAsync (requestOptions ),
1319
- nextLink -> listIntegersNextSinglePageAsync (nextLink , requestOptionsForNextPage ));
1295
+ return new PagedFlux <>(() -> listIntegersSinglePageAsync (requestOptions ));
1320
1296
}
1321
1297
1322
1298
/**
@@ -1341,7 +1317,7 @@ private PagedResponse<BinaryData> listIntegersSinglePage(RequestOptions requestO
1341
1317
final String accept = "application/json" ;
1342
1318
Response <BinaryData > res = service .listIntegersSync (this .getEndpoint (), accept , requestOptions , Context .NONE );
1343
1319
return new PagedResponseBase <>(res .getRequest (), res .getStatusCode (), res .getHeaders (),
1344
- getValues (res .getValue (), "value" ), getNextLink ( res . getValue (), "nextLink" ) , null );
1320
+ getValues (res .getValue (), "value" ), null , null );
1345
1321
}
1346
1322
1347
1323
/**
@@ -1363,11 +1339,7 @@ private PagedResponse<BinaryData> listIntegersSinglePage(RequestOptions requestO
1363
1339
*/
1364
1340
@ ServiceMethod (returns = ReturnType .COLLECTION )
1365
1341
public PagedIterable <BinaryData > listIntegers (RequestOptions requestOptions ) {
1366
- RequestOptions requestOptionsForNextPage = new RequestOptions ();
1367
- requestOptionsForNextPage .setContext (
1368
- requestOptions != null && requestOptions .getContext () != null ? requestOptions .getContext () : Context .NONE );
1369
- return new PagedIterable <>(() -> listIntegersSinglePage (requestOptions ),
1370
- nextLink -> listIntegersNextSinglePage (nextLink , requestOptionsForNextPage ));
1342
+ return new PagedIterable <>(() -> listIntegersSinglePage (requestOptions ));
1371
1343
}
1372
1344
1373
1345
/**
@@ -1540,62 +1512,6 @@ private PagedResponse<BinaryData> listStringsNextSinglePage(String nextLink, Req
1540
1512
getValues (res .getValue (), "value" ), getNextLink (res .getValue (), "nextLink" ), null );
1541
1513
}
1542
1514
1543
- /**
1544
- * Get the next page of items.
1545
- * <p><strong>Response Body Schema</strong></p>
1546
- *
1547
- * <pre>
1548
- * {@code
1549
- * int
1550
- * }
1551
- * </pre>
1552
- *
1553
- * @param nextLink The URL to get the next list of items.
1554
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
1555
- * @throws HttpResponseException thrown if the request is rejected by server.
1556
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
1557
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
1558
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1559
- * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
1560
- */
1561
- @ ServiceMethod (returns = ReturnType .SINGLE )
1562
- private Mono <PagedResponse <BinaryData >> listIntegersNextSinglePageAsync (String nextLink ,
1563
- RequestOptions requestOptions ) {
1564
- final String accept = "application/json" ;
1565
- return FluxUtil
1566
- .withContext (
1567
- context -> service .listIntegersNext (nextLink , this .getEndpoint (), accept , requestOptions , context ))
1568
- .map (res -> new PagedResponseBase <>(res .getRequest (), res .getStatusCode (), res .getHeaders (),
1569
- getValues (res .getValue (), "value" ), getNextLink (res .getValue (), "nextLink" ), null ));
1570
- }
1571
-
1572
- /**
1573
- * Get the next page of items.
1574
- * <p><strong>Response Body Schema</strong></p>
1575
- *
1576
- * <pre>
1577
- * {@code
1578
- * int
1579
- * }
1580
- * </pre>
1581
- *
1582
- * @param nextLink The URL to get the next list of items.
1583
- * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
1584
- * @throws HttpResponseException thrown if the request is rejected by server.
1585
- * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
1586
- * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
1587
- * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1588
- * @return the response body along with {@link PagedResponse}.
1589
- */
1590
- @ ServiceMethod (returns = ReturnType .SINGLE )
1591
- private PagedResponse <BinaryData > listIntegersNextSinglePage (String nextLink , RequestOptions requestOptions ) {
1592
- final String accept = "application/json" ;
1593
- Response <BinaryData > res
1594
- = service .listIntegersNextSync (nextLink , this .getEndpoint (), accept , requestOptions , Context .NONE );
1595
- return new PagedResponseBase <>(res .getRequest (), res .getStatusCode (), res .getHeaders (),
1596
- getValues (res .getValue (), "value" ), getNextLink (res .getValue (), "nextLink" ), null );
1597
- }
1598
-
1599
1515
private List <BinaryData > getValues (BinaryData binaryData , String path ) {
1600
1516
try {
1601
1517
Map <?, ?> obj = binaryData .toObject (Map .class );
0 commit comments