ComputeResource class

Compute resource requirements.

ComputeResource defines the amount of resources required for each task. Make sure your tasks have enough resources to successfully run. If you also define the types of resources for a job to use with the InstancePolicyOrTemplate field, make sure both fields are compatible with each other.

Constructors

ComputeResource({String? bootDiskMib, String? cpuMilli, String? memoryMib})
ComputeResource.fromJson(Map json_)

Properties

bootDiskMib String?
Extra boot disk size in MiB for each task.
getter/setter pair
cpuMilli String?
The milliCPU count.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
memoryMib String?
Memory in MiB.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited