Skip to main content

Module clients.ide_engine.engine

Functions​

ide_engine_from_api_object ​

def ide_engine_from_api_object(api_object: h2o_engine_manager.gen.model.v1_ide_engine.V1IDEEngine) ‑> IDEEngine

ide_engine_to_api_object ​

def ide_engine_to_api_object(ide_engine: IDEEngine) ‑> h2o_engine_manager.gen.model.v1_ide_engine.V1IDEEngine

ide_engine_to_resource ​

def ide_engine_to_resource(ide_engine: IDEEngine) ‑> h2o_engine_manager.gen.model.ide_engine_resource.IDEEngineResource

Classes​

IDEEngine​

class IDEEngine(profile: str, ide_engine_image: str, name: str = '', display_name: str = '', cpu: Optional[int] = None, gpu: Optional[int] = None, memory_bytes: Optional[str] = None, storage_bytes: Optional[str] = None, max_idle_duration: Optional[str] = None, max_running_duration: Optional[str] = None, state: h2o_engine_manager.clients.ide_engine.state.IDEEngineState = IDEEngineState.STATE_UNSPECIFIED, reconciling: bool = False, uid: str = '', ide_engine_image_info: Optional[h2o_engine_manager.clients.ide_engine.ide_engine_image_info.IDEEngineImageInfo] = None, profile_info: Optional[h2o_engine_manager.clients.ide_engine.ide_engine_profile_info.IDEEngineProfileInfo] = None, creator: str = '', updater: str = '', creator_display_name: str = '', updater_display_name: str = '', create_time: Optional[datetime.datetime] = None, update_time: Optional[datetime.datetime] = None, resume_time: Optional[datetime.datetime] = None, delete_time: Optional[datetime.datetime] = None, storage_class_name: str = '', storage_resizing: bool = False, failure_reason: str = '')

Engine that runs a browser-based IDE (code-server).

Args​
profile
The resource name of the IDEEngineProfile that is assigned to this IDEEngine. Format is workspaces/*/ideEngineProfiles/*.
ide_engine_image
The resource name of the IDEEngineImage used to create the IDEEngine. Format is workspaces/*/ideEngineImages/*.
name
The resource name of the IDEEngine. Format: workspaces/*/ideEngines/*.
display_name
Human-readable name.
cpu
The amount of CPU units requested by this IDEEngine.
gpu
The amount of GPU units requested by this IDEEngine.
memory_bytes
The amount of memory in bytes requested by this IDEEngine. For example "1024", "8G", "16Gi".
storage_bytes
The amount of storage requested by this IDEEngine. For example "1024", "8G", "16Gi".
max_idle_duration
Maximum time the IDEEngine can be idle. When exceeded, the IDEEngine will pause.
max_running_duration
Maximum time the IDEEngine can be running. When exceeded, the IDEEngine will pause.
state
The current state of the IDEEngine.
reconciling
Indicates whether changes to the resource are in progress.
uid
Globally unique identifier of the resource.
ide_engine_image_info
IDEEngineImage data used during the last IDEEngine startup from the assigned ide_engine_image.
profile_info
IDEEngineProfile data used during the last IDEEngine startup from the assigned profile.
creator
Name of entity that created the IDEEngine.
updater
Name of entity that last updated the IDEEngine.
creator_display_name
Human-readable name of entity that created the IDEEngine.
updater_display_name
Human-readable name of entity that last updated the IDEEngine.
create_time
Time when the IDEEngine was created.
update_time
Time when the IDEEngine was last updated.
resume_time
Time when the IDEEngine was last resumed. Set on creation and on each resume.
delete_time
Time when the IDEEngine was deleted.
storage_class_name
Name of the storage class used by IDEEngine.
storage_resizing
Indicates whether the storage is being resized.
failure_reason
Reason why the IDEEngine has failed, as a CamelCase token such as OOMKilled. Known values, which are not exhaustive: OOMKilled, ProcessFailed, PVCAccessFailure, Unknown.

Feedback