1717import com .azure .core .http .rest .Response ;
1818import com .azure .core .util .BinaryData ;
1919import com .azure .core .util .polling .SyncPoller ;
20+ import com .azure .developer .devcenter .implementation .DevBoxesImpl ;
2021import java .time .OffsetDateTime ;
2122
2223/** Initializes a new instance of the synchronous DevCenterClient type. */
2324@ ServiceClient (builder = DevBoxesClientBuilder .class )
2425public final class DevBoxesClient {
25- @ Generated private final DevBoxesAsyncClient client ;
26+ @ Generated private final DevBoxesImpl serviceClient ;
2627
2728 /**
2829 * Initializes an instance of DevBoxesClient class.
2930 *
30- * @param client the async client.
31+ * @param serviceClient the service client implementation .
3132 */
3233 @ Generated
33- DevBoxesClient (DevBoxesAsyncClient client ) {
34- this .client = client ;
34+ DevBoxesClient (DevBoxesImpl serviceClient ) {
35+ this .serviceClient = serviceClient ;
3536 }
3637
3738 /**
@@ -88,7 +89,7 @@ public final class DevBoxesClient {
8889 @ Generated
8990 @ ServiceMethod (returns = ReturnType .COLLECTION )
9091 public PagedIterable <BinaryData > listPools (String projectName , RequestOptions requestOptions ) {
91- return new PagedIterable <>( this .client .listPools (projectName , requestOptions ) );
92+ return this .serviceClient .listPools (projectName , requestOptions );
9293 }
9394
9495 /**
@@ -136,7 +137,7 @@ public PagedIterable<BinaryData> listPools(String projectName, RequestOptions re
136137 @ ServiceMethod (returns = ReturnType .SINGLE )
137138 public Response <BinaryData > getPoolWithResponse (
138139 String poolName , String projectName , RequestOptions requestOptions ) {
139- return this .client .getPoolWithResponse (poolName , projectName , requestOptions ). block ( );
140+ return this .serviceClient .getPoolWithResponse (poolName , projectName , requestOptions );
140141 }
141142
142143 /**
@@ -178,7 +179,7 @@ public Response<BinaryData> getPoolWithResponse(
178179 @ ServiceMethod (returns = ReturnType .COLLECTION )
179180 public PagedIterable <BinaryData > listSchedulesByPool (
180181 String projectName , String poolName , RequestOptions requestOptions ) {
181- return new PagedIterable <>( this .client .listSchedulesByPool (projectName , poolName , requestOptions ) );
182+ return this .serviceClient .listSchedulesByPool (projectName , poolName , requestOptions );
182183 }
183184
184185 /**
@@ -210,7 +211,7 @@ public PagedIterable<BinaryData> listSchedulesByPool(
210211 @ ServiceMethod (returns = ReturnType .SINGLE )
211212 public Response <BinaryData > getScheduleByPoolWithResponse (
212213 String projectName , String poolName , String scheduleName , RequestOptions requestOptions ) {
213- return this .client .getScheduleByPoolWithResponse (projectName , poolName , scheduleName , requestOptions ). block ( );
214+ return this .serviceClient .getScheduleByPoolWithResponse (projectName , poolName , scheduleName , requestOptions );
214215 }
215216
216217 /**
@@ -282,7 +283,7 @@ public Response<BinaryData> getScheduleByPoolWithResponse(
282283 @ ServiceMethod (returns = ReturnType .COLLECTION )
283284 public PagedIterable <BinaryData > listDevBoxesByUser (
284285 String projectName , String userId , RequestOptions requestOptions ) {
285- return new PagedIterable <>( this .client .listDevBoxesByUser (projectName , userId , requestOptions ) );
286+ return this .serviceClient .listDevBoxesByUser (projectName , userId , requestOptions );
286287 }
287288
288289 /**
@@ -344,7 +345,7 @@ public PagedIterable<BinaryData> listDevBoxesByUser(
344345 @ ServiceMethod (returns = ReturnType .SINGLE )
345346 public Response <BinaryData > getDevBoxByUserWithResponse (
346347 String projectName , String userId , String devBoxName , RequestOptions requestOptions ) {
347- return this .client .getDevBoxByUserWithResponse (projectName , userId , devBoxName , requestOptions ). block ( );
348+ return this .serviceClient .getDevBoxByUserWithResponse (projectName , userId , devBoxName , requestOptions );
348349 }
349350
350351 /**
@@ -448,7 +449,7 @@ public Response<BinaryData> getDevBoxByUserWithResponse(
448449 @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
449450 public SyncPoller <BinaryData , BinaryData > beginCreateDevBox (
450451 String projectName , String userId , String devBoxName , BinaryData body , RequestOptions requestOptions ) {
451- return this .client .beginCreateDevBox (projectName , userId , devBoxName , body , requestOptions ). getSyncPoller ( );
452+ return this .serviceClient .beginCreateDevBox (projectName , userId , devBoxName , body , requestOptions );
452453 }
453454
454455 /**
@@ -469,7 +470,7 @@ public SyncPoller<BinaryData, BinaryData> beginCreateDevBox(
469470 @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
470471 public SyncPoller <BinaryData , Void > beginDeleteDevBox (
471472 String projectName , String userId , String devBoxName , RequestOptions requestOptions ) {
472- return this .client .beginDeleteDevBox (projectName , userId , devBoxName , requestOptions ). getSyncPoller ( );
473+ return this .serviceClient .beginDeleteDevBox (projectName , userId , devBoxName , requestOptions );
473474 }
474475
475476 /**
@@ -490,7 +491,7 @@ public SyncPoller<BinaryData, Void> beginDeleteDevBox(
490491 @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
491492 public SyncPoller <BinaryData , BinaryData > beginStartDevBox (
492493 String projectName , String userId , String devBoxName , RequestOptions requestOptions ) {
493- return this .client .beginStartDevBox (projectName , userId , devBoxName , requestOptions ). getSyncPoller ( );
494+ return this .serviceClient .beginStartDevBox (projectName , userId , devBoxName , requestOptions );
494495 }
495496
496497 /**
@@ -521,7 +522,7 @@ public SyncPoller<BinaryData, BinaryData> beginStartDevBox(
521522 @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
522523 public SyncPoller <BinaryData , BinaryData > beginStopDevBox (
523524 String projectName , String userId , String devBoxName , RequestOptions requestOptions ) {
524- return this .client .beginStopDevBox (projectName , userId , devBoxName , requestOptions ). getSyncPoller ( );
525+ return this .serviceClient .beginStopDevBox (projectName , userId , devBoxName , requestOptions );
525526 }
526527
527528 /**
@@ -551,7 +552,7 @@ public SyncPoller<BinaryData, BinaryData> beginStopDevBox(
551552 @ ServiceMethod (returns = ReturnType .SINGLE )
552553 public Response <BinaryData > getRemoteConnectionWithResponse (
553554 String projectName , String userId , String devBoxName , RequestOptions requestOptions ) {
554- return this .client .getRemoteConnectionWithResponse (projectName , userId , devBoxName , requestOptions ). block ( );
555+ return this .serviceClient .getRemoteConnectionWithResponse (projectName , userId , devBoxName , requestOptions );
555556 }
556557
557558 /**
@@ -585,7 +586,7 @@ public Response<BinaryData> getRemoteConnectionWithResponse(
585586 @ ServiceMethod (returns = ReturnType .COLLECTION )
586587 public PagedIterable <BinaryData > listUpcomingActions (
587588 String projectName , String userId , String devBoxName , RequestOptions requestOptions ) {
588- return new PagedIterable <>( this .client .listUpcomingActions (projectName , userId , devBoxName , requestOptions ) );
589+ return this .serviceClient .listUpcomingActions (projectName , userId , devBoxName , requestOptions );
589590 }
590591
591592 /**
@@ -624,9 +625,8 @@ public Response<BinaryData> getUpcomingActionWithResponse(
624625 String devBoxName ,
625626 String upcomingActionId ,
626627 RequestOptions requestOptions ) {
627- return this .client
628- .getUpcomingActionWithResponse (projectName , userId , devBoxName , upcomingActionId , requestOptions )
629- .block ();
628+ return this .serviceClient .getUpcomingActionWithResponse (
629+ projectName , userId , devBoxName , upcomingActionId , requestOptions );
630630 }
631631
632632 /**
@@ -652,9 +652,8 @@ public Response<Void> skipUpcomingActionWithResponse(
652652 String devBoxName ,
653653 String upcomingActionId ,
654654 RequestOptions requestOptions ) {
655- return this .client
656- .skipUpcomingActionWithResponse (projectName , userId , devBoxName , upcomingActionId , requestOptions )
657- .block ();
655+ return this .serviceClient .skipUpcomingActionWithResponse (
656+ projectName , userId , devBoxName , upcomingActionId , requestOptions );
658657 }
659658
660659 /**
@@ -695,9 +694,7 @@ public Response<BinaryData> delayUpcomingActionWithResponse(
695694 String upcomingActionId ,
696695 OffsetDateTime delayUntil ,
697696 RequestOptions requestOptions ) {
698- return this .client
699- .delayUpcomingActionWithResponse (
700- projectName , userId , devBoxName , upcomingActionId , delayUntil , requestOptions )
701- .block ();
697+ return this .serviceClient .delayUpcomingActionWithResponse (
698+ projectName , userId , devBoxName , upcomingActionId , delayUntil , requestOptions );
702699 }
703700}
0 commit comments