// 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
}
// DeleteTaskNoContent is response for DeleteTask operation.
type DeleteTaskNoContent struct{}
// 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
}
// 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
}
// 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/Task
type Task struct {
ID OptString `json:"id"`
Title OptNilString `json:"title"`
Notes OptNilString `json:"notes"`
// 'needsAction' or 'completed'.
Status OptNilString `json:"status"`
// Due date (RFC3339).
Due OptNilString `json:"due"`
// Completion date (RFC3339).
Completed OptNilString `json:"completed"`
Parent OptNilString `json:"parent"`
Position OptNilString `json:"position"`
Updated OptNilString `json:"updated"`
SelfLink OptNilString `json:"selfLink"`
Kind OptNilString `json:"kind"`
}
// GetID returns the value of ID.
func (s *Task) GetID() OptString {
return s.ID
}
// GetTitle returns the value of Title.
func (s *Task) GetTitle() OptNilString {
return s.Title
}
// GetNotes returns the value of Notes.
func (s *Task) GetNotes() OptNilString {
return s.Notes
}
// GetStatus returns the value of Status.
func (s *Task) GetStatus() OptNilString {
return s.Status
}
// GetDue returns the value of Due.
func (s *Task) GetDue() OptNilString {
return s.Due
}
// GetCompleted returns the value of Completed.
func (s *Task) GetCompleted() OptNilString {
return s.Completed
}
// GetParent returns the value of Parent.
func (s *Task) GetParent() OptNilString {
return s.Parent
}
// GetPosition returns the value of Position.
func (s *Task) GetPosition() OptNilString {
return s.Position
}
// GetUpdated returns the value of Updated.
func (s *Task) GetUpdated() OptNilString {
return s.Updated
}
// GetSelfLink returns the value of SelfLink.
func (s *Task) GetSelfLink() OptNilString {
return s.SelfLink
}
// GetKind returns the value of Kind.
func (s *Task) GetKind() OptNilString {
return s.Kind
}
// SetID sets the value of ID.
func (s *Task) SetID(val OptString) {
s.ID = val
}
// SetTitle sets the value of Title.
func (s *Task) SetTitle(val OptNilString) {
s.Title = val
}
// SetNotes sets the value of Notes.
func (s *Task) SetNotes(val OptNilString) {
s.Notes = val
}
// SetStatus sets the value of Status.
func (s *Task) SetStatus(val OptNilString) {
s.Status = val
}
// SetDue sets the value of Due.
func (s *Task) SetDue(val OptNilString) {
s.Due = val
}
// SetCompleted sets the value of Completed.
func (s *Task) SetCompleted(val OptNilString) {
s.Completed = val
}
// SetParent sets the value of Parent.
func (s *Task) SetParent(val OptNilString) {
s.Parent = val
}
// SetPosition sets the value of Position.
func (s *Task) SetPosition(val OptNilString) {
s.Position = val
}
// SetUpdated sets the value of Updated.
func (s *Task) SetUpdated(val OptNilString) {
s.Updated = val
}
// SetSelfLink sets the value of SelfLink.
func (s *Task) SetSelfLink(val OptNilString) {
s.SelfLink = val
}
// SetKind sets the value of Kind.
func (s *Task) SetKind(val OptNilString) {
s.Kind = val
}
// Ref: #/components/schemas/TaskList
type TaskList struct {
ID OptString `json:"id"`
Title OptNilString `json:"title"`
Updated OptNilString `json:"updated"`
SelfLink OptNilString `json:"selfLink"`
Kind OptNilString `json:"kind"`
}
// GetID returns the value of ID.
func (s *TaskList) GetID() OptString {
return s.ID
}
// GetTitle returns the value of Title.
func (s *TaskList) GetTitle() OptNilString {
return s.Title
}
// GetUpdated returns the value of Updated.
func (s *TaskList) GetUpdated() OptNilString {
return s.Updated
}
// GetSelfLink returns the value of SelfLink.
func (s *TaskList) GetSelfLink() OptNilString {
return s.SelfLink
}
// GetKind returns the value of Kind.
func (s *TaskList) GetKind() OptNilString {
return s.Kind
}
// SetID sets the value of ID.
func (s *TaskList) SetID(val OptString) {
s.ID = val
}
// SetTitle sets the value of Title.
func (s *TaskList) SetTitle(val OptNilString) {
s.Title = val
}
// SetUpdated sets the value of Updated.
func (s *TaskList) SetUpdated(val OptNilString) {
s.Updated = val
}
// SetSelfLink sets the value of SelfLink.
func (s *TaskList) SetSelfLink(val OptNilString) {
s.SelfLink = val
}
// SetKind sets the value of Kind.
func (s *TaskList) SetKind(val OptNilString) {
s.Kind = val
}
// Ref: #/components/schemas/TaskListsResponse
type TaskListsResponse struct {
Kind OptString `json:"kind"`
Items []TaskList `json:"items"`
}
// GetKind returns the value of Kind.
func (s *TaskListsResponse) GetKind() OptString {
return s.Kind
}
// GetItems returns the value of Items.
func (s *TaskListsResponse) GetItems() []TaskList {
return s.Items
}
// SetKind sets the value of Kind.
func (s *TaskListsResponse) SetKind(val OptString) {
s.Kind = val
}
// SetItems sets the value of Items.
func (s *TaskListsResponse) SetItems(val []TaskList) {
s.Items = val
}
// Ref: #/components/schemas/TaskRequest
type TaskRequest struct {
Title OptNilString `json:"title"`
Notes OptNilString `json:"notes"`
Status OptNilString `json:"status"`
Due OptNilString `json:"due"`
Completed OptNilString `json:"completed"`
}
// GetTitle returns the value of Title.
func (s *TaskRequest) GetTitle() OptNilString {
return s.Title
}
// GetNotes returns the value of Notes.
func (s *TaskRequest) GetNotes() OptNilString {
return s.Notes
}
// GetStatus returns the value of Status.
func (s *TaskRequest) GetStatus() OptNilString {
return s.Status
}
// GetDue returns the value of Due.
func (s *TaskRequest) GetDue() OptNilString {
return s.Due
}
// GetCompleted returns the value of Completed.
func (s *TaskRequest) GetCompleted() OptNilString {
return s.Completed
}
// SetTitle sets the value of Title.
func (s *TaskRequest) SetTitle(val OptNilString) {
s.Title = val
}
// SetNotes sets the value of Notes.
func (s *TaskRequest) SetNotes(val OptNilString) {
s.Notes = val
}
// SetStatus sets the value of Status.
func (s *TaskRequest) SetStatus(val OptNilString) {
s.Status = val
}
// SetDue sets the value of Due.
func (s *TaskRequest) SetDue(val OptNilString) {
s.Due = val
}
// SetCompleted sets the value of Completed.
func (s *TaskRequest) SetCompleted(val OptNilString) {
s.Completed = val
}
// Ref: #/components/schemas/TasksResponse
type TasksResponse struct {
Kind OptString `json:"kind"`
Items []Task `json:"items"`
NextPageToken OptNilString `json:"nextPageToken"`
}
// GetKind returns the value of Kind.
func (s *TasksResponse) GetKind() OptString {
return s.Kind
}
// GetItems returns the value of Items.
func (s *TasksResponse) GetItems() []Task {
return s.Items
}
// GetNextPageToken returns the value of NextPageToken.
func (s *TasksResponse) GetNextPageToken() OptNilString {
return s.NextPageToken
}
// SetKind sets the value of Kind.
func (s *TasksResponse) SetKind(val OptString) {
s.Kind = val
}
// SetItems sets the value of Items.
func (s *TasksResponse) SetItems(val []Task) {
s.Items = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *TasksResponse) SetNextPageToken(val OptNilString) {
s.NextPageToken = val
}