Name | Type | Description | Notes |
---|---|---|---|
Name | Pointer to string | The name of pool. | [optional] |
Slots | Pointer to int32 | The maximum number of slots that can be assigned to tasks. One job may occupy one or more slots. | [optional] |
OccupiedSlots | Pointer to int32 | The number of slots used by running/queued tasks at the moment. | [optional] [readonly] |
UsedSlots | Pointer to int32 | The number of slots used by running tasks at the moment. | [optional] [readonly] |
QueuedSlots | Pointer to int32 | The number of slots used by queued tasks at the moment. | [optional] [readonly] |
OpenSlots | Pointer to int32 | The number of free slots at the moment. | [optional] [readonly] |
func NewPool() *Pool
NewPool instantiates a new Pool 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
func NewPoolWithDefaults() *Pool
NewPoolWithDefaults instantiates a new Pool 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
func (o *Pool) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *Pool) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pool) SetName(v string)
SetName sets Name field to given value.
func (o *Pool) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Pool) GetSlots() int32
GetSlots returns the Slots field if non-nil, zero value otherwise.
func (o *Pool) GetSlotsOk() (*int32, bool)
GetSlotsOk returns a tuple with the Slots field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pool) SetSlots(v int32)
SetSlots sets Slots field to given value.
func (o *Pool) HasSlots() bool
HasSlots returns a boolean if a field has been set.
func (o *Pool) GetOccupiedSlots() int32
GetOccupiedSlots returns the OccupiedSlots field if non-nil, zero value otherwise.
func (o *Pool) GetOccupiedSlotsOk() (*int32, bool)
GetOccupiedSlotsOk returns a tuple with the OccupiedSlots field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pool) SetOccupiedSlots(v int32)
SetOccupiedSlots sets OccupiedSlots field to given value.
func (o *Pool) HasOccupiedSlots() bool
HasOccupiedSlots returns a boolean if a field has been set.
func (o *Pool) GetUsedSlots() int32
GetUsedSlots returns the UsedSlots field if non-nil, zero value otherwise.
func (o *Pool) GetUsedSlotsOk() (*int32, bool)
GetUsedSlotsOk returns a tuple with the UsedSlots field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pool) SetUsedSlots(v int32)
SetUsedSlots sets UsedSlots field to given value.
func (o *Pool) HasUsedSlots() bool
HasUsedSlots returns a boolean if a field has been set.
func (o *Pool) GetQueuedSlots() int32
GetQueuedSlots returns the QueuedSlots field if non-nil, zero value otherwise.
func (o *Pool) GetQueuedSlotsOk() (*int32, bool)
GetQueuedSlotsOk returns a tuple with the QueuedSlots field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pool) SetQueuedSlots(v int32)
SetQueuedSlots sets QueuedSlots field to given value.
func (o *Pool) HasQueuedSlots() bool
HasQueuedSlots returns a boolean if a field has been set.
func (o *Pool) GetOpenSlots() int32
GetOpenSlots returns the OpenSlots field if non-nil, zero value otherwise.
func (o *Pool) GetOpenSlotsOk() (*int32, bool)
GetOpenSlotsOk returns a tuple with the OpenSlots field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pool) SetOpenSlots(v int32)
SetOpenSlots sets OpenSlots field to given value.
func (o *Pool) HasOpenSlots() bool
HasOpenSlots returns a boolean if a field has been set.