// Code generated by ogen, DO NOT EDIT.
package gen
type ApiKey struct {
APIKey string
Roles []string
}
// GetAPIKey returns the value of APIKey.
func (s *ApiKey) GetAPIKey() string {
return s.APIKey
}
// GetRoles returns the value of Roles.
func (s *ApiKey) GetRoles() []string {
return s.Roles
}
// SetAPIKey sets the value of APIKey.
func (s *ApiKey) SetAPIKey(val string) {
s.APIKey = val
}
// SetRoles sets the value of Roles.
func (s *ApiKey) SetRoles(val []string) {
s.Roles = val
}
type ApiToken struct {
APIKey string
Roles []string
}
// GetAPIKey returns the value of APIKey.
func (s *ApiToken) GetAPIKey() string {
return s.APIKey
}
// GetRoles returns the value of Roles.
func (s *ApiToken) GetRoles() []string {
return s.Roles
}
// SetAPIKey sets the value of APIKey.
func (s *ApiToken) SetAPIKey(val string) {
s.APIKey = val
}
// SetRoles sets the value of Roles.
func (s *ApiToken) SetRoles(val []string) {
s.Roles = val
}
// Ref: #/components/schemas/Board
type Board struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Desc OptString `json:"desc"`
URL OptString `json:"url"`
Closed OptBool `json:"closed"`
}
// GetID returns the value of ID.
func (s *Board) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *Board) GetName() OptString {
return s.Name
}
// GetDesc returns the value of Desc.
func (s *Board) GetDesc() OptString {
return s.Desc
}
// GetURL returns the value of URL.
func (s *Board) GetURL() OptString {
return s.URL
}
// GetClosed returns the value of Closed.
func (s *Board) GetClosed() OptBool {
return s.Closed
}
// SetID sets the value of ID.
func (s *Board) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *Board) SetName(val OptString) {
s.Name = val
}
// SetDesc sets the value of Desc.
func (s *Board) SetDesc(val OptString) {
s.Desc = val
}
// SetURL sets the value of URL.
func (s *Board) SetURL(val OptString) {
s.URL = val
}
// SetClosed sets the value of Closed.
func (s *Board) SetClosed(val OptBool) {
s.Closed = val
}
// Ref: #/components/schemas/Card
type Card struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Desc OptString `json:"desc"`
Due OptNilString `json:"due"`
Closed OptBool `json:"closed"`
Pos OptFloat64 `json:"pos"`
Labels []Label `json:"labels"`
IdList OptString `json:"idList"`
IdBoard OptString `json:"idBoard"`
Checklists []Checklist `json:"checklists"`
}
// GetID returns the value of ID.
func (s *Card) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *Card) GetName() OptString {
return s.Name
}
// GetDesc returns the value of Desc.
func (s *Card) GetDesc() OptString {
return s.Desc
}
// GetDue returns the value of Due.
func (s *Card) GetDue() OptNilString {
return s.Due
}
// GetClosed returns the value of Closed.
func (s *Card) GetClosed() OptBool {
return s.Closed
}
// GetPos returns the value of Pos.
func (s *Card) GetPos() OptFloat64 {
return s.Pos
}
// GetLabels returns the value of Labels.
func (s *Card) GetLabels() []Label {
return s.Labels
}
// GetIdList returns the value of IdList.
func (s *Card) GetIdList() OptString {
return s.IdList
}
// GetIdBoard returns the value of IdBoard.
func (s *Card) GetIdBoard() OptString {
return s.IdBoard
}
// GetChecklists returns the value of Checklists.
func (s *Card) GetChecklists() []Checklist {
return s.Checklists
}
// SetID sets the value of ID.
func (s *Card) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *Card) SetName(val OptString) {
s.Name = val
}
// SetDesc sets the value of Desc.
func (s *Card) SetDesc(val OptString) {
s.Desc = val
}
// SetDue sets the value of Due.
func (s *Card) SetDue(val OptNilString) {
s.Due = val
}
// SetClosed sets the value of Closed.
func (s *Card) SetClosed(val OptBool) {
s.Closed = val
}
// SetPos sets the value of Pos.
func (s *Card) SetPos(val OptFloat64) {
s.Pos = val
}
// SetLabels sets the value of Labels.
func (s *Card) SetLabels(val []Label) {
s.Labels = val
}
// SetIdList sets the value of IdList.
func (s *Card) SetIdList(val OptString) {
s.IdList = val
}
// SetIdBoard sets the value of IdBoard.
func (s *Card) SetIdBoard(val OptString) {
s.IdBoard = val
}
// SetChecklists sets the value of Checklists.
func (s *Card) SetChecklists(val []Checklist) {
s.Checklists = val
}
// Ref: #/components/schemas/CheckItem
type CheckItem struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
State OptString `json:"state"`
Pos OptFloat64 `json:"pos"`
}
// GetID returns the value of ID.
func (s *CheckItem) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *CheckItem) GetName() OptString {
return s.Name
}
// GetState returns the value of State.
func (s *CheckItem) GetState() OptString {
return s.State
}
// GetPos returns the value of Pos.
func (s *CheckItem) GetPos() OptFloat64 {
return s.Pos
}
// SetID sets the value of ID.
func (s *CheckItem) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *CheckItem) SetName(val OptString) {
s.Name = val
}
// SetState sets the value of State.
func (s *CheckItem) SetState(val OptString) {
s.State = val
}
// SetPos sets the value of Pos.
func (s *CheckItem) SetPos(val OptFloat64) {
s.Pos = val
}
// Ref: #/components/schemas/Checklist
type Checklist struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Pos OptFloat64 `json:"pos"`
IdCard OptString `json:"idCard"`
CheckItems []CheckItem `json:"checkItems"`
}
// GetID returns the value of ID.
func (s *Checklist) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *Checklist) GetName() OptString {
return s.Name
}
// GetPos returns the value of Pos.
func (s *Checklist) GetPos() OptFloat64 {
return s.Pos
}
// GetIdCard returns the value of IdCard.
func (s *Checklist) GetIdCard() OptString {
return s.IdCard
}
// GetCheckItems returns the value of CheckItems.
func (s *Checklist) GetCheckItems() []CheckItem {
return s.CheckItems
}
// SetID sets the value of ID.
func (s *Checklist) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *Checklist) SetName(val OptString) {
s.Name = val
}
// SetPos sets the value of Pos.
func (s *Checklist) SetPos(val OptFloat64) {
s.Pos = val
}
// SetIdCard sets the value of IdCard.
func (s *Checklist) SetIdCard(val OptString) {
s.IdCard = val
}
// SetCheckItems sets the value of CheckItems.
func (s *Checklist) SetCheckItems(val []CheckItem) {
s.CheckItems = val
}
// DeleteCardOK is response for DeleteCard operation.
type DeleteCardOK struct{}
// DeleteChecklistItemOK is response for DeleteChecklistItem operation.
type DeleteChecklistItemOK struct{}
// DeleteChecklistOK is response for DeleteChecklist operation.
type DeleteChecklistOK struct{}
// Ref: #/components/schemas/Label
type Label struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Color OptString `json:"color"`
}
// GetID returns the value of ID.
func (s *Label) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *Label) GetName() OptString {
return s.Name
}
// GetColor returns the value of Color.
func (s *Label) GetColor() OptString {
return s.Color
}
// SetID sets the value of ID.
func (s *Label) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *Label) SetName(val OptString) {
s.Name = val
}
// SetColor sets the value of Color.
func (s *Label) SetColor(val OptString) {
s.Color = 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
}
// NewOptFloat64 returns new OptFloat64 with value set to v.
func NewOptFloat64(v float64) OptFloat64 {
return OptFloat64{
Value: v,
Set: true,
}
}
// OptFloat64 is optional float64.
type OptFloat64 struct {
Value float64
Set bool
}
// IsSet returns true if OptFloat64 was set.
func (o OptFloat64) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptFloat64) Reset() {
var v float64
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptFloat64) SetTo(v float64) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptFloat64) Get() (v float64, 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 OptFloat64) Or(d float64) float64 {
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/TrelloList
type TrelloList struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Closed OptBool `json:"closed"`
Pos OptFloat64 `json:"pos"`
}
// GetID returns the value of ID.
func (s *TrelloList) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *TrelloList) GetName() OptString {
return s.Name
}
// GetClosed returns the value of Closed.
func (s *TrelloList) GetClosed() OptBool {
return s.Closed
}
// GetPos returns the value of Pos.
func (s *TrelloList) GetPos() OptFloat64 {
return s.Pos
}
// SetID sets the value of ID.
func (s *TrelloList) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *TrelloList) SetName(val OptString) {
s.Name = val
}
// SetClosed sets the value of Closed.
func (s *TrelloList) SetClosed(val OptBool) {
s.Closed = val
}
// SetPos sets the value of Pos.
func (s *TrelloList) SetPos(val OptFloat64) {
s.Pos = val
}