Skip to main content

Module clients.h2o_setup.client

Classes

H2OSetupClient

class H2OSetupClient(connection_config: h2o_engine_manager.clients.connection_config.ConnectionConfig, default_h2o_setup_client: h2o_engine_manager.clients.default_h2o_setup.client.DefaultH2OSetupClient, verify_ssl: bool = True, ssl_ca_cert: Optional[str] = None)

H2OSetupClient manages H2OSetups.

Initializes H2OSetupClient.

Args
connection_config : ConnectionConfig
AIEM connection configuration object.
default_h2o_setup_client
DefaultH2OSetupClient.
verify_ssl
Set to False to disable SSL certificate verification.
ssl_ca_cert
Path to a CA cert bundle with certificates of trusted CAs.

Methods

get_default_h2o_setup

def get_default_h2o_setup(self) ‑> h2o_engine_manager.clients.default_h2o_setup.setup.DefaultH2OSetup

Returns DefaultH2OSetup.

Returns
DefaultH2OSetup
global DefaultH2OSetup.

get_h2o_setup

def get_h2o_setup(self, workspace_id: str) ‑> h2o_engine_manager.clients.h2o_setup.setup.H2OSetup

Returns a H2OSetup.

Args
workspace_id : str
The ID of a workspace.
Returns
H2OSetup
H2OSetup associated with a given workspace.

update_default_h2o_setup

def update_default_h2o_setup(self, default_h2o_setup: h2o_engine_manager.clients.default_h2o_setup.setup.DefaultH2OSetup, update_mask: str = '*') ‑> h2o_engine_manager.clients.default_h2o_setup.setup.DefaultH2OSetup

Updates the DefaultH2OSetup.

Args
default_h2o_setup : H2OSetup
The DefaultH2OSetup to be updated.
update_mask : str, optional

Comma separated paths referencing which fields to update. Update mask must be non-empty.

Allowed field paths are: yaml_gpu_tolerations.

Paths are case sensitive (must match exactly). Example - update only cpu constraint: update_mask="cpu_constraint" Example - update only cpu and gpu constraints: update_mask="cpu_constraint,gpu_constraint"

To update all allowed fields, specify exactly one path with value "*", this is a default value.

Returns
DefaultH2OSetup
The updated DefaultH2OSetup.

update_h2o_setup

def update_h2o_setup(self, h2o_setup: h2o_engine_manager.clients.h2o_setup.setup.H2OSetup, update_mask: str = '*') ‑> h2o_engine_manager.clients.h2o_setup.setup.H2OSetup

Updates the H2OSetup.

Args
h2o_setup : H2OSetup
The H2OSetup to be updated.
update_mask : str, optional

Comma separated paths referencing which fields to update. Update mask must be non-empty.

Allowed field paths are: yaml_gpu_tolerations.

Paths are case sensitive (must match exactly). Example - update only cpu constraint: update_mask="cpu_constraint" Example - update only cpu and gpu constraints: update_mask="cpu_constraint,gpu_constraint"

To update all allowed fields, specify exactly one path with value "*", this is a default value.

Returns
H2OSetup
An updated H2OSetup.

Feedback