diff --git a/CLAUDE.md b/CLAUDE.md index bbabe2d..edb45aa 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,7 +33,7 @@ verda/ # main SDK source helpers.py # utility functions http_client/ # HTTP wrapper with auth token refresh authentication/ # OAuth2 token management - instances/ # instance lifecycle (create, delete, hibernate, etc.) + instances/ # instance lifecycle (create, delete, etc.) volumes/ # storage volume management containers/ # serverless container deployments job_deployments/ # serverless batch jobs diff --git a/docs/source/examples/instance_actions.rst b/docs/source/examples/instance_actions.rst index a452f42..85eea1f 100644 --- a/docs/source/examples/instance_actions.rst +++ b/docs/source/examples/instance_actions.rst @@ -46,14 +46,3 @@ Instance Actions verda.instances.action(instance.id, verda.actions.SHUTDOWN) except APIException as exception: print(exception) # no exception this time - - # Wait until instance is offline (check every 30sec), only then hibernate - while(instance.status != verda.instance_status.OFFLINE): - time.sleep(30) - instance = verda.instances.get_by_id(instance.id) - - # Hibernate the instance - try: - verda.instances.action(instance.id, verda.actions.HIBERNATE) - except APIException as exception: - print(exception) diff --git a/examples/instance_actions.py b/examples/instance_actions.py index d386b0d..35a5edb 100644 --- a/examples/instance_actions.py +++ b/examples/instance_actions.py @@ -58,14 +58,3 @@ verda.instances.action(instance.id, Actions.SHUTDOWN) except APIException as exception: print(exception) # no exception this time - -# Wait until instance is offline (check every 30sec), only then hibernate -while instance.status != InstanceStatus.OFFLINE: - time.sleep(30) - instance = verda.instances.get_by_id(instance.id) - -# Hibernate the instance -try: - verda.instances.action(instance.id, Actions.HIBERNATE) -except APIException as exception: - print(exception) diff --git a/verda/_verda.py b/verda/_verda.py index 6ff7951..6e5e985 100644 --- a/verda/_verda.py +++ b/verda/_verda.py @@ -78,7 +78,7 @@ def __init__( """Instance type service""" self.instances: InstancesService = InstancesService(self._http_client) - """Instances service. Deploy, delete, hibernate (etc) instances""" + """Instances service. Deploy, delete (etc) instances""" self.ssh_keys: SSHKeysService = SSHKeysService(self._http_client) """SSH keys service""" diff --git a/verda/constants.py b/verda/constants.py index 95a45d5..e1d8367 100644 --- a/verda/constants.py +++ b/verda/constants.py @@ -23,7 +23,6 @@ class Actions: START = 'start' SHUTDOWN = 'shutdown' DELETE = 'delete' - HIBERNATE = 'hibernate' RESTORE = 'restore' def __init__(self): @@ -51,8 +50,6 @@ class InstanceStatus: RUNNING = 'running' PROVISIONING = 'provisioning' OFFLINE = 'offline' - STARTING_HIBERNATION = 'starting_hibernation' - HIBERNATING = 'hibernating' RESTORING = 'restoring' ERROR = 'error'