Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ResourceCommitment

import type { ResourceCommitment } from "https://googleapis.deno.dev/v1/compute:v1.ts";

Commitment for a particular resource (a Commitment is composed of one or more of these).

interface ResourceCommitment {
acceleratorType?: string;
amount?: bigint;
type?:
| "ACCELERATOR"
| "LOCAL_SSD"
| "MEMORY"
| "UNSPECIFIED"
| "VCPU";
}

§Properties

§
acceleratorType?: string
[src]

Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.

§
amount?: bigint
[src]

The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.

§
type?: "ACCELERATOR" | "LOCAL_SSD" | "MEMORY" | "UNSPECIFIED" | "VCPU"
[src]

Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.