Module clients.internal_h2o_version.client
Classes
InternalH2OVersionClient
class InternalH2OVersionClient(connection_config: h2o_engine_manager.clients.connection_config.ConnectionConfig, verify_ssl: bool = True, ssl_ca_cert: Optional[str] = None)
InternalH2OVersionClient manages InternalH2OVersions.
Initializes InternalH2OVersionClient.
Args
connection_config
:ConnectionConfig
- AIEM connection configuration object.
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
apply_internal_h2o_versions
def apply_internal_h2o_versions(self, version_configs: List[h2o_engine_manager.clients.internal_h2o_version.version_config.InternalH2OVersionConfig]) ‑> List[h2o_engine_manager.clients.internal_h2o_version.version.InternalH2OVersion]
Same behaviour as apply_internal_dai_versions. See that for more info.
Args
version_configs
- configuration of InternalH2OVersions that should be applied
Returns: applied InternalH2OVersions.
assign_aliases
def assign_aliases(self, internal_h2o_version_id: str, aliases: List[str]) ‑> List[h2o_engine_manager.clients.internal_h2o_version.version.InternalH2OVersion]
Assign new set of aliases to InternalH2OVersion. For more detailed info see InternalDAIVersion assign_aliases description, it uses the same logic.
Args
internal_h2o_version_id
- ID of the InternalH2OVersion
aliases
- new aliases to assign to the InternalH2OVersion
Returns
all InternalH2OVersions after applying the new aliases
create_version
def create_version(self, internal_h2o_version_id: str, image: str, image_pull_policy: h2o_engine_manager.clients.base.image_pull_policy.ImagePullPolicy = ImagePullPolicy.IMAGE_PULL_POLICY_UNSPECIFIED, image_pull_secrets: List[str] = [], gpu_resource_name: str = '', annotations: Dict[str, str] = , deprecated: bool = False) ‑> h2o_engine_manager.clients.internal_h2o_version.version.InternalH2OVersion
Create InternalH2OVersion.
Args
internal_h2o_version_id
- version identifier. Must be in semver format. More than three segments are supported. For example "3.42.0.3".
image
- Name of the Docker image when using this version.
image_pull_policy
- Image pull policy applied when using this version.
image_pull_secrets
- List of references to k8s secrets that can be used for pulling an image of this version from a private container image registry or repository.
gpu_resource_name
- K8s GPU resource name. For example: "nvidia.com/gpu" or "amd.com/gpu".
annotations
- Additional arbitrary metadata associated with this version.
deprecated
- Indicates whether this version is deprecated.
Returns
Created InternalH2OVersion.
delete_all_internal_h2o_versions
def delete_all_internal_h2o_versions(self) ‑> None
Help function for deleting all InternalH2OVersions.
delete_version
def delete_version(self, internal_h2o_version_id: str) ‑> None
get_version
list_all_versions
def list_all_versions(self) ‑> List[h2o_engine_manager.clients.internal_h2o_version.version.InternalH2OVersion]
list_versions
def list_versions(self, page_size: int = 0, page_token: str = '') ‑> h2o_engine_manager.clients.internal_h2o_version.page.InternalH2OVersionsPage
List InternalH2OVersions.
Args
page_size
- Maximum number of InternalH2OVersions to return in a response. If unspecified (or set to 0), at most 50 InternalH2OVersions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
page_token
- Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the InternalH2OVersionsPage.
Returns
Page of InternalH2OVersions
update_version
def update_version(self, internal_h2o_version: h2o_engine_manager.clients.internal_h2o_version.version.InternalH2OVersion, update_mask: str = '*') ‑> h2o_engine_manager.clients.internal_h2o_version.version.InternalH2OVersion
Feedback
- Submit and view feedback for this page
- Send feedback about AI Engine Manager to cloud-feedback@h2o.ai