Resource¶
Structure Class¶
Resource
dataclass
¶
Bases: _SerdeShape
Describes the resources available for a container instance.
Attributes¶
double_value
class-attribute
instance-attribute
¶
double_value: float = ...
When the doubleValue type is set, the value of the resource must be a
double precision floating-point type.
integer_value
class-attribute
instance-attribute
¶
integer_value: int = ...
When the integerValue type is set, the value of the resource must be
an integer.
long_value
class-attribute
instance-attribute
¶
long_value: int = ...
When the longValue type is set, the value of the resource must be an
extended precision floating-point type.
name
class-attribute
instance-attribute
¶
name: str | None = ...
The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP,
or a user-defined resource.
string_set_value
class-attribute
instance-attribute
¶
When the stringSetValue type is set, the value of the resource must be
a string type.