We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shibaleo/mcpist'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
// Code generated by ogen, DO NOT EDIT.
package gen
import (
"github.com/go-faster/jx"
)
// Ref: #/components/schemas/AddTaskToSectionRequest
type AddTaskToSectionRequest struct {
Data AddTaskToSectionRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *AddTaskToSectionRequest) GetData() AddTaskToSectionRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *AddTaskToSectionRequest) SetData(val AddTaskToSectionRequestData) {
s.Data = val
}
// Ref: #/components/schemas/AddTaskToSectionRequestData
type AddTaskToSectionRequestData struct {
Task OptString `json:"task"`
}
// GetTask returns the value of Task.
func (s *AddTaskToSectionRequestData) GetTask() OptString {
return s.Task
}
// SetTask sets the value of Task.
func (s *AddTaskToSectionRequestData) SetTask(val OptString) {
s.Task = val
}
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/CreateProjectRequest
type CreateProjectRequest struct {
Data CreateProjectRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *CreateProjectRequest) GetData() CreateProjectRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *CreateProjectRequest) SetData(val CreateProjectRequestData) {
s.Data = val
}
// Ref: #/components/schemas/CreateProjectRequestData
type CreateProjectRequestData struct {
Name OptString `json:"name"`
Workspace OptString `json:"workspace"`
Team OptString `json:"team"`
Notes OptString `json:"notes"`
Color OptString `json:"color"`
DefaultView OptString `json:"default_view"`
DueOn OptString `json:"due_on"`
}
// GetName returns the value of Name.
func (s *CreateProjectRequestData) GetName() OptString {
return s.Name
}
// GetWorkspace returns the value of Workspace.
func (s *CreateProjectRequestData) GetWorkspace() OptString {
return s.Workspace
}
// GetTeam returns the value of Team.
func (s *CreateProjectRequestData) GetTeam() OptString {
return s.Team
}
// GetNotes returns the value of Notes.
func (s *CreateProjectRequestData) GetNotes() OptString {
return s.Notes
}
// GetColor returns the value of Color.
func (s *CreateProjectRequestData) GetColor() OptString {
return s.Color
}
// GetDefaultView returns the value of DefaultView.
func (s *CreateProjectRequestData) GetDefaultView() OptString {
return s.DefaultView
}
// GetDueOn returns the value of DueOn.
func (s *CreateProjectRequestData) GetDueOn() OptString {
return s.DueOn
}
// SetName sets the value of Name.
func (s *CreateProjectRequestData) SetName(val OptString) {
s.Name = val
}
// SetWorkspace sets the value of Workspace.
func (s *CreateProjectRequestData) SetWorkspace(val OptString) {
s.Workspace = val
}
// SetTeam sets the value of Team.
func (s *CreateProjectRequestData) SetTeam(val OptString) {
s.Team = val
}
// SetNotes sets the value of Notes.
func (s *CreateProjectRequestData) SetNotes(val OptString) {
s.Notes = val
}
// SetColor sets the value of Color.
func (s *CreateProjectRequestData) SetColor(val OptString) {
s.Color = val
}
// SetDefaultView sets the value of DefaultView.
func (s *CreateProjectRequestData) SetDefaultView(val OptString) {
s.DefaultView = val
}
// SetDueOn sets the value of DueOn.
func (s *CreateProjectRequestData) SetDueOn(val OptString) {
s.DueOn = val
}
// Ref: #/components/schemas/CreateSectionRequest
type CreateSectionRequest struct {
Data CreateSectionRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *CreateSectionRequest) GetData() CreateSectionRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *CreateSectionRequest) SetData(val CreateSectionRequestData) {
s.Data = val
}
// Ref: #/components/schemas/CreateSectionRequestData
type CreateSectionRequestData struct {
Name OptString `json:"name"`
}
// GetName returns the value of Name.
func (s *CreateSectionRequestData) GetName() OptString {
return s.Name
}
// SetName sets the value of Name.
func (s *CreateSectionRequestData) SetName(val OptString) {
s.Name = val
}
// Ref: #/components/schemas/CreateStoryRequest
type CreateStoryRequest struct {
Data CreateStoryRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *CreateStoryRequest) GetData() CreateStoryRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *CreateStoryRequest) SetData(val CreateStoryRequestData) {
s.Data = val
}
// Ref: #/components/schemas/CreateStoryRequestData
type CreateStoryRequestData struct {
Text OptString `json:"text"`
}
// GetText returns the value of Text.
func (s *CreateStoryRequestData) GetText() OptString {
return s.Text
}
// SetText sets the value of Text.
func (s *CreateStoryRequestData) SetText(val OptString) {
s.Text = val
}
// Ref: #/components/schemas/CreateSubtaskRequest
type CreateSubtaskRequest struct {
Data CreateSubtaskRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *CreateSubtaskRequest) GetData() CreateSubtaskRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *CreateSubtaskRequest) SetData(val CreateSubtaskRequestData) {
s.Data = val
}
// Ref: #/components/schemas/CreateSubtaskRequestData
type CreateSubtaskRequestData struct {
Name OptString `json:"name"`
Notes OptString `json:"notes"`
DueOn OptString `json:"due_on"`
Assignee OptString `json:"assignee"`
}
// GetName returns the value of Name.
func (s *CreateSubtaskRequestData) GetName() OptString {
return s.Name
}
// GetNotes returns the value of Notes.
func (s *CreateSubtaskRequestData) GetNotes() OptString {
return s.Notes
}
// GetDueOn returns the value of DueOn.
func (s *CreateSubtaskRequestData) GetDueOn() OptString {
return s.DueOn
}
// GetAssignee returns the value of Assignee.
func (s *CreateSubtaskRequestData) GetAssignee() OptString {
return s.Assignee
}
// SetName sets the value of Name.
func (s *CreateSubtaskRequestData) SetName(val OptString) {
s.Name = val
}
// SetNotes sets the value of Notes.
func (s *CreateSubtaskRequestData) SetNotes(val OptString) {
s.Notes = val
}
// SetDueOn sets the value of DueOn.
func (s *CreateSubtaskRequestData) SetDueOn(val OptString) {
s.DueOn = val
}
// SetAssignee sets the value of Assignee.
func (s *CreateSubtaskRequestData) SetAssignee(val OptString) {
s.Assignee = val
}
// Ref: #/components/schemas/CreateTagRequest
type CreateTagRequest struct {
Data CreateTagRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *CreateTagRequest) GetData() CreateTagRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *CreateTagRequest) SetData(val CreateTagRequestData) {
s.Data = val
}
// Ref: #/components/schemas/CreateTagRequestData
type CreateTagRequestData struct {
Name OptString `json:"name"`
Workspace OptString `json:"workspace"`
Color OptString `json:"color"`
}
// GetName returns the value of Name.
func (s *CreateTagRequestData) GetName() OptString {
return s.Name
}
// GetWorkspace returns the value of Workspace.
func (s *CreateTagRequestData) GetWorkspace() OptString {
return s.Workspace
}
// GetColor returns the value of Color.
func (s *CreateTagRequestData) GetColor() OptString {
return s.Color
}
// SetName sets the value of Name.
func (s *CreateTagRequestData) SetName(val OptString) {
s.Name = val
}
// SetWorkspace sets the value of Workspace.
func (s *CreateTagRequestData) SetWorkspace(val OptString) {
s.Workspace = val
}
// SetColor sets the value of Color.
func (s *CreateTagRequestData) SetColor(val OptString) {
s.Color = val
}
// Ref: #/components/schemas/CreateTaskRequest
type CreateTaskRequest struct {
Data CreateTaskRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *CreateTaskRequest) GetData() CreateTaskRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *CreateTaskRequest) SetData(val CreateTaskRequestData) {
s.Data = val
}
// Ref: #/components/schemas/CreateTaskRequestData
type CreateTaskRequestData struct {
Name OptString `json:"name"`
Workspace OptString `json:"workspace"`
Projects []string `json:"projects"`
Notes OptString `json:"notes"`
HTMLNotes OptString `json:"html_notes"`
DueOn OptString `json:"due_on"`
DueAt OptString `json:"due_at"`
StartOn OptString `json:"start_on"`
Assignee OptString `json:"assignee"`
Parent OptString `json:"parent"`
Tags []string `json:"tags"`
}
// GetName returns the value of Name.
func (s *CreateTaskRequestData) GetName() OptString {
return s.Name
}
// GetWorkspace returns the value of Workspace.
func (s *CreateTaskRequestData) GetWorkspace() OptString {
return s.Workspace
}
// GetProjects returns the value of Projects.
func (s *CreateTaskRequestData) GetProjects() []string {
return s.Projects
}
// GetNotes returns the value of Notes.
func (s *CreateTaskRequestData) GetNotes() OptString {
return s.Notes
}
// GetHTMLNotes returns the value of HTMLNotes.
func (s *CreateTaskRequestData) GetHTMLNotes() OptString {
return s.HTMLNotes
}
// GetDueOn returns the value of DueOn.
func (s *CreateTaskRequestData) GetDueOn() OptString {
return s.DueOn
}
// GetDueAt returns the value of DueAt.
func (s *CreateTaskRequestData) GetDueAt() OptString {
return s.DueAt
}
// GetStartOn returns the value of StartOn.
func (s *CreateTaskRequestData) GetStartOn() OptString {
return s.StartOn
}
// GetAssignee returns the value of Assignee.
func (s *CreateTaskRequestData) GetAssignee() OptString {
return s.Assignee
}
// GetParent returns the value of Parent.
func (s *CreateTaskRequestData) GetParent() OptString {
return s.Parent
}
// GetTags returns the value of Tags.
func (s *CreateTaskRequestData) GetTags() []string {
return s.Tags
}
// SetName sets the value of Name.
func (s *CreateTaskRequestData) SetName(val OptString) {
s.Name = val
}
// SetWorkspace sets the value of Workspace.
func (s *CreateTaskRequestData) SetWorkspace(val OptString) {
s.Workspace = val
}
// SetProjects sets the value of Projects.
func (s *CreateTaskRequestData) SetProjects(val []string) {
s.Projects = val
}
// SetNotes sets the value of Notes.
func (s *CreateTaskRequestData) SetNotes(val OptString) {
s.Notes = val
}
// SetHTMLNotes sets the value of HTMLNotes.
func (s *CreateTaskRequestData) SetHTMLNotes(val OptString) {
s.HTMLNotes = val
}
// SetDueOn sets the value of DueOn.
func (s *CreateTaskRequestData) SetDueOn(val OptString) {
s.DueOn = val
}
// SetDueAt sets the value of DueAt.
func (s *CreateTaskRequestData) SetDueAt(val OptString) {
s.DueAt = val
}
// SetStartOn sets the value of StartOn.
func (s *CreateTaskRequestData) SetStartOn(val OptString) {
s.StartOn = val
}
// SetAssignee sets the value of Assignee.
func (s *CreateTaskRequestData) SetAssignee(val OptString) {
s.Assignee = val
}
// SetParent sets the value of Parent.
func (s *CreateTaskRequestData) SetParent(val OptString) {
s.Parent = val
}
// SetTags sets the value of Tags.
func (s *CreateTaskRequestData) SetTags(val []string) {
s.Tags = val
}
// Ref: #/components/schemas/EmptyDataResponse
type EmptyDataResponse struct {
Data jx.Raw `json:"data"`
}
// GetData returns the value of Data.
func (s *EmptyDataResponse) GetData() jx.Raw {
return s.Data
}
// SetData sets the value of Data.
func (s *EmptyDataResponse) SetData(val jx.Raw) {
s.Data = 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
}
// 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
}
// NewOptNilTaskAssignee returns new OptNilTaskAssignee with value set to v.
func NewOptNilTaskAssignee(v TaskAssignee) OptNilTaskAssignee {
return OptNilTaskAssignee{
Value: v,
Set: true,
}
}
// OptNilTaskAssignee is optional nullable TaskAssignee.
type OptNilTaskAssignee struct {
Value TaskAssignee
Set bool
Null bool
}
// IsSet returns true if OptNilTaskAssignee was set.
func (o OptNilTaskAssignee) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilTaskAssignee) Reset() {
var v TaskAssignee
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilTaskAssignee) SetTo(v TaskAssignee) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilTaskAssignee) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilTaskAssignee) SetToNull() {
o.Set = true
o.Null = true
var v TaskAssignee
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilTaskAssignee) Get() (v TaskAssignee, 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 OptNilTaskAssignee) Or(d TaskAssignee) TaskAssignee {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilTaskParent returns new OptNilTaskParent with value set to v.
func NewOptNilTaskParent(v TaskParent) OptNilTaskParent {
return OptNilTaskParent{
Value: v,
Set: true,
}
}
// OptNilTaskParent is optional nullable TaskParent.
type OptNilTaskParent struct {
Value TaskParent
Set bool
Null bool
}
// IsSet returns true if OptNilTaskParent was set.
func (o OptNilTaskParent) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilTaskParent) Reset() {
var v TaskParent
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilTaskParent) SetTo(v TaskParent) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilTaskParent) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilTaskParent) SetToNull() {
o.Set = true
o.Null = true
var v TaskParent
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilTaskParent) Get() (v TaskParent, 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 OptNilTaskParent) Or(d TaskParent) TaskParent {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptProject returns new OptProject with value set to v.
func NewOptProject(v Project) OptProject {
return OptProject{
Value: v,
Set: true,
}
}
// OptProject is optional Project.
type OptProject struct {
Value Project
Set bool
}
// IsSet returns true if OptProject was set.
func (o OptProject) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptProject) Reset() {
var v Project
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptProject) SetTo(v Project) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptProject) Get() (v Project, 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 OptProject) Or(d Project) Project {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptProjectTeam returns new OptProjectTeam with value set to v.
func NewOptProjectTeam(v ProjectTeam) OptProjectTeam {
return OptProjectTeam{
Value: v,
Set: true,
}
}
// OptProjectTeam is optional ProjectTeam.
type OptProjectTeam struct {
Value ProjectTeam
Set bool
}
// IsSet returns true if OptProjectTeam was set.
func (o OptProjectTeam) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptProjectTeam) Reset() {
var v ProjectTeam
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptProjectTeam) SetTo(v ProjectTeam) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptProjectTeam) Get() (v ProjectTeam, 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 OptProjectTeam) Or(d ProjectTeam) ProjectTeam {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptProjectWorkspace returns new OptProjectWorkspace with value set to v.
func NewOptProjectWorkspace(v ProjectWorkspace) OptProjectWorkspace {
return OptProjectWorkspace{
Value: v,
Set: true,
}
}
// OptProjectWorkspace is optional ProjectWorkspace.
type OptProjectWorkspace struct {
Value ProjectWorkspace
Set bool
}
// IsSet returns true if OptProjectWorkspace was set.
func (o OptProjectWorkspace) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptProjectWorkspace) Reset() {
var v ProjectWorkspace
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptProjectWorkspace) SetTo(v ProjectWorkspace) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptProjectWorkspace) Get() (v ProjectWorkspace, 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 OptProjectWorkspace) Or(d ProjectWorkspace) ProjectWorkspace {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptSection returns new OptSection with value set to v.
func NewOptSection(v Section) OptSection {
return OptSection{
Value: v,
Set: true,
}
}
// OptSection is optional Section.
type OptSection struct {
Value Section
Set bool
}
// IsSet returns true if OptSection was set.
func (o OptSection) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptSection) Reset() {
var v Section
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptSection) SetTo(v Section) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptSection) Get() (v Section, 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 OptSection) Or(d Section) Section {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptStory returns new OptStory with value set to v.
func NewOptStory(v Story) OptStory {
return OptStory{
Value: v,
Set: true,
}
}
// OptStory is optional Story.
type OptStory struct {
Value Story
Set bool
}
// IsSet returns true if OptStory was set.
func (o OptStory) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptStory) Reset() {
var v Story
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptStory) SetTo(v Story) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptStory) Get() (v Story, 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 OptStory) Or(d Story) Story {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptStoryCreatedBy returns new OptStoryCreatedBy with value set to v.
func NewOptStoryCreatedBy(v StoryCreatedBy) OptStoryCreatedBy {
return OptStoryCreatedBy{
Value: v,
Set: true,
}
}
// OptStoryCreatedBy is optional StoryCreatedBy.
type OptStoryCreatedBy struct {
Value StoryCreatedBy
Set bool
}
// IsSet returns true if OptStoryCreatedBy was set.
func (o OptStoryCreatedBy) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptStoryCreatedBy) Reset() {
var v StoryCreatedBy
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptStoryCreatedBy) SetTo(v StoryCreatedBy) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptStoryCreatedBy) Get() (v StoryCreatedBy, 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 OptStoryCreatedBy) Or(d StoryCreatedBy) StoryCreatedBy {
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
}
// NewOptTag returns new OptTag with value set to v.
func NewOptTag(v Tag) OptTag {
return OptTag{
Value: v,
Set: true,
}
}
// OptTag is optional Tag.
type OptTag struct {
Value Tag
Set bool
}
// IsSet returns true if OptTag was set.
func (o OptTag) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptTag) Reset() {
var v Tag
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptTag) SetTo(v Tag) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptTag) Get() (v Tag, 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 OptTag) Or(d Tag) Tag {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptTask returns new OptTask with value set to v.
func NewOptTask(v Task) OptTask {
return OptTask{
Value: v,
Set: true,
}
}
// OptTask is optional Task.
type OptTask struct {
Value Task
Set bool
}
// IsSet returns true if OptTask was set.
func (o OptTask) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptTask) Reset() {
var v Task
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptTask) SetTo(v Task) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptTask) Get() (v Task, 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 OptTask) Or(d Task) Task {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptUser returns new OptUser with value set to v.
func NewOptUser(v User) OptUser {
return OptUser{
Value: v,
Set: true,
}
}
// OptUser is optional User.
type OptUser struct {
Value User
Set bool
}
// IsSet returns true if OptUser was set.
func (o OptUser) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptUser) Reset() {
var v User
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptUser) SetTo(v User) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptUser) Get() (v User, 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 OptUser) Or(d User) User {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptWorkspace returns new OptWorkspace with value set to v.
func NewOptWorkspace(v Workspace) OptWorkspace {
return OptWorkspace{
Value: v,
Set: true,
}
}
// OptWorkspace is optional Workspace.
type OptWorkspace struct {
Value Workspace
Set bool
}
// IsSet returns true if OptWorkspace was set.
func (o OptWorkspace) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptWorkspace) Reset() {
var v Workspace
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptWorkspace) SetTo(v Workspace) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptWorkspace) Get() (v Workspace, 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 OptWorkspace) Or(d Workspace) Workspace {
if v, ok := o.Get(); ok {
return v
}
return d
}
// Ref: #/components/schemas/Project
type Project struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
ResourceType OptString `json:"resource_type"`
Archived OptBool `json:"archived"`
Color OptNilString `json:"color"`
Notes OptString `json:"notes"`
DefaultView OptString `json:"default_view"`
DueOn OptNilString `json:"due_on"`
CreatedAt OptString `json:"created_at"`
ModifiedAt OptString `json:"modified_at"`
Workspace OptProjectWorkspace `json:"workspace"`
Team OptProjectTeam `json:"team"`
}
// GetGid returns the value of Gid.
func (s *Project) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *Project) GetName() OptString {
return s.Name
}
// GetResourceType returns the value of ResourceType.
func (s *Project) GetResourceType() OptString {
return s.ResourceType
}
// GetArchived returns the value of Archived.
func (s *Project) GetArchived() OptBool {
return s.Archived
}
// GetColor returns the value of Color.
func (s *Project) GetColor() OptNilString {
return s.Color
}
// GetNotes returns the value of Notes.
func (s *Project) GetNotes() OptString {
return s.Notes
}
// GetDefaultView returns the value of DefaultView.
func (s *Project) GetDefaultView() OptString {
return s.DefaultView
}
// GetDueOn returns the value of DueOn.
func (s *Project) GetDueOn() OptNilString {
return s.DueOn
}
// GetCreatedAt returns the value of CreatedAt.
func (s *Project) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetModifiedAt returns the value of ModifiedAt.
func (s *Project) GetModifiedAt() OptString {
return s.ModifiedAt
}
// GetWorkspace returns the value of Workspace.
func (s *Project) GetWorkspace() OptProjectWorkspace {
return s.Workspace
}
// GetTeam returns the value of Team.
func (s *Project) GetTeam() OptProjectTeam {
return s.Team
}
// SetGid sets the value of Gid.
func (s *Project) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *Project) SetName(val OptString) {
s.Name = val
}
// SetResourceType sets the value of ResourceType.
func (s *Project) SetResourceType(val OptString) {
s.ResourceType = val
}
// SetArchived sets the value of Archived.
func (s *Project) SetArchived(val OptBool) {
s.Archived = val
}
// SetColor sets the value of Color.
func (s *Project) SetColor(val OptNilString) {
s.Color = val
}
// SetNotes sets the value of Notes.
func (s *Project) SetNotes(val OptString) {
s.Notes = val
}
// SetDefaultView sets the value of DefaultView.
func (s *Project) SetDefaultView(val OptString) {
s.DefaultView = val
}
// SetDueOn sets the value of DueOn.
func (s *Project) SetDueOn(val OptNilString) {
s.DueOn = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *Project) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetModifiedAt sets the value of ModifiedAt.
func (s *Project) SetModifiedAt(val OptString) {
s.ModifiedAt = val
}
// SetWorkspace sets the value of Workspace.
func (s *Project) SetWorkspace(val OptProjectWorkspace) {
s.Workspace = val
}
// SetTeam sets the value of Team.
func (s *Project) SetTeam(val OptProjectTeam) {
s.Team = val
}
// Ref: #/components/schemas/ProjectListResponse
type ProjectListResponse struct {
Data []Project `json:"data"`
}
// GetData returns the value of Data.
func (s *ProjectListResponse) GetData() []Project {
return s.Data
}
// SetData sets the value of Data.
func (s *ProjectListResponse) SetData(val []Project) {
s.Data = val
}
// Ref: #/components/schemas/ProjectResponse
type ProjectResponse struct {
Data OptProject `json:"data"`
}
// GetData returns the value of Data.
func (s *ProjectResponse) GetData() OptProject {
return s.Data
}
// SetData sets the value of Data.
func (s *ProjectResponse) SetData(val OptProject) {
s.Data = val
}
type ProjectTeam struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
}
// GetGid returns the value of Gid.
func (s *ProjectTeam) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *ProjectTeam) GetName() OptString {
return s.Name
}
// SetGid sets the value of Gid.
func (s *ProjectTeam) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *ProjectTeam) SetName(val OptString) {
s.Name = val
}
type ProjectWorkspace struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
}
// GetGid returns the value of Gid.
func (s *ProjectWorkspace) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *ProjectWorkspace) GetName() OptString {
return s.Name
}
// SetGid sets the value of Gid.
func (s *ProjectWorkspace) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *ProjectWorkspace) SetName(val OptString) {
s.Name = val
}
// Ref: #/components/schemas/Section
type Section struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
ResourceType OptString `json:"resource_type"`
}
// GetGid returns the value of Gid.
func (s *Section) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *Section) GetName() OptString {
return s.Name
}
// GetResourceType returns the value of ResourceType.
func (s *Section) GetResourceType() OptString {
return s.ResourceType
}
// SetGid sets the value of Gid.
func (s *Section) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *Section) SetName(val OptString) {
s.Name = val
}
// SetResourceType sets the value of ResourceType.
func (s *Section) SetResourceType(val OptString) {
s.ResourceType = val
}
// Ref: #/components/schemas/SectionListResponse
type SectionListResponse struct {
Data []Section `json:"data"`
}
// GetData returns the value of Data.
func (s *SectionListResponse) GetData() []Section {
return s.Data
}
// SetData sets the value of Data.
func (s *SectionListResponse) SetData(val []Section) {
s.Data = val
}
// Ref: #/components/schemas/SectionResponse
type SectionResponse struct {
Data OptSection `json:"data"`
}
// GetData returns the value of Data.
func (s *SectionResponse) GetData() OptSection {
return s.Data
}
// SetData sets the value of Data.
func (s *SectionResponse) SetData(val OptSection) {
s.Data = val
}
// Ref: #/components/schemas/Story
type Story struct {
Gid OptString `json:"gid"`
ResourceType OptString `json:"resource_type"`
Type OptString `json:"type"`
Text OptString `json:"text"`
CreatedAt OptString `json:"created_at"`
CreatedBy OptStoryCreatedBy `json:"created_by"`
}
// GetGid returns the value of Gid.
func (s *Story) GetGid() OptString {
return s.Gid
}
// GetResourceType returns the value of ResourceType.
func (s *Story) GetResourceType() OptString {
return s.ResourceType
}
// GetType returns the value of Type.
func (s *Story) GetType() OptString {
return s.Type
}
// GetText returns the value of Text.
func (s *Story) GetText() OptString {
return s.Text
}
// GetCreatedAt returns the value of CreatedAt.
func (s *Story) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetCreatedBy returns the value of CreatedBy.
func (s *Story) GetCreatedBy() OptStoryCreatedBy {
return s.CreatedBy
}
// SetGid sets the value of Gid.
func (s *Story) SetGid(val OptString) {
s.Gid = val
}
// SetResourceType sets the value of ResourceType.
func (s *Story) SetResourceType(val OptString) {
s.ResourceType = val
}
// SetType sets the value of Type.
func (s *Story) SetType(val OptString) {
s.Type = val
}
// SetText sets the value of Text.
func (s *Story) SetText(val OptString) {
s.Text = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *Story) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetCreatedBy sets the value of CreatedBy.
func (s *Story) SetCreatedBy(val OptStoryCreatedBy) {
s.CreatedBy = val
}
type StoryCreatedBy struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
}
// GetGid returns the value of Gid.
func (s *StoryCreatedBy) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *StoryCreatedBy) GetName() OptString {
return s.Name
}
// SetGid sets the value of Gid.
func (s *StoryCreatedBy) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *StoryCreatedBy) SetName(val OptString) {
s.Name = val
}
// Ref: #/components/schemas/StoryListResponse
type StoryListResponse struct {
Data []Story `json:"data"`
}
// GetData returns the value of Data.
func (s *StoryListResponse) GetData() []Story {
return s.Data
}
// SetData sets the value of Data.
func (s *StoryListResponse) SetData(val []Story) {
s.Data = val
}
// Ref: #/components/schemas/StoryResponse
type StoryResponse struct {
Data OptStory `json:"data"`
}
// GetData returns the value of Data.
func (s *StoryResponse) GetData() OptStory {
return s.Data
}
// SetData sets the value of Data.
func (s *StoryResponse) SetData(val OptStory) {
s.Data = val
}
// Ref: #/components/schemas/Tag
type Tag struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
ResourceType OptString `json:"resource_type"`
Color OptNilString `json:"color"`
}
// GetGid returns the value of Gid.
func (s *Tag) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *Tag) GetName() OptString {
return s.Name
}
// GetResourceType returns the value of ResourceType.
func (s *Tag) GetResourceType() OptString {
return s.ResourceType
}
// GetColor returns the value of Color.
func (s *Tag) GetColor() OptNilString {
return s.Color
}
// SetGid sets the value of Gid.
func (s *Tag) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *Tag) SetName(val OptString) {
s.Name = val
}
// SetResourceType sets the value of ResourceType.
func (s *Tag) SetResourceType(val OptString) {
s.ResourceType = val
}
// SetColor sets the value of Color.
func (s *Tag) SetColor(val OptNilString) {
s.Color = val
}
// Ref: #/components/schemas/TagListResponse
type TagListResponse struct {
Data []Tag `json:"data"`
}
// GetData returns the value of Data.
func (s *TagListResponse) GetData() []Tag {
return s.Data
}
// SetData sets the value of Data.
func (s *TagListResponse) SetData(val []Tag) {
s.Data = val
}
// Ref: #/components/schemas/TagResponse
type TagResponse struct {
Data OptTag `json:"data"`
}
// GetData returns the value of Data.
func (s *TagResponse) GetData() OptTag {
return s.Data
}
// SetData sets the value of Data.
func (s *TagResponse) SetData(val OptTag) {
s.Data = val
}
// Ref: #/components/schemas/Task
type Task struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
ResourceType OptString `json:"resource_type"`
Completed OptBool `json:"completed"`
Notes OptString `json:"notes"`
HTMLNotes OptString `json:"html_notes"`
DueOn OptNilString `json:"due_on"`
DueAt OptNilString `json:"due_at"`
StartOn OptNilString `json:"start_on"`
CompletedAt OptNilString `json:"completed_at"`
CreatedAt OptString `json:"created_at"`
ModifiedAt OptString `json:"modified_at"`
Assignee OptNilTaskAssignee `json:"assignee"`
Projects []TaskProjectsItem `json:"projects"`
Tags []TaskTagsItem `json:"tags"`
Parent OptNilTaskParent `json:"parent"`
}
// GetGid returns the value of Gid.
func (s *Task) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *Task) GetName() OptString {
return s.Name
}
// GetResourceType returns the value of ResourceType.
func (s *Task) GetResourceType() OptString {
return s.ResourceType
}
// GetCompleted returns the value of Completed.
func (s *Task) GetCompleted() OptBool {
return s.Completed
}
// GetNotes returns the value of Notes.
func (s *Task) GetNotes() OptString {
return s.Notes
}
// GetHTMLNotes returns the value of HTMLNotes.
func (s *Task) GetHTMLNotes() OptString {
return s.HTMLNotes
}
// GetDueOn returns the value of DueOn.
func (s *Task) GetDueOn() OptNilString {
return s.DueOn
}
// GetDueAt returns the value of DueAt.
func (s *Task) GetDueAt() OptNilString {
return s.DueAt
}
// GetStartOn returns the value of StartOn.
func (s *Task) GetStartOn() OptNilString {
return s.StartOn
}
// GetCompletedAt returns the value of CompletedAt.
func (s *Task) GetCompletedAt() OptNilString {
return s.CompletedAt
}
// GetCreatedAt returns the value of CreatedAt.
func (s *Task) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetModifiedAt returns the value of ModifiedAt.
func (s *Task) GetModifiedAt() OptString {
return s.ModifiedAt
}
// GetAssignee returns the value of Assignee.
func (s *Task) GetAssignee() OptNilTaskAssignee {
return s.Assignee
}
// GetProjects returns the value of Projects.
func (s *Task) GetProjects() []TaskProjectsItem {
return s.Projects
}
// GetTags returns the value of Tags.
func (s *Task) GetTags() []TaskTagsItem {
return s.Tags
}
// GetParent returns the value of Parent.
func (s *Task) GetParent() OptNilTaskParent {
return s.Parent
}
// SetGid sets the value of Gid.
func (s *Task) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *Task) SetName(val OptString) {
s.Name = val
}
// SetResourceType sets the value of ResourceType.
func (s *Task) SetResourceType(val OptString) {
s.ResourceType = val
}
// SetCompleted sets the value of Completed.
func (s *Task) SetCompleted(val OptBool) {
s.Completed = val
}
// SetNotes sets the value of Notes.
func (s *Task) SetNotes(val OptString) {
s.Notes = val
}
// SetHTMLNotes sets the value of HTMLNotes.
func (s *Task) SetHTMLNotes(val OptString) {
s.HTMLNotes = val
}
// SetDueOn sets the value of DueOn.
func (s *Task) SetDueOn(val OptNilString) {
s.DueOn = val
}
// SetDueAt sets the value of DueAt.
func (s *Task) SetDueAt(val OptNilString) {
s.DueAt = val
}
// SetStartOn sets the value of StartOn.
func (s *Task) SetStartOn(val OptNilString) {
s.StartOn = val
}
// SetCompletedAt sets the value of CompletedAt.
func (s *Task) SetCompletedAt(val OptNilString) {
s.CompletedAt = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *Task) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetModifiedAt sets the value of ModifiedAt.
func (s *Task) SetModifiedAt(val OptString) {
s.ModifiedAt = val
}
// SetAssignee sets the value of Assignee.
func (s *Task) SetAssignee(val OptNilTaskAssignee) {
s.Assignee = val
}
// SetProjects sets the value of Projects.
func (s *Task) SetProjects(val []TaskProjectsItem) {
s.Projects = val
}
// SetTags sets the value of Tags.
func (s *Task) SetTags(val []TaskTagsItem) {
s.Tags = val
}
// SetParent sets the value of Parent.
func (s *Task) SetParent(val OptNilTaskParent) {
s.Parent = val
}
type TaskAssignee struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
}
// GetGid returns the value of Gid.
func (s *TaskAssignee) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *TaskAssignee) GetName() OptString {
return s.Name
}
// SetGid sets the value of Gid.
func (s *TaskAssignee) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *TaskAssignee) SetName(val OptString) {
s.Name = val
}
// Ref: #/components/schemas/TaskListResponse
type TaskListResponse struct {
Data []Task `json:"data"`
}
// GetData returns the value of Data.
func (s *TaskListResponse) GetData() []Task {
return s.Data
}
// SetData sets the value of Data.
func (s *TaskListResponse) SetData(val []Task) {
s.Data = val
}
type TaskParent struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
}
// GetGid returns the value of Gid.
func (s *TaskParent) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *TaskParent) GetName() OptString {
return s.Name
}
// SetGid sets the value of Gid.
func (s *TaskParent) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *TaskParent) SetName(val OptString) {
s.Name = val
}
type TaskProjectsItem struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
}
// GetGid returns the value of Gid.
func (s *TaskProjectsItem) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *TaskProjectsItem) GetName() OptString {
return s.Name
}
// SetGid sets the value of Gid.
func (s *TaskProjectsItem) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *TaskProjectsItem) SetName(val OptString) {
s.Name = val
}
// Ref: #/components/schemas/TaskResponse
type TaskResponse struct {
Data OptTask `json:"data"`
}
// GetData returns the value of Data.
func (s *TaskResponse) GetData() OptTask {
return s.Data
}
// SetData sets the value of Data.
func (s *TaskResponse) SetData(val OptTask) {
s.Data = val
}
type TaskTagsItem struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
}
// GetGid returns the value of Gid.
func (s *TaskTagsItem) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *TaskTagsItem) GetName() OptString {
return s.Name
}
// SetGid sets the value of Gid.
func (s *TaskTagsItem) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *TaskTagsItem) SetName(val OptString) {
s.Name = val
}
// Ref: #/components/schemas/UpdateProjectRequest
type UpdateProjectRequest struct {
Data UpdateProjectRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *UpdateProjectRequest) GetData() UpdateProjectRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *UpdateProjectRequest) SetData(val UpdateProjectRequestData) {
s.Data = val
}
// Ref: #/components/schemas/UpdateProjectRequestData
type UpdateProjectRequestData struct {
Name OptString `json:"name"`
Notes OptString `json:"notes"`
Color OptString `json:"color"`
DefaultView OptString `json:"default_view"`
DueOn OptString `json:"due_on"`
Archived OptBool `json:"archived"`
}
// GetName returns the value of Name.
func (s *UpdateProjectRequestData) GetName() OptString {
return s.Name
}
// GetNotes returns the value of Notes.
func (s *UpdateProjectRequestData) GetNotes() OptString {
return s.Notes
}
// GetColor returns the value of Color.
func (s *UpdateProjectRequestData) GetColor() OptString {
return s.Color
}
// GetDefaultView returns the value of DefaultView.
func (s *UpdateProjectRequestData) GetDefaultView() OptString {
return s.DefaultView
}
// GetDueOn returns the value of DueOn.
func (s *UpdateProjectRequestData) GetDueOn() OptString {
return s.DueOn
}
// GetArchived returns the value of Archived.
func (s *UpdateProjectRequestData) GetArchived() OptBool {
return s.Archived
}
// SetName sets the value of Name.
func (s *UpdateProjectRequestData) SetName(val OptString) {
s.Name = val
}
// SetNotes sets the value of Notes.
func (s *UpdateProjectRequestData) SetNotes(val OptString) {
s.Notes = val
}
// SetColor sets the value of Color.
func (s *UpdateProjectRequestData) SetColor(val OptString) {
s.Color = val
}
// SetDefaultView sets the value of DefaultView.
func (s *UpdateProjectRequestData) SetDefaultView(val OptString) {
s.DefaultView = val
}
// SetDueOn sets the value of DueOn.
func (s *UpdateProjectRequestData) SetDueOn(val OptString) {
s.DueOn = val
}
// SetArchived sets the value of Archived.
func (s *UpdateProjectRequestData) SetArchived(val OptBool) {
s.Archived = val
}
// Ref: #/components/schemas/UpdateTaskRequest
type UpdateTaskRequest struct {
Data UpdateTaskRequestData `json:"data"`
}
// GetData returns the value of Data.
func (s *UpdateTaskRequest) GetData() UpdateTaskRequestData {
return s.Data
}
// SetData sets the value of Data.
func (s *UpdateTaskRequest) SetData(val UpdateTaskRequestData) {
s.Data = val
}
// Ref: #/components/schemas/UpdateTaskRequestData
type UpdateTaskRequestData struct {
Name OptString `json:"name"`
Notes OptString `json:"notes"`
HTMLNotes OptString `json:"html_notes"`
DueOn OptString `json:"due_on"`
DueAt OptString `json:"due_at"`
StartOn OptString `json:"start_on"`
Completed OptBool `json:"completed"`
Assignee OptString `json:"assignee"`
}
// GetName returns the value of Name.
func (s *UpdateTaskRequestData) GetName() OptString {
return s.Name
}
// GetNotes returns the value of Notes.
func (s *UpdateTaskRequestData) GetNotes() OptString {
return s.Notes
}
// GetHTMLNotes returns the value of HTMLNotes.
func (s *UpdateTaskRequestData) GetHTMLNotes() OptString {
return s.HTMLNotes
}
// GetDueOn returns the value of DueOn.
func (s *UpdateTaskRequestData) GetDueOn() OptString {
return s.DueOn
}
// GetDueAt returns the value of DueAt.
func (s *UpdateTaskRequestData) GetDueAt() OptString {
return s.DueAt
}
// GetStartOn returns the value of StartOn.
func (s *UpdateTaskRequestData) GetStartOn() OptString {
return s.StartOn
}
// GetCompleted returns the value of Completed.
func (s *UpdateTaskRequestData) GetCompleted() OptBool {
return s.Completed
}
// GetAssignee returns the value of Assignee.
func (s *UpdateTaskRequestData) GetAssignee() OptString {
return s.Assignee
}
// SetName sets the value of Name.
func (s *UpdateTaskRequestData) SetName(val OptString) {
s.Name = val
}
// SetNotes sets the value of Notes.
func (s *UpdateTaskRequestData) SetNotes(val OptString) {
s.Notes = val
}
// SetHTMLNotes sets the value of HTMLNotes.
func (s *UpdateTaskRequestData) SetHTMLNotes(val OptString) {
s.HTMLNotes = val
}
// SetDueOn sets the value of DueOn.
func (s *UpdateTaskRequestData) SetDueOn(val OptString) {
s.DueOn = val
}
// SetDueAt sets the value of DueAt.
func (s *UpdateTaskRequestData) SetDueAt(val OptString) {
s.DueAt = val
}
// SetStartOn sets the value of StartOn.
func (s *UpdateTaskRequestData) SetStartOn(val OptString) {
s.StartOn = val
}
// SetCompleted sets the value of Completed.
func (s *UpdateTaskRequestData) SetCompleted(val OptBool) {
s.Completed = val
}
// SetAssignee sets the value of Assignee.
func (s *UpdateTaskRequestData) SetAssignee(val OptString) {
s.Assignee = val
}
// Ref: #/components/schemas/User
type User struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
Email OptString `json:"email"`
ResourceType OptString `json:"resource_type"`
}
// GetGid returns the value of Gid.
func (s *User) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *User) GetName() OptString {
return s.Name
}
// GetEmail returns the value of Email.
func (s *User) GetEmail() OptString {
return s.Email
}
// GetResourceType returns the value of ResourceType.
func (s *User) GetResourceType() OptString {
return s.ResourceType
}
// SetGid sets the value of Gid.
func (s *User) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *User) SetName(val OptString) {
s.Name = val
}
// SetEmail sets the value of Email.
func (s *User) SetEmail(val OptString) {
s.Email = val
}
// SetResourceType sets the value of ResourceType.
func (s *User) SetResourceType(val OptString) {
s.ResourceType = val
}
// Ref: #/components/schemas/UserResponse
type UserResponse struct {
Data OptUser `json:"data"`
}
// GetData returns the value of Data.
func (s *UserResponse) GetData() OptUser {
return s.Data
}
// SetData sets the value of Data.
func (s *UserResponse) SetData(val OptUser) {
s.Data = val
}
// Ref: #/components/schemas/Workspace
type Workspace struct {
Gid OptString `json:"gid"`
Name OptString `json:"name"`
ResourceType OptString `json:"resource_type"`
IsOrganization OptBool `json:"is_organization"`
}
// GetGid returns the value of Gid.
func (s *Workspace) GetGid() OptString {
return s.Gid
}
// GetName returns the value of Name.
func (s *Workspace) GetName() OptString {
return s.Name
}
// GetResourceType returns the value of ResourceType.
func (s *Workspace) GetResourceType() OptString {
return s.ResourceType
}
// GetIsOrganization returns the value of IsOrganization.
func (s *Workspace) GetIsOrganization() OptBool {
return s.IsOrganization
}
// SetGid sets the value of Gid.
func (s *Workspace) SetGid(val OptString) {
s.Gid = val
}
// SetName sets the value of Name.
func (s *Workspace) SetName(val OptString) {
s.Name = val
}
// SetResourceType sets the value of ResourceType.
func (s *Workspace) SetResourceType(val OptString) {
s.ResourceType = val
}
// SetIsOrganization sets the value of IsOrganization.
func (s *Workspace) SetIsOrganization(val OptBool) {
s.IsOrganization = val
}
// Ref: #/components/schemas/WorkspaceListResponse
type WorkspaceListResponse struct {
Data []Workspace `json:"data"`
}
// GetData returns the value of Data.
func (s *WorkspaceListResponse) GetData() []Workspace {
return s.Data
}
// SetData sets the value of Data.
func (s *WorkspaceListResponse) SetData(val []Workspace) {
s.Data = val
}
// Ref: #/components/schemas/WorkspaceResponse
type WorkspaceResponse struct {
Data OptWorkspace `json:"data"`
}
// GetData returns the value of Data.
func (s *WorkspaceResponse) GetData() OptWorkspace {
return s.Data
}
// SetData sets the value of Data.
func (s *WorkspaceResponse) SetData(val OptWorkspace) {
s.Data = val
}