4.1 KiB
AgentSpec
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Arch | Pointer to string | amd64 | arm64 |
| Cpus | Pointer to int64 | logical cores | [optional] |
| Gpus | Pointer to []AgentGPU | GPUs is every accelerator the machine advertises, one entry each, capped at 32 on write. Empty means the probe found none — and that is the answer a Need is checked against, so a machine with no entry here clears no accelerator floor. The list is not vendor-filtered: what satisfies a job is counts and VRAM, never a brand (see Need). | [optional] |
| Memory | Pointer to int64 | total RAM, bytes | [optional] |
| Os | Pointer to string | linux | darwin |
Methods
NewAgentSpec
func NewAgentSpec() *AgentSpec
NewAgentSpec instantiates a new AgentSpec object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewAgentSpecWithDefaults
func NewAgentSpecWithDefaults() *AgentSpec
NewAgentSpecWithDefaults instantiates a new AgentSpec object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetArch
func (o *AgentSpec) GetArch() string
GetArch returns the Arch field if non-nil, zero value otherwise.
GetArchOk
func (o *AgentSpec) GetArchOk() (*string, bool)
GetArchOk returns a tuple with the Arch field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetArch
func (o *AgentSpec) SetArch(v string)
SetArch sets Arch field to given value.
HasArch
func (o *AgentSpec) HasArch() bool
HasArch returns a boolean if a field has been set.
GetCpus
func (o *AgentSpec) GetCpus() int64
GetCpus returns the Cpus field if non-nil, zero value otherwise.
GetCpusOk
func (o *AgentSpec) GetCpusOk() (*int64, bool)
GetCpusOk returns a tuple with the Cpus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCpus
func (o *AgentSpec) SetCpus(v int64)
SetCpus sets Cpus field to given value.
HasCpus
func (o *AgentSpec) HasCpus() bool
HasCpus returns a boolean if a field has been set.
GetGpus
func (o *AgentSpec) GetGpus() []AgentGPU
GetGpus returns the Gpus field if non-nil, zero value otherwise.
GetGpusOk
func (o *AgentSpec) GetGpusOk() (*[]AgentGPU, bool)
GetGpusOk returns a tuple with the Gpus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetGpus
func (o *AgentSpec) SetGpus(v []AgentGPU)
SetGpus sets Gpus field to given value.
HasGpus
func (o *AgentSpec) HasGpus() bool
HasGpus returns a boolean if a field has been set.
GetMemory
func (o *AgentSpec) GetMemory() int64
GetMemory returns the Memory field if non-nil, zero value otherwise.
GetMemoryOk
func (o *AgentSpec) GetMemoryOk() (*int64, bool)
GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMemory
func (o *AgentSpec) SetMemory(v int64)
SetMemory sets Memory field to given value.
HasMemory
func (o *AgentSpec) HasMemory() bool
HasMemory returns a boolean if a field has been set.
GetOs
func (o *AgentSpec) GetOs() string
GetOs returns the Os field if non-nil, zero value otherwise.
GetOsOk
func (o *AgentSpec) GetOsOk() (*string, bool)
GetOsOk returns a tuple with the Os field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetOs
func (o *AgentSpec) SetOs(v string)
SetOs sets Os field to given value.
HasOs
func (o *AgentSpec) HasOs() bool
HasOs returns a boolean if a field has been set.