Module clients.dai_profile.client
Classes
DAIProfileClient
DAIProfileClient manages DAIProfiles.
Initializes DAIProfileClient. Do not initialize manually, use h2o_engine_manager.login()
instead.
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_dai_profiles
Set all DAIProfiles to a state defined in the dai_profile_configs. DAIProfiles not specified in the dai_profile_configs will be deleted. DAIProfiles specified in the dai_profile_configs will be recreated with the new values. Order of DAIProfiles will be exactly as provided in the dai_profile_configs.
Args
dai_profile_configs
- configuration of DAIProfile that should be applied.
Returns: applied DAIProfiles
create_profile
Creates Driverless AI profile.
Args
profile_id
:str
, optionalThe ID to use for the Driverless AI profile, which will become the final component of the profile's resource name. This value must:
- contain 1-63 characters
- contain only lowercase alphanumeric characters or hyphen ('-')
- start with an alphabetic character
- end with an alphanumeric character
cpu
:int
, optional- The amount of CPU units set for the profile.
gpu
:int
, optional- Number of nvidia.com/gpu Kubernetes resource units.
memory_bytes
:str
, optionalQuantity of bytes. Example
8G
,16Gi
. Detailed syntax:- [quantity] = [number][suffix]
- [suffix] = [binarySI] | [decimalSI]
- [binarySI] = Ki | Mi | Gi | Ti | Pi
- [decimalSI] = k | M | G | T | P
storage_bytes
:str
, optional- Quantity of bytes. Example
250G
,2T
. Same syntax applies asmemory_bytes
parameter. display_name
:str
, optional- Human-readable name of the DAIProfile. Must contain at most 63 characters. Does not have to be unique.
Returns
DAIProfile
- Driverless AI profile.
delete_all_profiles
Help function for deleting all DAIProfiles.
delete_profile
get_profile
list_all_profiles
list_profiles
Returns a list of profiles.
Args
page_size
:int
, optional- Maximum number of DAIProfiles to return in a response. If unspecified (or set to 0), at most 50 DAIProfiles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
page_token
:str
, optional- Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the DAIProfilesPage.
Returns
DAIProfilesPage
- A list of Driverless AI profiles together with a next_page_token for the next page.
reorder_profile
update_profile
Updates the profile.
Args
profile
:DAIProfile
- The profile to be updated.
update_mask
:str
, optionalComma separated paths referencing which fields to update. Update mask must be non-empty.
Allowed field paths are: display_name. Paths are case sensitive (must match exactly). Example - update only cpu: update_mask="cpu" Example - update only cpu and gpu: update_mask="cpu,gpu"
To update all allowed fields, specify exactly one path with value "*", this is a default value.
Returns
DAIProfile
- An updated Driverless AI profile.
- Submit and view feedback for this page
- Send feedback about AI Engine Manager to cloud-feedback@h2o.ai