ai-sdk-sandbox-gce
The options of createGceNetworkSandboxSession and resumeGceNetworkSandboxSession, generated from the source.
createGceNetworkSandboxSession(options)
Creates a sandbox, a Compute Engine machine of its own, through the sandbox service and returns a GceNetworkSandboxSession on it. Besides the settings below, it takes sandboxId, template and abortSignal.
Prop
Type
resumeGceNetworkSandboxSession(options)
Reattaches to a running sandbox, or starts a stopped one again on its disk. Besides the settings below, it takes sandboxId (required) and abortSignal. Throws GceSandboxNotFoundError when no sandbox has that name.
Prop
Type
prepareGceSandboxService(options)
Has the sandbox service boot what the sandbox created next will need, without waiting for it: its egress proxy, when it starts and stops it, and a machine booted from the sandbox's template, which the creation takes. A hint: do not await it. It never builds the template, and a service of an earlier version boots the proxy only, or nothing.
Prop
Type
deleteGceSandboxTemplate(options)
Deletes the template that sandboxes created with template, setup and image boot from: the image the service saved, billed for its storage. The sandboxes made from it keep their disk; the next one created from it builds it again. A template that does not exist is no error.
Prop
Type
gceSandboxTemplateExists(options)
Whether the template that sandboxes created with template, setup and image boot from is saved on the service. It is not after a new base image, a new version of the service or a new harness version, which each name another template: the next sandbox created from it builds it first. Build it ahead when it is not.
Prop
Type
describeGceSandbox(options)
The sandbox's machine, running or stopped, as Compute Engine describes it, without starting it. Throws GceSandboxNotFoundError when there is none. describe() of a session answers the same.
Prop
Type
What it answers, GceSandboxInfo:
Prop
Type
getGceSandboxUsage(options)
What the connections of the running sandbox carried through the egress proxy since its creation or its last resume, counted outside its machine. usage() of a session answers the same. It takes the options of describeGceSandbox().
Prop
Type
GceSandboxReport
The last measures of a sandbox, read as it is stopped or deleted: what onUsageReport is handed and lastReport of a session holds.
Prop
Type
getGceSandboxMetrics(options)
What the agent of the running sandbox's machine sampled of it every 30 s, after since when given: fit for sizing, never for billing. metrics() of a session answers the same.
Prop
Type
Each sample, GceSandboxMetricSample:
Prop
Type