ResourceCommitment class

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

Constructors

ResourceCommitment()
ResourceCommitment.fromJson(Map _json)

Properties

acceleratorType ↔ String
Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
read / write
amount ↔ String
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.
read / write
type ↔ String
Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Possible string values are: [...]
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited