Skip to content

Latest commit

 

History

History
150 lines (81 loc) · 3.9 KB

Pagination.md

File metadata and controls

150 lines (81 loc) · 3.9 KB

Pagination

Properties

Name Type Description Notes
Offset Pointer to int32 Index of the first item returned in the response. The default is 0. [optional] [default to 0]
Limit int32 Maximum number of search results returned per page. Number must be between 1 and 100, and the default is 20. [default to 20]
Total int32 Total number of elements returned.
Next Pointer to string URL relative to the next item in the response. [optional]
Previous Pointer to string URL relative to the previous item in the response. [optional]

Methods

NewPagination

func NewPagination(limit int32, total int32, ) *Pagination

NewPagination instantiates a new Pagination 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

NewPaginationWithDefaults

func NewPaginationWithDefaults() *Pagination

NewPaginationWithDefaults instantiates a new Pagination 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

GetOffset

func (o *Pagination) GetOffset() int32

GetOffset returns the Offset field if non-nil, zero value otherwise.

GetOffsetOk

func (o *Pagination) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOffset

func (o *Pagination) SetOffset(v int32)

SetOffset sets Offset field to given value.

HasOffset

func (o *Pagination) HasOffset() bool

HasOffset returns a boolean if a field has been set.

GetLimit

func (o *Pagination) GetLimit() int32

GetLimit returns the Limit field if non-nil, zero value otherwise.

GetLimitOk

func (o *Pagination) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLimit

func (o *Pagination) SetLimit(v int32)

SetLimit sets Limit field to given value.

GetTotal

func (o *Pagination) GetTotal() int32

GetTotal returns the Total field if non-nil, zero value otherwise.

GetTotalOk

func (o *Pagination) GetTotalOk() (*int32, bool)

GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTotal

func (o *Pagination) SetTotal(v int32)

SetTotal sets Total field to given value.

GetNext

func (o *Pagination) GetNext() string

GetNext returns the Next field if non-nil, zero value otherwise.

GetNextOk

func (o *Pagination) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNext

func (o *Pagination) SetNext(v string)

SetNext sets Next field to given value.

HasNext

func (o *Pagination) HasNext() bool

HasNext returns a boolean if a field has been set.

GetPrevious

func (o *Pagination) GetPrevious() string

GetPrevious returns the Previous field if non-nil, zero value otherwise.

GetPreviousOk

func (o *Pagination) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPrevious

func (o *Pagination) SetPrevious(v string)

SetPrevious sets Previous field to given value.

HasPrevious

func (o *Pagination) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]