Skip to main content

Module clients.sandbox.process.ps

Functions

process_from_api_object

def process_from_api_object(api_object: h2o_engine_manager.gen.model.v1_process.V1Process) ‑> Process

Classes

Process

class Process(name: str = '', command: str = '', args: Optional[List[str]] = None, working_directory: str = '', environment_variables: Optional[Dict[str, str]] = None, secret_environment_variables: Optional[Dict[str, h2o_engine_manager.clients.sandbox.process.secret_environment_variable.SecretEnvironmentVariable]] = None, state: h2o_engine_manager.clients.sandbox.process.process_state.ProcessState = ProcessState.STATE_UNSPECIFIED, exit_code: Optional[int] = None, create_time: Optional[datetime.datetime] = None, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None)

Process represents a process running in a sandbox engine.

Process represents a process in a sandbox engine.

Args
name
The resource name of the process. Format: "workspaces//sandboxEngines//processes/*"
command
The command that will be executed.
args
Optional arguments for the command.
working_directory
Optional working directory for the process.
environment_variables
Optional map of environment variables.
secret_environment_variables
Optional map of environment variables populated from H2O Secure Store secrets.
state
The state of the process.
exit_code
Output only. The exit code of the process.
create_time
Output only. The time the process was created.
start_time
Output only. The time the process started execution.
end_time
Output only. The time the process finished.

Feedback