Module clients.notebook_engine.client
Classes
NotebookEngineClient
NotebookEngineClient manages NotebookEngines.
Args
connection_config
- 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
access_notebook_engine
Returns the notebook engine access URI.
Args
name
- NotebookEngine resource name. Format: "workspaces//notebookEngines/"
Returns: The notebook engine access URI
create_notebook_engine
Create notebook engine.
Args
parent
:str
- Name of the engine's parent workspace. Format: "workspaces/*".
notebook_engine
:NotebookEngine
- NotebookEngine to create.
notebook_engine_id
:str
- The ID to use for the NotebookEngine, which will form the engine'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
Returns
NotebookEngine
- created NotebookEngine.
delete_notebook_engine
Start notebook engine deletion. Method returns instantly, but it may take some time until the engine is deleted.
Args
name
- NotebookEngine resource name. Format: "workspaces//notebookEngines/"
get_notebook_engine
list_all_notebook_engines
Help method for listing all NotebookEngines.
Args
parent
:str
- Name of the workspace from which to list notebookEngines. Format:
workspaces/*
.
list_notebook_engines
Standard list method.
Args
parent
:str
- Name of the workspace from which to list notebookEngines. Format:
workspaces/*
. page_size
:int
- Maximum number of NotebookEngines to return in a response. If unspecified (or set to 0), at most 50 NotebookEngines will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
page_token
:str
- Page token. Leave unset to receive the initial page. To list any subsequent pages use the value of 'next_page_token' returned from the NotebookEnginesPage.
Returns
NotebookEnginesPage
- NotebookEnginesPage object.
pause_notebook_engine
Pause notebook engine. Method returns instantly, but it may take some time until the engine is paused.
Args
name
- NotebookEngine resource name. Format: "workspaces//notebookEngines/"
Returns: paused notebookEngine
resume_notebook_engine
Resume notebook engine. Method returns instantly, but it may take some time until the engine is running.
Args
name
- NotebookEngine resource name. Format: "workspaces//notebookEngines/"
Returns: resumed notebookEngine
update_notebook_engine
Standard Update method.
Args
notebook_engine
:NotebookEngine
- notebookEngine to update.
update_mask
:str
- The field mask to use for the update. Allowed field paths are: - profile - notebook_image - cpu - gpu - memory_bytes - display_name - max_idle_duration - max_running_duration Default value "*" will update all updatable fields.
Returns
NotebookEngine
- Updated NotebookEngine.
wait
Blocks execution until the notebookEngine with the given name is in the process of reconciling or until it is no longer found.
Args
name
- NotebookEngine resource name for which to wait. Format: "workspaces//notebookEngines/"
timeout_seconds
- Time limit in seconds for how long to wait.
Returns: engine that has finished waiting or nothing, if engine is no longer found.
- Submit and view feedback for this page
- Send feedback about AI Engine Manager to cloud-feedback@h2o.ai