// Code generated by ogen, DO NOT EDIT.
package gen
import (
"github.com/go-faster/jx"
)
// Ref: #/components/schemas/AddLabelRequest
type AddLabelRequest struct {
Name string `json:"name"`
}
// GetName returns the value of Name.
func (s *AddLabelRequest) GetName() string {
return s.Name
}
// SetName sets the value of Name.
func (s *AddLabelRequest) SetName(val string) {
s.Name = val
}
type AddLabelRequestArray []AddLabelRequest
type BasicAuth struct {
Username string
Password string
Roles []string
}
// GetUsername returns the value of Username.
func (s *BasicAuth) GetUsername() string {
return s.Username
}
// GetPassword returns the value of Password.
func (s *BasicAuth) GetPassword() string {
return s.Password
}
// GetRoles returns the value of Roles.
func (s *BasicAuth) GetRoles() []string {
return s.Roles
}
// SetUsername sets the value of Username.
func (s *BasicAuth) SetUsername(val string) {
s.Username = val
}
// SetPassword sets the value of Password.
func (s *BasicAuth) SetPassword(val string) {
s.Password = val
}
// SetRoles sets the value of Roles.
func (s *BasicAuth) SetRoles(val []string) {
s.Roles = 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/Comment
type Comment struct {
ID OptString `json:"id"`
Status OptString `json:"status"`
Title OptString `json:"title"`
PageId OptString `json:"pageId"`
Version jx.Raw `json:"version"`
Body jx.Raw `json:"body"`
Links jx.Raw `json:"_links"`
}
// GetID returns the value of ID.
func (s *Comment) GetID() OptString {
return s.ID
}
// GetStatus returns the value of Status.
func (s *Comment) GetStatus() OptString {
return s.Status
}
// GetTitle returns the value of Title.
func (s *Comment) GetTitle() OptString {
return s.Title
}
// GetPageId returns the value of PageId.
func (s *Comment) GetPageId() OptString {
return s.PageId
}
// GetVersion returns the value of Version.
func (s *Comment) GetVersion() jx.Raw {
return s.Version
}
// GetBody returns the value of Body.
func (s *Comment) GetBody() jx.Raw {
return s.Body
}
// GetLinks returns the value of Links.
func (s *Comment) GetLinks() jx.Raw {
return s.Links
}
// SetID sets the value of ID.
func (s *Comment) SetID(val OptString) {
s.ID = val
}
// SetStatus sets the value of Status.
func (s *Comment) SetStatus(val OptString) {
s.Status = val
}
// SetTitle sets the value of Title.
func (s *Comment) SetTitle(val OptString) {
s.Title = val
}
// SetPageId sets the value of PageId.
func (s *Comment) SetPageId(val OptString) {
s.PageId = val
}
// SetVersion sets the value of Version.
func (s *Comment) SetVersion(val jx.Raw) {
s.Version = val
}
// SetBody sets the value of Body.
func (s *Comment) SetBody(val jx.Raw) {
s.Body = val
}
// SetLinks sets the value of Links.
func (s *Comment) SetLinks(val jx.Raw) {
s.Links = val
}
// Ref: #/components/schemas/CommentListResult
type CommentListResult struct {
Results []Comment `json:"results"`
Links jx.Raw `json:"_links"`
}
// GetResults returns the value of Results.
func (s *CommentListResult) GetResults() []Comment {
return s.Results
}
// GetLinks returns the value of Links.
func (s *CommentListResult) GetLinks() jx.Raw {
return s.Links
}
// SetResults sets the value of Results.
func (s *CommentListResult) SetResults(val []Comment) {
s.Results = val
}
// SetLinks sets the value of Links.
func (s *CommentListResult) SetLinks(val jx.Raw) {
s.Links = val
}
// Ref: #/components/schemas/CreateCommentRequest
type CreateCommentRequest struct {
PageId string `json:"pageId"`
Body PageBody `json:"body"`
}
// GetPageId returns the value of PageId.
func (s *CreateCommentRequest) GetPageId() string {
return s.PageId
}
// GetBody returns the value of Body.
func (s *CreateCommentRequest) GetBody() PageBody {
return s.Body
}
// SetPageId sets the value of PageId.
func (s *CreateCommentRequest) SetPageId(val string) {
s.PageId = val
}
// SetBody sets the value of Body.
func (s *CreateCommentRequest) SetBody(val PageBody) {
s.Body = val
}
// Ref: #/components/schemas/CreatePageRequest
type CreatePageRequest struct {
SpaceId string `json:"spaceId"`
Title string `json:"title"`
Status string `json:"status"`
ParentId OptString `json:"parentId"`
Body PageBody `json:"body"`
}
// GetSpaceId returns the value of SpaceId.
func (s *CreatePageRequest) GetSpaceId() string {
return s.SpaceId
}
// GetTitle returns the value of Title.
func (s *CreatePageRequest) GetTitle() string {
return s.Title
}
// GetStatus returns the value of Status.
func (s *CreatePageRequest) GetStatus() string {
return s.Status
}
// GetParentId returns the value of ParentId.
func (s *CreatePageRequest) GetParentId() OptString {
return s.ParentId
}
// GetBody returns the value of Body.
func (s *CreatePageRequest) GetBody() PageBody {
return s.Body
}
// SetSpaceId sets the value of SpaceId.
func (s *CreatePageRequest) SetSpaceId(val string) {
s.SpaceId = val
}
// SetTitle sets the value of Title.
func (s *CreatePageRequest) SetTitle(val string) {
s.Title = val
}
// SetStatus sets the value of Status.
func (s *CreatePageRequest) SetStatus(val string) {
s.Status = val
}
// SetParentId sets the value of ParentId.
func (s *CreatePageRequest) SetParentId(val OptString) {
s.ParentId = val
}
// SetBody sets the value of Body.
func (s *CreatePageRequest) SetBody(val PageBody) {
s.Body = val
}
// DeletePageNoContent is response for DeletePage operation.
type DeletePageNoContent struct{}
// Ref: #/components/schemas/Label
type Label struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Prefix OptString `json:"prefix"`
}
// 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
}
// GetPrefix returns the value of Prefix.
func (s *Label) GetPrefix() OptString {
return s.Prefix
}
// 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
}
// SetPrefix sets the value of Prefix.
func (s *Label) SetPrefix(val OptString) {
s.Prefix = val
}
// Ref: #/components/schemas/LabelListResult
type LabelListResult struct {
Results []Label `json:"results"`
}
// GetResults returns the value of Results.
func (s *LabelListResult) GetResults() []Label {
return s.Results
}
// SetResults sets the value of Results.
func (s *LabelListResult) SetResults(val []Label) {
s.Results = val
}
// 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/Page
type Page struct {
ID OptString `json:"id"`
Title OptString `json:"title"`
Status OptString `json:"status"`
SpaceId OptString `json:"spaceId"`
ParentId OptNilString `json:"parentId"`
ParentType OptNilString `json:"parentType"`
Position OptInt `json:"position"`
AuthorId OptString `json:"authorId"`
OwnerId OptString `json:"ownerId"`
CreatedAt OptString `json:"createdAt"`
Version jx.Raw `json:"version"`
Body jx.Raw `json:"body"`
Links jx.Raw `json:"_links"`
}
// GetID returns the value of ID.
func (s *Page) GetID() OptString {
return s.ID
}
// GetTitle returns the value of Title.
func (s *Page) GetTitle() OptString {
return s.Title
}
// GetStatus returns the value of Status.
func (s *Page) GetStatus() OptString {
return s.Status
}
// GetSpaceId returns the value of SpaceId.
func (s *Page) GetSpaceId() OptString {
return s.SpaceId
}
// GetParentId returns the value of ParentId.
func (s *Page) GetParentId() OptNilString {
return s.ParentId
}
// GetParentType returns the value of ParentType.
func (s *Page) GetParentType() OptNilString {
return s.ParentType
}
// GetPosition returns the value of Position.
func (s *Page) GetPosition() OptInt {
return s.Position
}
// GetAuthorId returns the value of AuthorId.
func (s *Page) GetAuthorId() OptString {
return s.AuthorId
}
// GetOwnerId returns the value of OwnerId.
func (s *Page) GetOwnerId() OptString {
return s.OwnerId
}
// GetCreatedAt returns the value of CreatedAt.
func (s *Page) GetCreatedAt() OptString {
return s.CreatedAt
}
// GetVersion returns the value of Version.
func (s *Page) GetVersion() jx.Raw {
return s.Version
}
// GetBody returns the value of Body.
func (s *Page) GetBody() jx.Raw {
return s.Body
}
// GetLinks returns the value of Links.
func (s *Page) GetLinks() jx.Raw {
return s.Links
}
// SetID sets the value of ID.
func (s *Page) SetID(val OptString) {
s.ID = val
}
// SetTitle sets the value of Title.
func (s *Page) SetTitle(val OptString) {
s.Title = val
}
// SetStatus sets the value of Status.
func (s *Page) SetStatus(val OptString) {
s.Status = val
}
// SetSpaceId sets the value of SpaceId.
func (s *Page) SetSpaceId(val OptString) {
s.SpaceId = val
}
// SetParentId sets the value of ParentId.
func (s *Page) SetParentId(val OptNilString) {
s.ParentId = val
}
// SetParentType sets the value of ParentType.
func (s *Page) SetParentType(val OptNilString) {
s.ParentType = val
}
// SetPosition sets the value of Position.
func (s *Page) SetPosition(val OptInt) {
s.Position = val
}
// SetAuthorId sets the value of AuthorId.
func (s *Page) SetAuthorId(val OptString) {
s.AuthorId = val
}
// SetOwnerId sets the value of OwnerId.
func (s *Page) SetOwnerId(val OptString) {
s.OwnerId = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *Page) SetCreatedAt(val OptString) {
s.CreatedAt = val
}
// SetVersion sets the value of Version.
func (s *Page) SetVersion(val jx.Raw) {
s.Version = val
}
// SetBody sets the value of Body.
func (s *Page) SetBody(val jx.Raw) {
s.Body = val
}
// SetLinks sets the value of Links.
func (s *Page) SetLinks(val jx.Raw) {
s.Links = val
}
// Ref: #/components/schemas/PageBody
type PageBody struct {
Representation OptString `json:"representation"`
Value OptString `json:"value"`
}
// GetRepresentation returns the value of Representation.
func (s *PageBody) GetRepresentation() OptString {
return s.Representation
}
// GetValue returns the value of Value.
func (s *PageBody) GetValue() OptString {
return s.Value
}
// SetRepresentation sets the value of Representation.
func (s *PageBody) SetRepresentation(val OptString) {
s.Representation = val
}
// SetValue sets the value of Value.
func (s *PageBody) SetValue(val OptString) {
s.Value = val
}
// Ref: #/components/schemas/PageListResult
type PageListResult struct {
Results []Page `json:"results"`
Links jx.Raw `json:"_links"`
}
// GetResults returns the value of Results.
func (s *PageListResult) GetResults() []Page {
return s.Results
}
// GetLinks returns the value of Links.
func (s *PageListResult) GetLinks() jx.Raw {
return s.Links
}
// SetResults sets the value of Results.
func (s *PageListResult) SetResults(val []Page) {
s.Results = val
}
// SetLinks sets the value of Links.
func (s *PageListResult) SetLinks(val jx.Raw) {
s.Links = val
}
// Ref: #/components/schemas/SearchResult
type SearchResult struct {
Results []jx.Raw `json:"results"`
Start OptInt `json:"start"`
Limit OptInt `json:"limit"`
Size OptInt `json:"size"`
TotalSize OptInt `json:"totalSize"`
Links jx.Raw `json:"_links"`
}
// GetResults returns the value of Results.
func (s *SearchResult) GetResults() []jx.Raw {
return s.Results
}
// GetStart returns the value of Start.
func (s *SearchResult) GetStart() OptInt {
return s.Start
}
// GetLimit returns the value of Limit.
func (s *SearchResult) GetLimit() OptInt {
return s.Limit
}
// GetSize returns the value of Size.
func (s *SearchResult) GetSize() OptInt {
return s.Size
}
// GetTotalSize returns the value of TotalSize.
func (s *SearchResult) GetTotalSize() OptInt {
return s.TotalSize
}
// GetLinks returns the value of Links.
func (s *SearchResult) GetLinks() jx.Raw {
return s.Links
}
// SetResults sets the value of Results.
func (s *SearchResult) SetResults(val []jx.Raw) {
s.Results = val
}
// SetStart sets the value of Start.
func (s *SearchResult) SetStart(val OptInt) {
s.Start = val
}
// SetLimit sets the value of Limit.
func (s *SearchResult) SetLimit(val OptInt) {
s.Limit = val
}
// SetSize sets the value of Size.
func (s *SearchResult) SetSize(val OptInt) {
s.Size = val
}
// SetTotalSize sets the value of TotalSize.
func (s *SearchResult) SetTotalSize(val OptInt) {
s.TotalSize = val
}
// SetLinks sets the value of Links.
func (s *SearchResult) SetLinks(val jx.Raw) {
s.Links = val
}
// Ref: #/components/schemas/Space
type Space struct {
ID OptString `json:"id"`
Key OptString `json:"key"`
Name OptString `json:"name"`
Type OptString `json:"type"`
Status OptString `json:"status"`
Description jx.Raw `json:"description"`
HomepageId OptString `json:"homepageId"`
Icon jx.Raw `json:"icon"`
}
// GetID returns the value of ID.
func (s *Space) GetID() OptString {
return s.ID
}
// GetKey returns the value of Key.
func (s *Space) GetKey() OptString {
return s.Key
}
// GetName returns the value of Name.
func (s *Space) GetName() OptString {
return s.Name
}
// GetType returns the value of Type.
func (s *Space) GetType() OptString {
return s.Type
}
// GetStatus returns the value of Status.
func (s *Space) GetStatus() OptString {
return s.Status
}
// GetDescription returns the value of Description.
func (s *Space) GetDescription() jx.Raw {
return s.Description
}
// GetHomepageId returns the value of HomepageId.
func (s *Space) GetHomepageId() OptString {
return s.HomepageId
}
// GetIcon returns the value of Icon.
func (s *Space) GetIcon() jx.Raw {
return s.Icon
}
// SetID sets the value of ID.
func (s *Space) SetID(val OptString) {
s.ID = val
}
// SetKey sets the value of Key.
func (s *Space) SetKey(val OptString) {
s.Key = val
}
// SetName sets the value of Name.
func (s *Space) SetName(val OptString) {
s.Name = val
}
// SetType sets the value of Type.
func (s *Space) SetType(val OptString) {
s.Type = val
}
// SetStatus sets the value of Status.
func (s *Space) SetStatus(val OptString) {
s.Status = val
}
// SetDescription sets the value of Description.
func (s *Space) SetDescription(val jx.Raw) {
s.Description = val
}
// SetHomepageId sets the value of HomepageId.
func (s *Space) SetHomepageId(val OptString) {
s.HomepageId = val
}
// SetIcon sets the value of Icon.
func (s *Space) SetIcon(val jx.Raw) {
s.Icon = val
}
// Ref: #/components/schemas/SpaceListResult
type SpaceListResult struct {
Results []Space `json:"results"`
Links jx.Raw `json:"_links"`
}
// GetResults returns the value of Results.
func (s *SpaceListResult) GetResults() []Space {
return s.Results
}
// GetLinks returns the value of Links.
func (s *SpaceListResult) GetLinks() jx.Raw {
return s.Links
}
// SetResults sets the value of Results.
func (s *SpaceListResult) SetResults(val []Space) {
s.Results = val
}
// SetLinks sets the value of Links.
func (s *SpaceListResult) SetLinks(val jx.Raw) {
s.Links = val
}
// Ref: #/components/schemas/SpaceV1
type SpaceV1 struct {
ID OptInt `json:"id"`
Key OptString `json:"key"`
Name OptString `json:"name"`
Type OptString `json:"type"`
Status OptString `json:"status"`
Description jx.Raw `json:"description"`
Homepage jx.Raw `json:"homepage"`
Links jx.Raw `json:"_links"`
}
// GetID returns the value of ID.
func (s *SpaceV1) GetID() OptInt {
return s.ID
}
// GetKey returns the value of Key.
func (s *SpaceV1) GetKey() OptString {
return s.Key
}
// GetName returns the value of Name.
func (s *SpaceV1) GetName() OptString {
return s.Name
}
// GetType returns the value of Type.
func (s *SpaceV1) GetType() OptString {
return s.Type
}
// GetStatus returns the value of Status.
func (s *SpaceV1) GetStatus() OptString {
return s.Status
}
// GetDescription returns the value of Description.
func (s *SpaceV1) GetDescription() jx.Raw {
return s.Description
}
// GetHomepage returns the value of Homepage.
func (s *SpaceV1) GetHomepage() jx.Raw {
return s.Homepage
}
// GetLinks returns the value of Links.
func (s *SpaceV1) GetLinks() jx.Raw {
return s.Links
}
// SetID sets the value of ID.
func (s *SpaceV1) SetID(val OptInt) {
s.ID = val
}
// SetKey sets the value of Key.
func (s *SpaceV1) SetKey(val OptString) {
s.Key = val
}
// SetName sets the value of Name.
func (s *SpaceV1) SetName(val OptString) {
s.Name = val
}
// SetType sets the value of Type.
func (s *SpaceV1) SetType(val OptString) {
s.Type = val
}
// SetStatus sets the value of Status.
func (s *SpaceV1) SetStatus(val OptString) {
s.Status = val
}
// SetDescription sets the value of Description.
func (s *SpaceV1) SetDescription(val jx.Raw) {
s.Description = val
}
// SetHomepage sets the value of Homepage.
func (s *SpaceV1) SetHomepage(val jx.Raw) {
s.Homepage = val
}
// SetLinks sets the value of Links.
func (s *SpaceV1) SetLinks(val jx.Raw) {
s.Links = val
}
// Ref: #/components/schemas/UpdatePageRequest
type UpdatePageRequest struct {
ID string `json:"id"`
Title string `json:"title"`
Status string `json:"status"`
Body PageBody `json:"body"`
Version VersionInput `json:"version"`
}
// GetID returns the value of ID.
func (s *UpdatePageRequest) GetID() string {
return s.ID
}
// GetTitle returns the value of Title.
func (s *UpdatePageRequest) GetTitle() string {
return s.Title
}
// GetStatus returns the value of Status.
func (s *UpdatePageRequest) GetStatus() string {
return s.Status
}
// GetBody returns the value of Body.
func (s *UpdatePageRequest) GetBody() PageBody {
return s.Body
}
// GetVersion returns the value of Version.
func (s *UpdatePageRequest) GetVersion() VersionInput {
return s.Version
}
// SetID sets the value of ID.
func (s *UpdatePageRequest) SetID(val string) {
s.ID = val
}
// SetTitle sets the value of Title.
func (s *UpdatePageRequest) SetTitle(val string) {
s.Title = val
}
// SetStatus sets the value of Status.
func (s *UpdatePageRequest) SetStatus(val string) {
s.Status = val
}
// SetBody sets the value of Body.
func (s *UpdatePageRequest) SetBody(val PageBody) {
s.Body = val
}
// SetVersion sets the value of Version.
func (s *UpdatePageRequest) SetVersion(val VersionInput) {
s.Version = val
}
// Ref: #/components/schemas/VersionInput
type VersionInput struct {
Number OptInt `json:"number"`
}
// GetNumber returns the value of Number.
func (s *VersionInput) GetNumber() OptInt {
return s.Number
}
// SetNumber sets the value of Number.
func (s *VersionInput) SetNumber(val OptInt) {
s.Number = val
}