Skip to main content

Module clients.h2o_engine.h2o_engine

Functions

build_api_engine_name

def build_api_engine_name(workspace_id: str, engine_id: str) ‑> str

Function builds full OpenAPI resource name of an engine.

Args
workspace_id : str
ID of the workspace.
engine_id : str
The ID of an engine.
Returns
str
Full resource name of an engine.

from_h2o_engine_api_object

def from_h2o_engine_api_object(client_info: h2o_engine_manager.clients.h2o_engine.client_info.ClientInfo, api_engine: h2o_engine_manager.gen.model.v1_h2_o_engine.V1H2OEngine) ‑> H2OEngine

Classes

H2OClusterConnectionConfig

class H2OClusterConnectionConfig(*args, **kwargs)

Represents H2O cluster connection configuration object.

Class variables

var context_path : str
var https : bool
var ip : str
var port : int
var verify_ssl_certificates : bool

Ancestors

  • builtins.dict
  • typing.Generic

H2OEngine

class H2OEngine(version: str, node_count: int, cpu: int, gpu: int, memory_bytes: str, annotations: Dict[str, str], max_idle_duration: str, max_running_duration: str, display_name: str, name: str = '', state: h2o_engine_manager.clients.h2o_engine.state.H2OEngineState = H2OEngineState.STATE_UNSPECIFIED, creator: str = '', creator_display_name: str = '', create_time: datetime.datetime = datetime.datetime(1970, 1, 1, 0, 0, tzinfo=datetime.timezone.utc), update_time: Optional[datetime.datetime] = None, delete_time: Optional[datetime.datetime] = None, login_url: str = '', api_url: str = '', reconciling: bool = False, uid: str = '', client_info: Optional[h2o_engine_manager.clients.h2o_engine.client_info.ClientInfo] = None, current_running_duration: Optional[str] = None, current_idle_duration: Optional[str] = None)

Methods

delete

def delete(self, allow_missing: bool = False, validate_only: bool = False)

Initiates deletion of the engine from its workspace. Once the engine is deleted, any further action with the engine will result in an error.

Args
allow_missing : bool, optional
When set to True and the H2OEngine

is not found, then the request will succeed but no changes are made. validate_only(bool, optional): When set to True, request is validated but no changes are made.

download_logs

def download_logs(self) ‑> str

Download H2O logs.

Returns

H2O logs

get_connection_config

def get_connection_config(self) ‑> H2OClusterConnectionConfig

Returns configuration used for h2o.connect.

terminate

def terminate(self)

Terminates the engine and updates its data from the server response.

to_api_object

def to_api_object(self) ‑> h2o_engine_manager.gen.model.v1_h2_o_engine.V1H2OEngine

wait

def wait(self, timeout_seconds: Optional[float] = None)

Waits for the engine to reach a final (stable) state.

Args
timeout_seconds : float, optional
Time limit in seconds for how

long to wait. If no timeout is specified, function will be blocking until the waiting is finished. Potentially forever in case of an unexpected error. Defaults to None.

wait_async

async def wait_async(self, timeout_seconds: Optional[float] = None)

Waits for an engine to reach a final (stable) state.

Args
timeout_seconds : float, optional
Time limit in seconds for how

long to wait. If no timeout is specified, function will be blocking until the waiting is finished. Potentially forever in case of an unexpected error. Defaults to None.


Feedback