@@ -539,7 +539,7 @@ protected ComputeApi(IServiceType serviceType, IAuthenticationProvider authentic
539539 /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
540540 public virtual Task StartServerAsync ( string serverId , CancellationToken cancellationToken = default ( CancellationToken ) )
541541 {
542- var request = new StartServerRequest ( ) ;
542+ var request = new Dictionary < string , object > { [ "os-start" ] = "" } ;
543543 return BuildServerActionRequest ( serverId , request , cancellationToken ) . SendAsync ( ) ;
544544 }
545545
@@ -550,7 +550,7 @@ protected ComputeApi(IServiceType serviceType, IAuthenticationProvider authentic
550550 /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
551551 public virtual Task StopServerAsync ( string serverId , CancellationToken cancellationToken = default ( CancellationToken ) )
552552 {
553- var request = new StopServerRequest ( ) ;
553+ var request = new Dictionary < string , object > { [ "os-stop" ] = "" } ;
554554 return BuildServerActionRequest ( serverId , request , cancellationToken ) . SendAsync ( ) ;
555555 }
556556
@@ -561,7 +561,7 @@ protected ComputeApi(IServiceType serviceType, IAuthenticationProvider authentic
561561 /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
562562 public virtual Task SuspendServerAsync ( string serverId , CancellationToken cancellationToken = default ( CancellationToken ) )
563563 {
564- var request = new SuspendServerRequest ( ) ;
564+ var request = new Dictionary < string , object > { [ "suspend" ] = "" } ;
565565 return BuildServerActionRequest ( serverId , request , cancellationToken ) . SendAsync ( ) ;
566566 }
567567
@@ -572,7 +572,7 @@ protected ComputeApi(IServiceType serviceType, IAuthenticationProvider authentic
572572 /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
573573 public virtual Task ResumeServerAsync ( string serverId , CancellationToken cancellationToken = default ( CancellationToken ) )
574574 {
575- var request = new ResumeServerRequest ( ) ;
575+ var request = new Dictionary < string , object > { [ "resume" ] = "" } ;
576576 return BuildServerActionRequest ( serverId , request , cancellationToken ) . SendAsync ( ) ;
577577 }
578578
0 commit comments