Skip to content

Latest commit

 

History

History
206 lines (113 loc) · 6.99 KB

DowntimeRecurrence.md

File metadata and controls

206 lines (113 loc) · 6.99 KB

DowntimeRecurrence

Properties

Name Type Description Notes
Period Pointer to int32 How often to repeat as an integer. For example, to repeat every 3 days, select a type of `days` and a period of `3`. [optional]
Rrule Pointer to string The `RRULE` standard for defining recurring events (requires to set "type" to rrule) For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. Most common `rrule` options from the iCalendar Spec are supported. Note: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). More examples available in this downtime guide [optional]
Type Pointer to string The type of recurrence. Choose from `days`, `weeks`, `months`, `years`, `rrule`. [optional]
UntilDate Pointer to NullableInt64 The date at which the recurrence should end as a POSIX timestamp. `until_occurences` and `until_date` are mutually exclusive. [optional]
UntilOccurrences Pointer to NullableInt32 How many times the downtime is rescheduled. `until_occurences` and `until_date` are mutually exclusive. [optional]
WeekDays Pointer to []string A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. Only applicable when type is weeks. First letter must be capitalized. [optional]

Methods

NewDowntimeRecurrence

func NewDowntimeRecurrence() *DowntimeRecurrence

NewDowntimeRecurrence instantiates a new DowntimeRecurrence 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.

NewDowntimeRecurrenceWithDefaults

func NewDowntimeRecurrenceWithDefaults() *DowntimeRecurrence

NewDowntimeRecurrenceWithDefaults instantiates a new DowntimeRecurrence 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.

GetPeriod

func (o *DowntimeRecurrence) GetPeriod() int32

GetPeriod returns the Period field if non-nil, zero value otherwise.

GetPeriodOk

func (o *DowntimeRecurrence) GetPeriodOk() (*int32, bool)

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

SetPeriod

func (o *DowntimeRecurrence) SetPeriod(v int32)

SetPeriod sets Period field to given value.

HasPeriod

func (o *DowntimeRecurrence) HasPeriod() bool

HasPeriod returns a boolean if a field has been set.

GetRrule

func (o *DowntimeRecurrence) GetRrule() string

GetRrule returns the Rrule field if non-nil, zero value otherwise.

GetRruleOk

func (o *DowntimeRecurrence) GetRruleOk() (*string, bool)

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

SetRrule

func (o *DowntimeRecurrence) SetRrule(v string)

SetRrule sets Rrule field to given value.

HasRrule

func (o *DowntimeRecurrence) HasRrule() bool

HasRrule returns a boolean if a field has been set.

GetType

func (o *DowntimeRecurrence) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *DowntimeRecurrence) GetTypeOk() (*string, bool)

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

SetType

func (o *DowntimeRecurrence) SetType(v string)

SetType sets Type field to given value.

HasType

func (o *DowntimeRecurrence) HasType() bool

HasType returns a boolean if a field has been set.

GetUntilDate

func (o *DowntimeRecurrence) GetUntilDate() int64

GetUntilDate returns the UntilDate field if non-nil, zero value otherwise.

GetUntilDateOk

func (o *DowntimeRecurrence) GetUntilDateOk() (*int64, bool)

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

SetUntilDate

func (o *DowntimeRecurrence) SetUntilDate(v int64)

SetUntilDate sets UntilDate field to given value.

HasUntilDate

func (o *DowntimeRecurrence) HasUntilDate() bool

HasUntilDate returns a boolean if a field has been set.

SetUntilDateNil

func (o *DowntimeRecurrence) SetUntilDateNil(b bool)

SetUntilDateNil sets the value for UntilDate to be an explicit nil

UnsetUntilDate

func (o *DowntimeRecurrence) UnsetUntilDate()

UnsetUntilDate ensures that no value is present for UntilDate, not even an explicit nil

GetUntilOccurrences

func (o *DowntimeRecurrence) GetUntilOccurrences() int32

GetUntilOccurrences returns the UntilOccurrences field if non-nil, zero value otherwise.

GetUntilOccurrencesOk

func (o *DowntimeRecurrence) GetUntilOccurrencesOk() (*int32, bool)

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

SetUntilOccurrences

func (o *DowntimeRecurrence) SetUntilOccurrences(v int32)

SetUntilOccurrences sets UntilOccurrences field to given value.

HasUntilOccurrences

func (o *DowntimeRecurrence) HasUntilOccurrences() bool

HasUntilOccurrences returns a boolean if a field has been set.

SetUntilOccurrencesNil

func (o *DowntimeRecurrence) SetUntilOccurrencesNil(b bool)

SetUntilOccurrencesNil sets the value for UntilOccurrences to be an explicit nil

UnsetUntilOccurrences

func (o *DowntimeRecurrence) UnsetUntilOccurrences()

UnsetUntilOccurrences ensures that no value is present for UntilOccurrences, not even an explicit nil

GetWeekDays

func (o *DowntimeRecurrence) GetWeekDays() []string

GetWeekDays returns the WeekDays field if non-nil, zero value otherwise.

GetWeekDaysOk

func (o *DowntimeRecurrence) GetWeekDaysOk() (*[]string, bool)

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

SetWeekDays

func (o *DowntimeRecurrence) SetWeekDays(v []string)

SetWeekDays sets WeekDays field to given value.

HasWeekDays

func (o *DowntimeRecurrence) HasWeekDays() bool

HasWeekDays returns a boolean if a field has been set.

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