@@ -407,26 +407,6 @@ Mono<Response<BinaryData>> listStringsNext(@PathParam(value = "nextLink", encode
407407 Response <BinaryData > listStringsNextSync (@ PathParam (value = "nextLink" , encoded = true ) String nextLink ,
408408 @ HostParam ("endpoint" ) String endpoint , @ HeaderParam ("Accept" ) String accept , RequestOptions requestOptions ,
409409 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 );
430410 }
431411
432412 /**
@@ -1290,7 +1270,7 @@ private Mono<PagedResponse<BinaryData>> listIntegersSinglePageAsync(RequestOptio
12901270 return FluxUtil
12911271 .withContext (context -> service .listIntegers (this .getEndpoint (), accept , requestOptions , context ))
12921272 .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 ));
12941274 }
12951275
12961276 /**
@@ -1312,11 +1292,7 @@ private Mono<PagedResponse<BinaryData>> listIntegersSinglePageAsync(RequestOptio
13121292 */
13131293 @ ServiceMethod (returns = ReturnType .COLLECTION )
13141294 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 ));
13201296 }
13211297
13221298 /**
@@ -1341,7 +1317,7 @@ private PagedResponse<BinaryData> listIntegersSinglePage(RequestOptions requestO
13411317 final String accept = "application/json" ;
13421318 Response <BinaryData > res = service .listIntegersSync (this .getEndpoint (), accept , requestOptions , Context .NONE );
13431319 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 );
13451321 }
13461322
13471323 /**
@@ -1363,11 +1339,7 @@ private PagedResponse<BinaryData> listIntegersSinglePage(RequestOptions requestO
13631339 */
13641340 @ ServiceMethod (returns = ReturnType .COLLECTION )
13651341 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 ));
13711343 }
13721344
13731345 /**
@@ -1540,62 +1512,6 @@ private PagedResponse<BinaryData> listStringsNextSinglePage(String nextLink, Req
15401512 getValues (res .getValue (), "value" ), getNextLink (res .getValue (), "nextLink" ), null );
15411513 }
15421514
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-
15991515 private List <BinaryData > getValues (BinaryData binaryData , String path ) {
16001516 try {
16011517 Map <?, ?> obj = binaryData .toObject (Map .class );
0 commit comments