// Code generated by ogen, DO NOT EDIT.
package api
type BearerAuth struct {
Token string
Roles []string
}
// GetToken returns the value of Token.
func (s *BearerAuth) GetToken() string {
return s.Token
}
// GetRoles returns the value of Roles.
func (s *BearerAuth) GetRoles() []string {
return s.Roles
}
// SetToken sets the value of Token.
func (s *BearerAuth) SetToken(val string) {
s.Token = val
}
// SetRoles sets the value of Roles.
func (s *BearerAuth) SetRoles(val []string) {
s.Roles = val
}
// Ref: #/components/schemas/CreateTaskListReq
type CreateTaskListReq struct {
DisplayName string `json:"displayName"`
}
// GetDisplayName returns the value of DisplayName.
func (s *CreateTaskListReq) GetDisplayName() string {
return s.DisplayName
}
// SetDisplayName sets the value of DisplayName.
func (s *CreateTaskListReq) SetDisplayName(val string) {
s.DisplayName = val
}
// Ref: #/components/schemas/CreateTaskReq
type CreateTaskReq struct {
Title string `json:"title"`
Body OptItemBody `json:"body"`
Importance OptString `json:"importance"`
DueDateTime OptDateTimeTimeZone `json:"dueDateTime"`
ReminderDateTime OptDateTimeTimeZone `json:"reminderDateTime"`
IsReminderOn OptBool `json:"isReminderOn"`
}
// GetTitle returns the value of Title.
func (s *CreateTaskReq) GetTitle() string {
return s.Title
}
// GetBody returns the value of Body.
func (s *CreateTaskReq) GetBody() OptItemBody {
return s.Body
}
// GetImportance returns the value of Importance.
func (s *CreateTaskReq) GetImportance() OptString {
return s.Importance
}
// GetDueDateTime returns the value of DueDateTime.
func (s *CreateTaskReq) GetDueDateTime() OptDateTimeTimeZone {
return s.DueDateTime
}
// GetReminderDateTime returns the value of ReminderDateTime.
func (s *CreateTaskReq) GetReminderDateTime() OptDateTimeTimeZone {
return s.ReminderDateTime
}
// GetIsReminderOn returns the value of IsReminderOn.
func (s *CreateTaskReq) GetIsReminderOn() OptBool {
return s.IsReminderOn
}
// SetTitle sets the value of Title.
func (s *CreateTaskReq) SetTitle(val string) {
s.Title = val
}
// SetBody sets the value of Body.
func (s *CreateTaskReq) SetBody(val OptItemBody) {
s.Body = val
}
// SetImportance sets the value of Importance.
func (s *CreateTaskReq) SetImportance(val OptString) {
s.Importance = val
}
// SetDueDateTime sets the value of DueDateTime.
func (s *CreateTaskReq) SetDueDateTime(val OptDateTimeTimeZone) {
s.DueDateTime = val
}
// SetReminderDateTime sets the value of ReminderDateTime.
func (s *CreateTaskReq) SetReminderDateTime(val OptDateTimeTimeZone) {
s.ReminderDateTime = val
}
// SetIsReminderOn sets the value of IsReminderOn.
func (s *CreateTaskReq) SetIsReminderOn(val OptBool) {
s.IsReminderOn = val
}
// Ref: #/components/schemas/DateTimeTimeZone
type DateTimeTimeZone struct {
DateTime OptString `json:"dateTime"`
TimeZone OptString `json:"timeZone"`
}
// GetDateTime returns the value of DateTime.
func (s *DateTimeTimeZone) GetDateTime() OptString {
return s.DateTime
}
// GetTimeZone returns the value of TimeZone.
func (s *DateTimeTimeZone) GetTimeZone() OptString {
return s.TimeZone
}
// SetDateTime sets the value of DateTime.
func (s *DateTimeTimeZone) SetDateTime(val OptString) {
s.DateTime = val
}
// SetTimeZone sets the value of TimeZone.
func (s *DateTimeTimeZone) SetTimeZone(val OptString) {
s.TimeZone = val
}
// DeleteListNoContent is response for DeleteList operation.
type DeleteListNoContent struct{}
// DeleteTaskNoContent is response for DeleteTask operation.
type DeleteTaskNoContent struct{}
// Ref: #/components/schemas/ItemBody
type ItemBody struct {
Content OptString `json:"content"`
ContentType OptString `json:"contentType"`
}
// GetContent returns the value of Content.
func (s *ItemBody) GetContent() OptString {
return s.Content
}
// GetContentType returns the value of ContentType.
func (s *ItemBody) GetContentType() OptString {
return s.ContentType
}
// SetContent sets the value of Content.
func (s *ItemBody) SetContent(val OptString) {
s.Content = val
}
// SetContentType sets the value of ContentType.
func (s *ItemBody) SetContentType(val OptString) {
s.ContentType = val
}
// NewOptBool returns new OptBool with value set to v.
func NewOptBool(v bool) OptBool {
return OptBool{
Value: v,
Set: true,
}
}
// OptBool is optional bool.
type OptBool struct {
Value bool
Set bool
}
// IsSet returns true if OptBool was set.
func (o OptBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBool) Reset() {
var v bool
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBool) SetTo(v bool) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBool) Get() (v bool, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptDateTimeTimeZone returns new OptDateTimeTimeZone with value set to v.
func NewOptDateTimeTimeZone(v DateTimeTimeZone) OptDateTimeTimeZone {
return OptDateTimeTimeZone{
Value: v,
Set: true,
}
}
// OptDateTimeTimeZone is optional DateTimeTimeZone.
type OptDateTimeTimeZone struct {
Value DateTimeTimeZone
Set bool
}
// IsSet returns true if OptDateTimeTimeZone was set.
func (o OptDateTimeTimeZone) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptDateTimeTimeZone) Reset() {
var v DateTimeTimeZone
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptDateTimeTimeZone) SetTo(v DateTimeTimeZone) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptDateTimeTimeZone) Get() (v DateTimeTimeZone, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptDateTimeTimeZone) Or(d DateTimeTimeZone) DateTimeTimeZone {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptInt returns new OptInt with value set to v.
func NewOptInt(v int) OptInt {
return OptInt{
Value: v,
Set: true,
}
}
// OptInt is optional int.
type OptInt struct {
Value int
Set bool
}
// IsSet returns true if OptInt was set.
func (o OptInt) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt) Reset() {
var v int
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt) SetTo(v int) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt) Get() (v int, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt) Or(d int) int {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptItemBody returns new OptItemBody with value set to v.
func NewOptItemBody(v ItemBody) OptItemBody {
return OptItemBody{
Value: v,
Set: true,
}
}
// OptItemBody is optional ItemBody.
type OptItemBody struct {
Value ItemBody
Set bool
}
// IsSet returns true if OptItemBody was set.
func (o OptItemBody) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptItemBody) Reset() {
var v ItemBody
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptItemBody) SetTo(v ItemBody) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptItemBody) Get() (v ItemBody, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptItemBody) Or(d ItemBody) ItemBody {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilBool returns new OptNilBool with value set to v.
func NewOptNilBool(v bool) OptNilBool {
return OptNilBool{
Value: v,
Set: true,
}
}
// OptNilBool is optional nullable bool.
type OptNilBool struct {
Value bool
Set bool
Null bool
}
// IsSet returns true if OptNilBool was set.
func (o OptNilBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilBool) Reset() {
var v bool
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilBool) SetTo(v bool) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilBool) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilBool) SetToNull() {
o.Set = true
o.Null = true
var v bool
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilBool) Get() (v bool, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilString returns new OptNilString with value set to v.
func NewOptNilString(v string) OptNilString {
return OptNilString{
Value: v,
Set: true,
}
}
// OptNilString is optional nullable string.
type OptNilString struct {
Value string
Set bool
Null bool
}
// IsSet returns true if OptNilString was set.
func (o OptNilString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilString) Reset() {
var v string
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilString) SetTo(v string) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilString) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilString) SetToNull() {
o.Set = true
o.Null = true
var v string
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilString) Get() (v string, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptString returns new OptString with value set to v.
func NewOptString(v string) OptString {
return OptString{
Value: v,
Set: true,
}
}
// OptString is optional string.
type OptString struct {
Value string
Set bool
}
// IsSet returns true if OptString was set.
func (o OptString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptString) Reset() {
var v string
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptString) SetTo(v string) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptString) Get() (v string, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// Ref: #/components/schemas/TodoTask
type TodoTask struct {
ID OptString `json:"id"`
Title OptString `json:"title"`
Body OptItemBody `json:"body"`
Importance OptNilString `json:"importance"`
Status OptNilString `json:"status"`
IsReminderOn OptNilBool `json:"isReminderOn"`
DueDateTime OptDateTimeTimeZone `json:"dueDateTime"`
ReminderDateTime OptDateTimeTimeZone `json:"reminderDateTime"`
CompletedDateTime OptDateTimeTimeZone `json:"completedDateTime"`
CreatedDateTime OptNilString `json:"createdDateTime"`
LastModifiedDateTime OptNilString `json:"lastModifiedDateTime"`
}
// GetID returns the value of ID.
func (s *TodoTask) GetID() OptString {
return s.ID
}
// GetTitle returns the value of Title.
func (s *TodoTask) GetTitle() OptString {
return s.Title
}
// GetBody returns the value of Body.
func (s *TodoTask) GetBody() OptItemBody {
return s.Body
}
// GetImportance returns the value of Importance.
func (s *TodoTask) GetImportance() OptNilString {
return s.Importance
}
// GetStatus returns the value of Status.
func (s *TodoTask) GetStatus() OptNilString {
return s.Status
}
// GetIsReminderOn returns the value of IsReminderOn.
func (s *TodoTask) GetIsReminderOn() OptNilBool {
return s.IsReminderOn
}
// GetDueDateTime returns the value of DueDateTime.
func (s *TodoTask) GetDueDateTime() OptDateTimeTimeZone {
return s.DueDateTime
}
// GetReminderDateTime returns the value of ReminderDateTime.
func (s *TodoTask) GetReminderDateTime() OptDateTimeTimeZone {
return s.ReminderDateTime
}
// GetCompletedDateTime returns the value of CompletedDateTime.
func (s *TodoTask) GetCompletedDateTime() OptDateTimeTimeZone {
return s.CompletedDateTime
}
// GetCreatedDateTime returns the value of CreatedDateTime.
func (s *TodoTask) GetCreatedDateTime() OptNilString {
return s.CreatedDateTime
}
// GetLastModifiedDateTime returns the value of LastModifiedDateTime.
func (s *TodoTask) GetLastModifiedDateTime() OptNilString {
return s.LastModifiedDateTime
}
// SetID sets the value of ID.
func (s *TodoTask) SetID(val OptString) {
s.ID = val
}
// SetTitle sets the value of Title.
func (s *TodoTask) SetTitle(val OptString) {
s.Title = val
}
// SetBody sets the value of Body.
func (s *TodoTask) SetBody(val OptItemBody) {
s.Body = val
}
// SetImportance sets the value of Importance.
func (s *TodoTask) SetImportance(val OptNilString) {
s.Importance = val
}
// SetStatus sets the value of Status.
func (s *TodoTask) SetStatus(val OptNilString) {
s.Status = val
}
// SetIsReminderOn sets the value of IsReminderOn.
func (s *TodoTask) SetIsReminderOn(val OptNilBool) {
s.IsReminderOn = val
}
// SetDueDateTime sets the value of DueDateTime.
func (s *TodoTask) SetDueDateTime(val OptDateTimeTimeZone) {
s.DueDateTime = val
}
// SetReminderDateTime sets the value of ReminderDateTime.
func (s *TodoTask) SetReminderDateTime(val OptDateTimeTimeZone) {
s.ReminderDateTime = val
}
// SetCompletedDateTime sets the value of CompletedDateTime.
func (s *TodoTask) SetCompletedDateTime(val OptDateTimeTimeZone) {
s.CompletedDateTime = val
}
// SetCreatedDateTime sets the value of CreatedDateTime.
func (s *TodoTask) SetCreatedDateTime(val OptNilString) {
s.CreatedDateTime = val
}
// SetLastModifiedDateTime sets the value of LastModifiedDateTime.
func (s *TodoTask) SetLastModifiedDateTime(val OptNilString) {
s.LastModifiedDateTime = val
}
// Ref: #/components/schemas/TodoTaskCollectionResponse
type TodoTaskCollectionResponse struct {
Value []TodoTask `json:"value"`
}
// GetValue returns the value of Value.
func (s *TodoTaskCollectionResponse) GetValue() []TodoTask {
return s.Value
}
// SetValue sets the value of Value.
func (s *TodoTaskCollectionResponse) SetValue(val []TodoTask) {
s.Value = val
}
// Ref: #/components/schemas/TodoTaskList
type TodoTaskList struct {
ID OptString `json:"id"`
DisplayName OptString `json:"displayName"`
IsOwner OptNilBool `json:"isOwner"`
IsShared OptNilBool `json:"isShared"`
WellknownListName OptNilString `json:"wellknownListName"`
}
// GetID returns the value of ID.
func (s *TodoTaskList) GetID() OptString {
return s.ID
}
// GetDisplayName returns the value of DisplayName.
func (s *TodoTaskList) GetDisplayName() OptString {
return s.DisplayName
}
// GetIsOwner returns the value of IsOwner.
func (s *TodoTaskList) GetIsOwner() OptNilBool {
return s.IsOwner
}
// GetIsShared returns the value of IsShared.
func (s *TodoTaskList) GetIsShared() OptNilBool {
return s.IsShared
}
// GetWellknownListName returns the value of WellknownListName.
func (s *TodoTaskList) GetWellknownListName() OptNilString {
return s.WellknownListName
}
// SetID sets the value of ID.
func (s *TodoTaskList) SetID(val OptString) {
s.ID = val
}
// SetDisplayName sets the value of DisplayName.
func (s *TodoTaskList) SetDisplayName(val OptString) {
s.DisplayName = val
}
// SetIsOwner sets the value of IsOwner.
func (s *TodoTaskList) SetIsOwner(val OptNilBool) {
s.IsOwner = val
}
// SetIsShared sets the value of IsShared.
func (s *TodoTaskList) SetIsShared(val OptNilBool) {
s.IsShared = val
}
// SetWellknownListName sets the value of WellknownListName.
func (s *TodoTaskList) SetWellknownListName(val OptNilString) {
s.WellknownListName = val
}
// Ref: #/components/schemas/TodoTaskListCollectionResponse
type TodoTaskListCollectionResponse struct {
Value []TodoTaskList `json:"value"`
}
// GetValue returns the value of Value.
func (s *TodoTaskListCollectionResponse) GetValue() []TodoTaskList {
return s.Value
}
// SetValue sets the value of Value.
func (s *TodoTaskListCollectionResponse) SetValue(val []TodoTaskList) {
s.Value = val
}
// Ref: #/components/schemas/UpdateTaskListReq
type UpdateTaskListReq struct {
DisplayName OptString `json:"displayName"`
}
// GetDisplayName returns the value of DisplayName.
func (s *UpdateTaskListReq) GetDisplayName() OptString {
return s.DisplayName
}
// SetDisplayName sets the value of DisplayName.
func (s *UpdateTaskListReq) SetDisplayName(val OptString) {
s.DisplayName = val
}
// Ref: #/components/schemas/UpdateTaskReq
type UpdateTaskReq struct {
Title OptString `json:"title"`
Body OptItemBody `json:"body"`
Importance OptString `json:"importance"`
Status OptString `json:"status"`
DueDateTime OptDateTimeTimeZone `json:"dueDateTime"`
ReminderDateTime OptDateTimeTimeZone `json:"reminderDateTime"`
IsReminderOn OptBool `json:"isReminderOn"`
}
// GetTitle returns the value of Title.
func (s *UpdateTaskReq) GetTitle() OptString {
return s.Title
}
// GetBody returns the value of Body.
func (s *UpdateTaskReq) GetBody() OptItemBody {
return s.Body
}
// GetImportance returns the value of Importance.
func (s *UpdateTaskReq) GetImportance() OptString {
return s.Importance
}
// GetStatus returns the value of Status.
func (s *UpdateTaskReq) GetStatus() OptString {
return s.Status
}
// GetDueDateTime returns the value of DueDateTime.
func (s *UpdateTaskReq) GetDueDateTime() OptDateTimeTimeZone {
return s.DueDateTime
}
// GetReminderDateTime returns the value of ReminderDateTime.
func (s *UpdateTaskReq) GetReminderDateTime() OptDateTimeTimeZone {
return s.ReminderDateTime
}
// GetIsReminderOn returns the value of IsReminderOn.
func (s *UpdateTaskReq) GetIsReminderOn() OptBool {
return s.IsReminderOn
}
// SetTitle sets the value of Title.
func (s *UpdateTaskReq) SetTitle(val OptString) {
s.Title = val
}
// SetBody sets the value of Body.
func (s *UpdateTaskReq) SetBody(val OptItemBody) {
s.Body = val
}
// SetImportance sets the value of Importance.
func (s *UpdateTaskReq) SetImportance(val OptString) {
s.Importance = val
}
// SetStatus sets the value of Status.
func (s *UpdateTaskReq) SetStatus(val OptString) {
s.Status = val
}
// SetDueDateTime sets the value of DueDateTime.
func (s *UpdateTaskReq) SetDueDateTime(val OptDateTimeTimeZone) {
s.DueDateTime = val
}
// SetReminderDateTime sets the value of ReminderDateTime.
func (s *UpdateTaskReq) SetReminderDateTime(val OptDateTimeTimeZone) {
s.ReminderDateTime = val
}
// SetIsReminderOn sets the value of IsReminderOn.
func (s *UpdateTaskReq) SetIsReminderOn(val OptBool) {
s.IsReminderOn = val
}