@@ -1400,41 +1400,13 @@ def connect(self, **kwargs: Any) -> connection.Connection:
14001400 kwargs ['host' ] = self .endpoint
14011401 return connection .connect (** kwargs )
14021402
1403- def terminate (
1404- self ,
1405- wait_on_terminated : bool = False ,
1406- wait_interval : int = 10 ,
1407- wait_timeout : int = 600 ,
1408- ) -> None :
1409- """
1410- Terminate the starter workspace.
1411-
1412- Parameters
1413- ----------
1414- wait_on_terminated : bool, optional
1415- Wait for the workspace to go into 'Terminated' mode before returning
1416- wait_interval : int, optional
1417- Number of seconds between each server check
1418- wait_timeout : int, optional
1419- Total number of seconds to check server before giving up
1420-
1421- Raises
1422- ------
1423- ManagementError
1424- If timeout is reached
1425-
1426- """
1403+ def terminate (self ) -> None :
1404+ """Terminate the starter workspace."""
14271405 if self ._manager is None :
14281406 raise ManagementError (
14291407 msg = 'No workspace manager is associated with this object.' ,
14301408 )
14311409 self ._manager ._delete (f'sharedtier/virtualWorkspaces/{ self .id } ' )
1432- if wait_on_terminated :
1433- self ._manager ._wait_on_state (
1434- self ._manager .get_starter_workspace (self .id ),
1435- 'Terminated' , interval = wait_interval , timeout = wait_timeout ,
1436- )
1437- self .refresh ()
14381410
14391411 def refresh (self ) -> StarterWorkspace :
14401412 """Update the object to the current state."""
0 commit comments