Documentation

ResourceObject

Table of Contents

$genericResources  : array<string|int, GenericResourcesItem>|null
User-defined resources can be either Integer resources (e.g, `SSD=3`) or.
$memoryBytes  : int|null
$nanoCPUs  : int|null
getGenericResources()  : array<string|int, GenericResourcesItem>|null
User-defined resources can be either Integer resources (e.g, `SSD=3`) or.
getMemoryBytes()  : int|null
getNanoCPUs()  : int|null
setGenericResources()  : self
User-defined resources can be either Integer resources (e.g, `SSD=3`) or.
setMemoryBytes()  : self
setNanoCPUs()  : self

Properties

$genericResources

User-defined resources can be either Integer resources (e.g, `SSD=3`) or.

protected array<string|int, GenericResourcesItem>|null $genericResources

Methods

getMemoryBytes()

public getMemoryBytes() : int|null
Return values
int|null

getNanoCPUs()

public getNanoCPUs() : int|null
Return values
int|null

setGenericResources()

User-defined resources can be either Integer resources (e.g, `SSD=3`) or.

public setGenericResources(array<string|int, GenericResourcesItem>|null $genericResources) : self
Parameters
$genericResources : array<string|int, GenericResourcesItem>|null
Return values
self

setMemoryBytes()

public setMemoryBytes(int|null $memoryBytes) : self
Parameters
$memoryBytes : int|null
Return values
self

setNanoCPUs()

public setNanoCPUs(int|null $nanoCPUs) : self
Parameters
$nanoCPUs : int|null
Return values
self

Search results