Documentation ¶
Overview ¶
Package models provides primitives to interact with the openapi HTTP API.
Code generated by unknown module path version unknown version DO NOT EDIT.
Index ¶
- Constants
- type AuthServerUser
- type CreateWorkitemCommentJSONRequestBody
- type CreateWorkitemJSONRequestBody
- type CreateWorkitemTagJSONRequestBody
- type DbActivity
- type DbActivityCreateParams
- type DbDemoTwoWorkItem
- type DbDemoTwoWorkItemCreateParams
- type DbDemoWorkItem
- type DbDemoWorkItemCreateParams
- type DbKanbanStep
- type DbProject
- type DbProjectID
- type DbTeam
- type DbTeamCreateParams
- type DbTimeEntry
- type DbUser
- type DbUserAPIKey
- type DbUserID
- type DbWorkItem
- type DbWorkItemComment
- type DbWorkItemCreateParams
- type DbWorkItemID
- type DbWorkItemRole
- type DbWorkItemTag
- type DbWorkItemTagCreateParams
- type DbWorkItemType
- type DbWorkItemTypeID
- type Demo2WorkItemTypes
- type DemoKanbanSteps
- type DemoProject2KanbanSteps
- type DemoProjectKanbanSteps
- type DemoTwoKanbanSteps
- type DemoTwoWorkItemCreateRequest
- type DemoTwoWorkItemTypes
- type DemoTwoWorkItemsResponse
- type DemoWorkItemCreateRequest
- type DemoWorkItemTypes
- type DemoWorkItemsResponse
- type ErrorCode
- type EventsParams
- type GetProjectWorkitemsParams
- type HTTPError
- type HTTPValidationError
- type InitializeProjectJSONRequestBody
- type InitializeProjectRequest
- type NotificationType
- type Project
- type ProjectBoardResponse
- type ProjectConfig
- type ProjectConfigField
- type ProjectName
- type Role
- type Scope
- type Scopes
- type Serial
- type ServicesMember
- type Topics
- type UUID
- type UpdateProjectConfigJSONRequestBody
- type UpdateUserAuthRequest
- type UpdateUserAuthorizationJSONRequestBody
- type UpdateUserJSONRequestBody
- type UpdateUserRequest
- type User
- type UuidUUID
- type ValidationError
- type WorkItemCommentCreateRequest
- type WorkItemCreateRequest
- func (t WorkItemCreateRequest) AsDemoTwoWorkItemCreateRequest() (DemoTwoWorkItemCreateRequest, error)
- func (t WorkItemCreateRequest) AsDemoWorkItemCreateRequest() (DemoWorkItemCreateRequest, error)
- func (t WorkItemCreateRequest) Discriminator() (string, error)
- func (t *WorkItemCreateRequest) FromDemoTwoWorkItemCreateRequest(v DemoTwoWorkItemCreateRequest) error
- func (t *WorkItemCreateRequest) FromDemoWorkItemCreateRequest(v DemoWorkItemCreateRequest) error
- func (t WorkItemCreateRequest) MarshalJSON() ([]byte, error)
- func (t *WorkItemCreateRequest) MergeDemoTwoWorkItemCreateRequest(v DemoTwoWorkItemCreateRequest) error
- func (t *WorkItemCreateRequest) MergeDemoWorkItemCreateRequest(v DemoWorkItemCreateRequest) error
- func (t *WorkItemCreateRequest) UnmarshalJSON(b []byte) error
- func (t WorkItemCreateRequest) ValueByDiscriminator() (interface{}, error)
- type WorkItemRole
- type WorkItemTagCreateRequest
Constants ¶
const ( Api_keyScopes = "api_key.Scopes" Bearer_authScopes = "bearer_auth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServerUser ¶
type AuthServerUser struct { ID_ string `json:"id"` // need exported for unmarshalling Username_ string `json:"username"` Password_ string `json:"password"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` EmailVerified bool `json:"emailVerified"` Phone string `json:"phone"` PhoneVerified bool `json:"phoneVerified"` PreferredLanguage language.Tag `json:"preferredLanguage"` IsAdmin_ bool `json:"isAdmin"` }
User implements oidc-server storage.User. It is used for development and testing purposes only. nolint: revive Still cannot access common interface fields:
https://go101.org/generics/888-the-status-quo-of-go-custom-generics.html
func (AuthServerUser) ID ¶
func (u AuthServerUser) ID() string
func (AuthServerUser) IsAdmin ¶
func (u AuthServerUser) IsAdmin() bool
func (AuthServerUser) Password ¶
func (u AuthServerUser) Password() string
func (AuthServerUser) Username ¶
func (u AuthServerUser) Username() string
type CreateWorkitemCommentJSONRequestBody ¶
type CreateWorkitemCommentJSONRequestBody = WorkItemCommentCreateRequest
CreateWorkitemCommentJSONRequestBody defines body for CreateWorkitemComment for application/json ContentType.
type CreateWorkitemJSONRequestBody ¶
type CreateWorkitemJSONRequestBody = WorkItemCreateRequest
CreateWorkitemJSONRequestBody defines body for CreateWorkitem for application/json ContentType.
type CreateWorkitemTagJSONRequestBody ¶
type CreateWorkitemTagJSONRequestBody = WorkItemTagCreateRequest
CreateWorkitemTagJSONRequestBody defines body for CreateWorkitemTag for application/json ContentType.
type DbActivity ¶
type DbActivity struct { ActivityID int `json:"activityID"` Description string `json:"description"` IsProductive bool `json:"isProductive"` Name string `json:"name"` ProjectID int `json:"projectID"` }
DbActivity defines the model for DbActivity.
type DbActivityCreateParams ¶
type DbActivityCreateParams struct { Description string `json:"description"` IsProductive bool `json:"isProductive"` Name string `json:"name"` ProjectID *int `json:"projectID,omitempty"` }
DbActivityCreateParams defines the model for DbActivityCreateParams.
type DbDemoTwoWorkItem ¶
type DbDemoTwoWorkItem struct { CustomDateForProject2 *time.Time `json:"customDateForProject2"` WorkItemID DbWorkItemID `json:"workItemID"` }
DbDemoTwoWorkItem defines the model for DbDemoTwoWorkItem.
type DbDemoTwoWorkItemCreateParams ¶
type DbDemoTwoWorkItemCreateParams struct {
CustomDateForProject2 *time.Time `json:"customDateForProject2"`
}
DbDemoTwoWorkItemCreateParams defines the model for DbDemoTwoWorkItemCreateParams.
type DbDemoWorkItem ¶
type DbDemoWorkItem struct { LastMessageAt time.Time `json:"lastMessageAt"` Line string `json:"line"` Ref string `json:"ref"` Reopened bool `json:"reopened"` WorkItemID int `json:"workItemID"` }
DbDemoWorkItem defines the model for DbDemoWorkItem.
type DbDemoWorkItemCreateParams ¶
type DbDemoWorkItemCreateParams struct { LastMessageAt time.Time `json:"lastMessageAt"` Line string `json:"line"` Ref string `json:"ref"` Reopened bool `json:"reopened"` }
DbDemoWorkItemCreateParams defines the model for DbDemoWorkItemCreateParams.
type DbKanbanStep ¶
type DbKanbanStep struct { Color string `json:"color"` Description string `json:"description"` KanbanStepID int `json:"kanbanStepID"` Name string `json:"name"` ProjectID int `json:"projectID"` StepOrder int `json:"stepOrder"` TimeTrackable bool `json:"timeTrackable"` }
DbKanbanStep defines the model for DbKanbanStep.
type DbProject ¶
type DbProject struct { BoardConfig ProjectConfig `json:"boardConfig"` CreatedAt time.Time `json:"createdAt"` Description string `json:"description"` Name Project `json:"name"` ProjectID int `json:"projectID"` UpdatedAt time.Time `json:"updatedAt"` }
DbProject defines the model for DbProject.
type DbTeam ¶
type DbTeam struct { CreatedAt time.Time `json:"createdAt"` Description string `json:"description"` Name string `json:"name"` ProjectID int `json:"projectID"` TeamID int `json:"teamID"` UpdatedAt time.Time `json:"updatedAt"` }
DbTeam defines the model for DbTeam.
type DbTeamCreateParams ¶
type DbTeamCreateParams struct { Description string `json:"description"` Name string `json:"name"` ProjectID int `json:"projectID"` }
DbTeamCreateParams defines the model for DbTeamCreateParams.
type DbTimeEntry ¶
type DbTimeEntry struct { ActivityID int `json:"activityID"` Comment string `json:"comment"` DurationMinutes *int `json:"durationMinutes"` Start time.Time `json:"start"` TeamID *int `json:"teamID"` TimeEntryID int `json:"timeEntryID"` UserID DbUserID `json:"userID"` WorkItemID *int `json:"workItemID"` }
DbTimeEntry defines the model for DbTimeEntry.
type DbUser ¶
type DbUser struct { CreatedAt time.Time `json:"createdAt"` DeletedAt *time.Time `json:"deletedAt"` Email string `json:"email"` FirstName *string `json:"firstName"` FullName *string `json:"fullName"` HasGlobalNotifications bool `json:"hasGlobalNotifications"` HasPersonalNotifications bool `json:"hasPersonalNotifications"` LastName *string `json:"lastName"` Scopes Scopes `json:"scopes"` UserID DbUserID `json:"userID"` Username string `json:"username"` }
DbUser defines the model for DbUser.
type DbUserAPIKey ¶
type DbUserAPIKey struct { ApiKey string `json:"apiKey"` ExpiresOn time.Time `json:"expiresOn"` UserID DbUserID `json:"userID"` }
DbUserAPIKey defines the model for DbUserAPIKey.
type DbWorkItem ¶
type DbWorkItem struct { ClosedAt *time.Time `json:"closedAt"` CreatedAt time.Time `json:"createdAt"` DeletedAt *time.Time `json:"deletedAt"` Description string `json:"description"` KanbanStepID int `json:"kanbanStepID"` Metadata map[string]interface{} `json:"metadata"` TargetDate time.Time `json:"targetDate"` TeamID int `json:"teamID"` Title string `json:"title"` UpdatedAt time.Time `json:"updatedAt"` WorkItemID int `json:"workItemID"` WorkItemTypeID int `json:"workItemTypeID"` }
DbWorkItem defines the model for DbWorkItem.
type DbWorkItemComment ¶
type DbWorkItemComment struct { CreatedAt time.Time `json:"createdAt"` Message string `json:"message"` UpdatedAt time.Time `json:"updatedAt"` UserID DbUserID `json:"userID"` WorkItemCommentID int `json:"workItemCommentID"` WorkItemID int `json:"workItemID"` }
DbWorkItemComment defines the model for DbWorkItemComment.
type DbWorkItemCreateParams ¶
type DbWorkItemCreateParams struct { ClosedAt *time.Time `json:"closedAt"` Description string `json:"description"` KanbanStepID int `json:"kanbanStepID"` Metadata map[string]interface{} `json:"metadata"` TargetDate time.Time `json:"targetDate"` TeamID int `json:"teamID"` Title string `json:"title"` WorkItemTypeID int `json:"workItemTypeID"` }
DbWorkItemCreateParams defines the model for DbWorkItemCreateParams.
type DbWorkItemID ¶
type DbWorkItemID = interface{}
DbWorkItemID defines the model for DbWorkItemID.
type DbWorkItemRole ¶
type DbWorkItemRole = string
DbWorkItemRole defines the model for DbWorkItemRole.
type DbWorkItemTag ¶
type DbWorkItemTag struct { Color string `json:"color"` Description string `json:"description"` Name string `json:"name"` ProjectID int `json:"projectID"` WorkItemTagID int `json:"workItemTagID"` }
DbWorkItemTag defines the model for DbWorkItemTag.
type DbWorkItemTagCreateParams ¶
type DbWorkItemTagCreateParams struct { Color string `json:"color"` Description string `json:"description"` Name string `json:"name"` ProjectID *DbProjectID `json:"projectID,omitempty"` }
DbWorkItemTagCreateParams defines the model for DbWorkItemTagCreateParams.
type DbWorkItemType ¶
type DbWorkItemType struct { Color string `json:"color"` Description string `json:"description"` Name string `json:"name"` ProjectID int `json:"projectID"` WorkItemTypeID int `json:"workItemTypeID"` }
DbWorkItemType defines the model for DbWorkItemType.
type DbWorkItemTypeID ¶
type DbWorkItemTypeID = interface{}
DbWorkItemTypeID defines the model for DbWorkItemTypeID.
type Demo2WorkItemTypes ¶
type Demo2WorkItemTypes string
Demo2WorkItemTypes defines the model for Demo2WorkItemTypes.
const ( Demo2WorkItemTypesAnotherType Demo2WorkItemTypes = "Another type" Demo2WorkItemTypesType1 Demo2WorkItemTypes = "Type 1" Demo2WorkItemTypesType2 Demo2WorkItemTypes = "Type 2" )
Defines values for Demo2WorkItemTypes.
func AllDemo2WorkItemTypesValues ¶
func AllDemo2WorkItemTypesValues() []Demo2WorkItemTypes
AllDemo2WorkItemTypesValues returns all possible values for Demo2WorkItemTypes.
type DemoKanbanSteps ¶
type DemoKanbanSteps string
DemoKanbanSteps defines the model for DemoKanbanSteps.
const ( DemoKanbanStepsDisabled DemoKanbanSteps = "Disabled" DemoKanbanStepsReceived DemoKanbanSteps = "Received" DemoKanbanStepsUnderReview DemoKanbanSteps = "Under review" DemoKanbanStepsWorkInProgress DemoKanbanSteps = "Work in progress" )
Defines values for DemoKanbanSteps.
func AllDemoKanbanStepsValues ¶
func AllDemoKanbanStepsValues() []DemoKanbanSteps
AllDemoKanbanStepsValues returns all possible values for DemoKanbanSteps.
type DemoProject2KanbanSteps ¶
type DemoProject2KanbanSteps string
DemoProject2KanbanSteps defines the model for DemoProject2KanbanSteps.
const (
DemoProject2KanbanStepsReceived DemoProject2KanbanSteps = "Received"
)
Defines values for DemoProject2KanbanSteps.
func AllDemoProject2KanbanStepsValues ¶
func AllDemoProject2KanbanStepsValues() []DemoProject2KanbanSteps
AllDemoProject2KanbanStepsValues returns all possible values for DemoProject2KanbanSteps.
type DemoProjectKanbanSteps ¶
type DemoProjectKanbanSteps string
DemoProjectKanbanSteps defines the model for DemoProjectKanbanSteps.
const ( DemoProjectKanbanStepsDisabled DemoProjectKanbanSteps = "Disabled" DemoProjectKanbanStepsReceived DemoProjectKanbanSteps = "Received" DemoProjectKanbanStepsUnderReview DemoProjectKanbanSteps = "Under review" DemoProjectKanbanStepsWorkInProgress DemoProjectKanbanSteps = "Work in progress" )
Defines values for DemoProjectKanbanSteps.
func AllDemoProjectKanbanStepsValues ¶
func AllDemoProjectKanbanStepsValues() []DemoProjectKanbanSteps
AllDemoProjectKanbanStepsValues returns all possible values for DemoProjectKanbanSteps.
type DemoTwoKanbanSteps ¶
type DemoTwoKanbanSteps string
DemoTwoKanbanSteps defines the model for DemoTwoKanbanSteps.
const (
DemoTwoKanbanStepsReceived DemoTwoKanbanSteps = "Received"
)
Defines values for DemoTwoKanbanSteps.
func AllDemoTwoKanbanStepsValues ¶
func AllDemoTwoKanbanStepsValues() []DemoTwoKanbanSteps
AllDemoTwoKanbanStepsValues returns all possible values for DemoTwoKanbanSteps.
type DemoTwoWorkItemCreateRequest ¶
type DemoTwoWorkItemCreateRequest struct { Base DbWorkItemCreateParams `json:"base"` DemoTwoProject DbDemoTwoWorkItemCreateParams `json:"demoTwoProject"` Members []ServicesMember `json:"members"` ProjectName Project `json:"projectName"` TagIDs []int `json:"tagIDs"` }
DemoTwoWorkItemCreateRequest defines the model for DemoTwoWorkItemCreateRequest.
type DemoTwoWorkItemTypes ¶
type DemoTwoWorkItemTypes string
DemoTwoWorkItemTypes defines the model for DemoTwoWorkItemTypes.
const ( DemoTwoWorkItemTypesAnotherType DemoTwoWorkItemTypes = "Another type" DemoTwoWorkItemTypesType1 DemoTwoWorkItemTypes = "Type 1" DemoTwoWorkItemTypesType2 DemoTwoWorkItemTypes = "Type 2" )
Defines values for DemoTwoWorkItemTypes.
func AllDemoTwoWorkItemTypesValues ¶
func AllDemoTwoWorkItemTypesValues() []DemoTwoWorkItemTypes
AllDemoTwoWorkItemTypesValues returns all possible values for DemoTwoWorkItemTypes.
type DemoTwoWorkItemsResponse ¶
type DemoTwoWorkItemsResponse struct { ClosedAt *time.Time `json:"closedAt"` CreatedAt time.Time `json:"createdAt"` DeletedAt *time.Time `json:"deletedAt"` DemoTwoWorkItem DbDemoTwoWorkItem `json:"demoTwoWorkItem"` Description string `json:"description"` KanbanStepID int `json:"kanbanStepID"` Members *[]DbUser `json:"members"` Metadata map[string]interface{} `json:"metadata"` TargetDate time.Time `json:"targetDate"` TeamID int `json:"teamID"` TimeEntries *[]DbTimeEntry `json:"timeEntries"` Title string `json:"title"` UpdatedAt time.Time `json:"updatedAt"` WorkItemComments *[]DbWorkItemComment `json:"workItemComments"` WorkItemID int `json:"workItemID"` WorkItemTags *[]DbWorkItemTag `json:"workItemTags"` WorkItemType *DbWorkItemType `json:"workItemType,omitempty"` WorkItemTypeID int `json:"workItemTypeID"` }
DemoTwoWorkItemsResponse defines the model for DemoTwoWorkItemsResponse.
type DemoWorkItemCreateRequest ¶
type DemoWorkItemCreateRequest struct { Base DbWorkItemCreateParams `json:"base"` DemoProject DbDemoWorkItemCreateParams `json:"demoProject"` Members []ServicesMember `json:"members"` ProjectName Project `json:"projectName"` TagIDs []int `json:"tagIDs"` }
DemoWorkItemCreateRequest defines the model for DemoWorkItemCreateRequest.
type DemoWorkItemTypes ¶
type DemoWorkItemTypes string
DemoWorkItemTypes defines the model for DemoWorkItemTypes.
const (
DemoWorkItemTypesType1 DemoWorkItemTypes = "Type 1"
)
Defines values for DemoWorkItemTypes.
func AllDemoWorkItemTypesValues ¶
func AllDemoWorkItemTypesValues() []DemoWorkItemTypes
AllDemoWorkItemTypesValues returns all possible values for DemoWorkItemTypes.
type DemoWorkItemsResponse ¶
type DemoWorkItemsResponse struct { ClosedAt *time.Time `json:"closedAt"` CreatedAt time.Time `json:"createdAt"` DeletedAt *time.Time `json:"deletedAt"` DemoWorkItem DbDemoWorkItem `json:"demoWorkItem"` Description string `json:"description"` KanbanStepID int `json:"kanbanStepID"` Members *[]DbUser `json:"members"` Metadata map[string]interface{} `json:"metadata"` TargetDate time.Time `json:"targetDate"` TeamID int `json:"teamID"` TimeEntries *[]DbTimeEntry `json:"timeEntries"` Title string `json:"title"` UpdatedAt time.Time `json:"updatedAt"` WorkItemComments *[]DbWorkItemComment `json:"workItemComments"` WorkItemID int `json:"workItemID"` WorkItemTags *[]DbWorkItemTag `json:"workItemTags"` WorkItemType *DbWorkItemType `json:"workItemType,omitempty"` WorkItemTypeID int `json:"workItemTypeID"` }
DemoWorkItemsResponse defines the model for DemoWorkItemsResponse.
type ErrorCode ¶
type ErrorCode string
ErrorCode Represents standardized HTTP error types. Notes: - 'Private' marks an error to be hidden in response.
const ( ErrorCodeAlreadyExists ErrorCode = "AlreadyExists" ErrorCodeInvalidArgument ErrorCode = "InvalidArgument" ErrorCodeInvalidRole ErrorCode = "InvalidRole" ErrorCodeInvalidScope ErrorCode = "InvalidScope" ErrorCodeInvalidUUID ErrorCode = "InvalidUUID" ErrorCodeNotFound ErrorCode = "NotFound" ErrorCodeOIDC ErrorCode = "OIDC" ErrorCodePrivate ErrorCode = "Private" ErrorCodeRequestValidation ErrorCode = "RequestValidation" ErrorCodeResponseValidation ErrorCode = "ResponseValidation" ErrorCodeUnauthenticated ErrorCode = "Unauthenticated" ErrorCodeUnknown ErrorCode = "Unknown" )
ErrorCode Represents standardized HTTP error types. Notes: - 'Private' marks an error to be hidden in response.
func AllErrorCodeValues ¶
func AllErrorCodeValues() []ErrorCode
AllErrorCodeValues returns all possible values for ErrorCode.
type EventsParams ¶
type EventsParams struct {
ProjectName Project `form:"projectName" json:"projectName"`
}
EventsParams defines parameters for Events.
type GetProjectWorkitemsParams ¶
type GetProjectWorkitemsParams struct { Open *bool `form:"open,omitempty" json:"open,omitempty"` Deleted *bool `form:"deleted,omitempty" json:"deleted,omitempty"` }
GetProjectWorkitemsParams defines parameters for GetProjectWorkitems.
type HTTPError ¶
type HTTPError struct { Detail string `json:"detail"` Error string `json:"error"` // Loc location in body path, if any Loc *[]string `json:"loc,omitempty"` Status int `json:"status"` Title string `json:"title"` // Type Represents standardized HTTP error types. // Notes: // - 'Private' marks an error to be hidden in response. Type ErrorCode `json:"type"` ValidationError *HTTPValidationError `json:"validationError,omitempty"` }
HTTPError represents an error message response.
type HTTPValidationError ¶
type HTTPValidationError struct { // Detail Additional details for validation errors Detail *[]ValidationError `json:"detail,omitempty"` // Messages Descriptive error messages to show in a callout Messages []string `json:"messages"` }
HTTPValidationError defines the model for HTTPValidationError.
type InitializeProjectJSONRequestBody ¶
type InitializeProjectJSONRequestBody = InitializeProjectRequest
InitializeProjectJSONRequestBody defines body for InitializeProject for application/json ContentType.
type InitializeProjectRequest ¶
type InitializeProjectRequest struct { Tags *[]DbWorkItemTagCreateParams `json:"tags"` Teams *[]DbTeamCreateParams `json:"teams"` }
InitializeProjectRequest defines the model for InitializeProjectRequest.
type NotificationType ¶
type NotificationType string
NotificationType represents a database 'notification_type'
const ( NotificationTypeGlobal NotificationType = "global" NotificationTypePersonal NotificationType = "personal" )
NotificationType represents a database 'notification_type'
func AllNotificationTypeValues ¶
func AllNotificationTypeValues() []NotificationType
AllNotificationTypeValues returns all possible values for NotificationType.
type Project ¶
type Project string
Project defines the model for Project.
Defines values for Project.
func AllProjectValues ¶
func AllProjectValues() []Project
AllProjectValues returns all possible values for Project.
type ProjectBoardResponse ¶
type ProjectBoardResponse struct {
ProjectName Project `json:"projectName"`
}
ProjectBoardResponse defines the model for ProjectBoardResponse.
type ProjectConfig ¶
type ProjectConfig struct { Fields []ProjectConfigField `json:"fields"` Header []string `json:"header"` Visualization *map[string]interface{} `json:"visualization,omitempty"` }
ProjectConfig defines the model for ProjectConfig.
type ProjectConfigField ¶
type ProjectConfigField struct { IsEditable bool `json:"isEditable"` IsVisible bool `json:"isVisible"` Name string `json:"name"` Path string `json:"path"` ShowCollapsed bool `json:"showCollapsed"` }
ProjectConfigField defines the model for ProjectConfigField.
type Role ¶
type Role string
Role defines the model for Role.
const ( RoleAdmin Role = "admin" RoleAdvancedUser Role = "advancedUser" RoleGuest Role = "guest" RoleManager Role = "manager" RoleSuperAdmin Role = "superAdmin" RoleUser Role = "user" )
Defines values for Role.
func AllRoleValues ¶
func AllRoleValues() []Role
AllRoleValues returns all possible values for Role.
type Scope ¶
type Scope string
Scope defines the model for Scope.
const ( ScopeProjectSettingsWrite Scope = "project-settings:write" ScopeScopesWrite Scope = "scopes:write" ScopeTeamSettingsWrite Scope = "team-settings:write" ScopeUsersDelete Scope = "users:delete" ScopeUsersRead Scope = "users:read" ScopeUsersWrite Scope = "users:write" ScopeWorkItemReview Scope = "work-item:review" ScopeWorkItemTagCreate Scope = "work-item-tag:create" ScopeWorkItemTagDelete Scope = "work-item-tag:delete" ScopeWorkItemTagEdit Scope = "work-item-tag:edit" )
Defines values for Scope.
func AllScopeValues ¶
func AllScopeValues() []Scope
AllScopeValues returns all possible values for Scope.
type ServicesMember ¶
type ServicesMember struct { // Role represents a database 'work_item_role' Role WorkItemRole `json:"role"` UserID DbUserID `json:"userID"` }
ServicesMember defines the model for ServicesMember.
type Topics ¶
type Topics string
Topics string identifiers for SSE event listeners.
const (
TopicsGlobalAlerts Topics = "GlobalAlerts"
)
Topics string identifiers for SSE event listeners.
func AllTopicsValues ¶
func AllTopicsValues() []Topics
AllTopicsValues returns all possible values for Topics.
type UpdateProjectConfigJSONRequestBody ¶
type UpdateProjectConfigJSONRequestBody = ProjectConfig
UpdateProjectConfigJSONRequestBody defines body for UpdateProjectConfig for application/json ContentType.
type UpdateUserAuthRequest ¶
type UpdateUserAuthRequest struct { Role *Role `json:"role,omitempty"` Scopes *Scopes `json:"scopes,omitempty"` }
UpdateUserAuthRequest represents User authorization data to update
type UpdateUserAuthorizationJSONRequestBody ¶
type UpdateUserAuthorizationJSONRequestBody = UpdateUserAuthRequest
UpdateUserAuthorizationJSONRequestBody defines body for UpdateUserAuthorization for application/json ContentType.
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody = UpdateUserRequest
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserRequest ¶
type UpdateUserRequest struct { // FirstName originally from auth server but updatable FirstName *string `json:"firstName,omitempty"` // LastName originally from auth server but updatable LastName *string `json:"lastName,omitempty"` }
UpdateUserRequest represents User data to update
type User ¶
type User struct { ApiKey *DbUserAPIKey `json:"apiKey,omitempty"` CreatedAt time.Time `json:"createdAt"` DeletedAt *time.Time `json:"deletedAt"` Email string `json:"email"` FirstName *string `json:"firstName"` FullName *string `json:"fullName"` HasGlobalNotifications bool `json:"hasGlobalNotifications"` HasPersonalNotifications bool `json:"hasPersonalNotifications"` LastName *string `json:"lastName"` Projects *[]DbProject `json:"projects"` Role Role `json:"role"` Scopes Scopes `json:"scopes"` Teams *[]DbTeam `json:"teams"` UserID DbUserID `json:"userID"` Username string `json:"username"` }
User defines the model for User.
type ValidationError ¶
type ValidationError struct { Ctx *map[string]interface{} `json:"ctx,omitempty"` // Detail verbose details of the error Detail struct { Schema map[string]interface{} `json:"schema"` Value string `json:"value"` } `json:"detail"` // Loc location in body path, if any Loc []string `json:"loc"` // Msg should always be shown to the user Msg string `json:"msg"` }
ValidationError defines the model for ValidationError.
type WorkItemCommentCreateRequest ¶
type WorkItemCommentCreateRequest struct { Message string `json:"message"` UserID DbUserID `json:"userID"` WorkItemID int `json:"workItemID"` }
WorkItemCommentCreateRequest defines the model for WorkItemCommentCreateRequest.
type WorkItemCreateRequest ¶
type WorkItemCreateRequest struct {
// contains filtered or unexported fields
}
WorkItemCreateRequest defines the model for WorkItemCreateRequest.
func (WorkItemCreateRequest) AsDemoTwoWorkItemCreateRequest ¶
func (t WorkItemCreateRequest) AsDemoTwoWorkItemCreateRequest() (DemoTwoWorkItemCreateRequest, error)
AsDemoTwoWorkItemCreateRequest returns the union data inside the WorkItemCreateRequest as a DemoTwoWorkItemCreateRequest
func (WorkItemCreateRequest) AsDemoWorkItemCreateRequest ¶
func (t WorkItemCreateRequest) AsDemoWorkItemCreateRequest() (DemoWorkItemCreateRequest, error)
AsDemoWorkItemCreateRequest returns the union data inside the WorkItemCreateRequest as a DemoWorkItemCreateRequest
func (WorkItemCreateRequest) Discriminator ¶
func (t WorkItemCreateRequest) Discriminator() (string, error)
func (*WorkItemCreateRequest) FromDemoTwoWorkItemCreateRequest ¶
func (t *WorkItemCreateRequest) FromDemoTwoWorkItemCreateRequest(v DemoTwoWorkItemCreateRequest) error
FromDemoTwoWorkItemCreateRequest overwrites any union data inside the WorkItemCreateRequest as the provided DemoTwoWorkItemCreateRequest
func (*WorkItemCreateRequest) FromDemoWorkItemCreateRequest ¶
func (t *WorkItemCreateRequest) FromDemoWorkItemCreateRequest(v DemoWorkItemCreateRequest) error
FromDemoWorkItemCreateRequest overwrites any union data inside the WorkItemCreateRequest as the provided DemoWorkItemCreateRequest
func (WorkItemCreateRequest) MarshalJSON ¶
func (t WorkItemCreateRequest) MarshalJSON() ([]byte, error)
func (*WorkItemCreateRequest) MergeDemoTwoWorkItemCreateRequest ¶
func (t *WorkItemCreateRequest) MergeDemoTwoWorkItemCreateRequest(v DemoTwoWorkItemCreateRequest) error
MergeDemoTwoWorkItemCreateRequest performs a merge with any union data inside the WorkItemCreateRequest, using the provided DemoTwoWorkItemCreateRequest
func (*WorkItemCreateRequest) MergeDemoWorkItemCreateRequest ¶
func (t *WorkItemCreateRequest) MergeDemoWorkItemCreateRequest(v DemoWorkItemCreateRequest) error
MergeDemoWorkItemCreateRequest performs a merge with any union data inside the WorkItemCreateRequest, using the provided DemoWorkItemCreateRequest
func (*WorkItemCreateRequest) UnmarshalJSON ¶
func (t *WorkItemCreateRequest) UnmarshalJSON(b []byte) error
func (WorkItemCreateRequest) ValueByDiscriminator ¶
func (t WorkItemCreateRequest) ValueByDiscriminator() (interface{}, error)
type WorkItemRole ¶
type WorkItemRole string
WorkItemRole represents a database 'work_item_role'
const ( WorkItemRolePreparer WorkItemRole = "preparer" WorkItemRoleReviewer WorkItemRole = "reviewer" )
WorkItemRole represents a database 'work_item_role'
func AllWorkItemRoleValues ¶
func AllWorkItemRoleValues() []WorkItemRole
AllWorkItemRoleValues returns all possible values for WorkItemRole.