GoodMem
ReferenceClient SDKsGoRequests

AdminPurgeJobsRequest

AdminPurgeJobsRequest documentation for Go SDK

Properties

NameTypeDescriptionNotes
OlderThanPointer to stringISO-8601 timestamp cutoff; only terminal jobs older than this instant are eligible.[optional]
StatusesPointer to []stringOptional terminal background job statuses to target for purging.[optional]
DryRunPointer to boolIf true, report purge counts without deleting any rows.[optional]
LimitPointer to int32Maximum number of jobs to purge in this request.[optional]

Methods

NewAdminPurgeJobsRequest

func NewAdminPurgeJobsRequest() *AdminPurgeJobsRequest

NewAdminPurgeJobsRequest instantiates a new AdminPurgeJobsRequest 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

NewAdminPurgeJobsRequestWithDefaults

func NewAdminPurgeJobsRequestWithDefaults() *AdminPurgeJobsRequest

NewAdminPurgeJobsRequestWithDefaults instantiates a new AdminPurgeJobsRequest 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

GetOlderThan

func (o *AdminPurgeJobsRequest) GetOlderThan() string

GetOlderThan returns the OlderThan field if non-nil, zero value otherwise.

GetOlderThanOk

func (o *AdminPurgeJobsRequest) GetOlderThanOk() (*string, bool)

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

SetOlderThan

func (o *AdminPurgeJobsRequest) SetOlderThan(v string)

SetOlderThan sets OlderThan field to given value.

HasOlderThan

func (o *AdminPurgeJobsRequest) HasOlderThan() bool

HasOlderThan returns a boolean if a field has been set.

GetStatuses

func (o *AdminPurgeJobsRequest) GetStatuses() []string

GetStatuses returns the Statuses field if non-nil, zero value otherwise.

GetStatusesOk

func (o *AdminPurgeJobsRequest) GetStatusesOk() (*[]string, bool)

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

SetStatuses

func (o *AdminPurgeJobsRequest) SetStatuses(v []string)

SetStatuses sets Statuses field to given value.

HasStatuses

func (o *AdminPurgeJobsRequest) HasStatuses() bool

HasStatuses returns a boolean if a field has been set.

GetDryRun

func (o *AdminPurgeJobsRequest) GetDryRun() bool

GetDryRun returns the DryRun field if non-nil, zero value otherwise.

GetDryRunOk

func (o *AdminPurgeJobsRequest) GetDryRunOk() (*bool, bool)

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

SetDryRun

func (o *AdminPurgeJobsRequest) SetDryRun(v bool)

SetDryRun sets DryRun field to given value.

HasDryRun

func (o *AdminPurgeJobsRequest) HasDryRun() bool

HasDryRun returns a boolean if a field has been set.

GetLimit

func (o *AdminPurgeJobsRequest) GetLimit() int32

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

GetLimitOk

func (o *AdminPurgeJobsRequest) 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 *AdminPurgeJobsRequest) SetLimit(v int32)

SetLimit sets Limit field to given value.

HasLimit

func (o *AdminPurgeJobsRequest) HasLimit() bool

HasLimit returns a boolean if a field has been set.