@finalclass IdlePolicyThe idle policy the service reports a VM is running under.
Constructor
Section titled “Constructor”IdlePolicy declares no __new__ or __init__, so it is not constructed directly: an instance comes back from another call in this package.
Properties
Section titled “Properties”auto_resume
Section titled “auto_resume”auto_resume: boolautoResumeEnabled: whether a request to a suspended VM resumes it.
max_idle_sec
Section titled “max_idle_sec”max_idle_sec: intmaxIdleDurationSeconds: inbound-traffic silence before an auto-suspend.
suspended_sec
Section titled “suspended_sec”suspended_sec: intsuspendedDurationSeconds: how long a suspended VM lasts before it is terminated.
Special methods
Section titled “Special methods”__repr__
Section titled “__repr__”def __repr__() -> strProvenance
Section titled “Provenance”This page is generated from bindings/microvms-py/microvms.pyi by Griffe 2.3.0, run from site/scripts/gen-reference.mjs on every pnpm run sync, so an edit made here is overwritten by the next run.
To change the page, change the doc comment in the binding’s Rust source, then regenerate the declarations with mise run stubs. mise run stubs:check fails when the committed file no longer matches the source.