models

package
v0.0.0-...-078138e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ActivityOpTypeCreateRepo captures enum value "create_repo"
	ActivityOpTypeCreateRepo string = "create_repo"

	// ActivityOpTypeRenameRepo captures enum value "rename_repo"
	ActivityOpTypeRenameRepo string = "rename_repo"

	// ActivityOpTypeStarRepo captures enum value "star_repo"
	ActivityOpTypeStarRepo string = "star_repo"

	// ActivityOpTypeWatchRepo captures enum value "watch_repo"
	ActivityOpTypeWatchRepo string = "watch_repo"

	// ActivityOpTypeCommitRepo captures enum value "commit_repo"
	ActivityOpTypeCommitRepo string = "commit_repo"

	// ActivityOpTypeCreateIssue captures enum value "create_issue"
	ActivityOpTypeCreateIssue string = "create_issue"

	// ActivityOpTypeCreatePullRequest captures enum value "create_pull_request"
	ActivityOpTypeCreatePullRequest string = "create_pull_request"

	// ActivityOpTypeTransferRepo captures enum value "transfer_repo"
	ActivityOpTypeTransferRepo string = "transfer_repo"

	// ActivityOpTypePushTag captures enum value "push_tag"
	ActivityOpTypePushTag string = "push_tag"

	// ActivityOpTypeCommentIssue captures enum value "comment_issue"
	ActivityOpTypeCommentIssue string = "comment_issue"

	// ActivityOpTypeMergePullRequest captures enum value "merge_pull_request"
	ActivityOpTypeMergePullRequest string = "merge_pull_request"

	// ActivityOpTypeCloseIssue captures enum value "close_issue"
	ActivityOpTypeCloseIssue string = "close_issue"

	// ActivityOpTypeReopenIssue captures enum value "reopen_issue"
	ActivityOpTypeReopenIssue string = "reopen_issue"

	// ActivityOpTypeClosePullRequest captures enum value "close_pull_request"
	ActivityOpTypeClosePullRequest string = "close_pull_request"

	// ActivityOpTypeReopenPullRequest captures enum value "reopen_pull_request"
	ActivityOpTypeReopenPullRequest string = "reopen_pull_request"

	// ActivityOpTypeDeleteTag captures enum value "delete_tag"
	ActivityOpTypeDeleteTag string = "delete_tag"

	// ActivityOpTypeDeleteBranch captures enum value "delete_branch"
	ActivityOpTypeDeleteBranch string = "delete_branch"

	// ActivityOpTypeMirrorSyncPush captures enum value "mirror_sync_push"
	ActivityOpTypeMirrorSyncPush string = "mirror_sync_push"

	// ActivityOpTypeMirrorSyncCreate captures enum value "mirror_sync_create"
	ActivityOpTypeMirrorSyncCreate string = "mirror_sync_create"

	// ActivityOpTypeMirrorSyncDelete captures enum value "mirror_sync_delete"
	ActivityOpTypeMirrorSyncDelete string = "mirror_sync_delete"

	// ActivityOpTypeApprovePullRequest captures enum value "approve_pull_request"
	ActivityOpTypeApprovePullRequest string = "approve_pull_request"

	// ActivityOpTypeRejectPullRequest captures enum value "reject_pull_request"
	ActivityOpTypeRejectPullRequest string = "reject_pull_request"

	// ActivityOpTypeCommentPull captures enum value "comment_pull"
	ActivityOpTypeCommentPull string = "comment_pull"

	// ActivityOpTypePublishRelease captures enum value "publish_release"
	ActivityOpTypePublishRelease string = "publish_release"

	// ActivityOpTypePullReviewDismissed captures enum value "pull_review_dismissed"
	ActivityOpTypePullReviewDismissed string = "pull_review_dismissed"

	// ActivityOpTypePullRequestReadyForReview captures enum value "pull_request_ready_for_review"
	ActivityOpTypePullRequestReadyForReview string = "pull_request_ready_for_review"

	// ActivityOpTypeAutoMergePullRequest captures enum value "auto_merge_pull_request"
	ActivityOpTypeAutoMergePullRequest string = "auto_merge_pull_request"
)
View Source
const (

	// ChangeFileOperationOperationCreate captures enum value "create"
	ChangeFileOperationOperationCreate string = "create"

	// ChangeFileOperationOperationUpdate captures enum value "update"
	ChangeFileOperationOperationUpdate string = "update"

	// ChangeFileOperationOperationDelete captures enum value "delete"
	ChangeFileOperationOperationDelete string = "delete"
)
View Source
const (

	// CreateHookOptionTypeDingtalk captures enum value "dingtalk"
	CreateHookOptionTypeDingtalk string = "dingtalk"

	// CreateHookOptionTypeDiscord captures enum value "discord"
	CreateHookOptionTypeDiscord string = "discord"

	// CreateHookOptionTypeGitea captures enum value "gitea"
	CreateHookOptionTypeGitea string = "gitea"

	// CreateHookOptionTypeGogs captures enum value "gogs"
	CreateHookOptionTypeGogs string = "gogs"

	// CreateHookOptionTypeMsteams captures enum value "msteams"
	CreateHookOptionTypeMsteams string = "msteams"

	// CreateHookOptionTypeSlack captures enum value "slack"
	CreateHookOptionTypeSlack string = "slack"

	// CreateHookOptionTypeTelegram captures enum value "telegram"
	CreateHookOptionTypeTelegram string = "telegram"

	// CreateHookOptionTypeFeishu captures enum value "feishu"
	CreateHookOptionTypeFeishu string = "feishu"

	// CreateHookOptionTypeWechatwork captures enum value "wechatwork"
	CreateHookOptionTypeWechatwork string = "wechatwork"

	// CreateHookOptionTypePackagist captures enum value "packagist"
	CreateHookOptionTypePackagist string = "packagist"
)
View Source
const (

	// CreateMilestoneOptionStateOpen captures enum value "open"
	CreateMilestoneOptionStateOpen string = "open"

	// CreateMilestoneOptionStateClosed captures enum value "closed"
	CreateMilestoneOptionStateClosed string = "closed"
)
View Source
const (

	// CreateOrgOptionVisibilityPublic captures enum value "public"
	CreateOrgOptionVisibilityPublic string = "public"

	// CreateOrgOptionVisibilityLimited captures enum value "limited"
	CreateOrgOptionVisibilityLimited string = "limited"

	// CreateOrgOptionVisibilityPrivate captures enum value "private"
	CreateOrgOptionVisibilityPrivate string = "private"
)
View Source
const (

	// CreateRepoOptionObjectFormatNameSha1 captures enum value "sha1"
	CreateRepoOptionObjectFormatNameSha1 string = "sha1"

	// CreateRepoOptionObjectFormatNameSha256 captures enum value "sha256"
	CreateRepoOptionObjectFormatNameSha256 string = "sha256"
)
View Source
const (

	// CreateRepoOptionTrustModelDefault captures enum value "default"
	CreateRepoOptionTrustModelDefault string = "default"

	// CreateRepoOptionTrustModelCollaborator captures enum value "collaborator"
	CreateRepoOptionTrustModelCollaborator string = "collaborator"

	// CreateRepoOptionTrustModelCommitter captures enum value "committer"
	CreateRepoOptionTrustModelCommitter string = "committer"

	// CreateRepoOptionTrustModelCollaboratorcommitter captures enum value "collaboratorcommitter"
	CreateRepoOptionTrustModelCollaboratorcommitter string = "collaboratorcommitter"
)
View Source
const (

	// CreateTeamOptionPermissionRead captures enum value "read"
	CreateTeamOptionPermissionRead string = "read"

	// CreateTeamOptionPermissionWrite captures enum value "write"
	CreateTeamOptionPermissionWrite string = "write"

	// CreateTeamOptionPermissionAdmin captures enum value "admin"
	CreateTeamOptionPermissionAdmin string = "admin"
)
View Source
const (

	// EditOrgOptionVisibilityPublic captures enum value "public"
	EditOrgOptionVisibilityPublic string = "public"

	// EditOrgOptionVisibilityLimited captures enum value "limited"
	EditOrgOptionVisibilityLimited string = "limited"

	// EditOrgOptionVisibilityPrivate captures enum value "private"
	EditOrgOptionVisibilityPrivate string = "private"
)
View Source
const (

	// EditTeamOptionPermissionRead captures enum value "read"
	EditTeamOptionPermissionRead string = "read"

	// EditTeamOptionPermissionWrite captures enum value "write"
	EditTeamOptionPermissionWrite string = "write"

	// EditTeamOptionPermissionAdmin captures enum value "admin"
	EditTeamOptionPermissionAdmin string = "admin"
)
View Source
const (

	// MergePullRequestFormDoMerge captures enum value "merge"
	MergePullRequestFormDoMerge string = "merge"

	// MergePullRequestFormDoRebase captures enum value "rebase"
	MergePullRequestFormDoRebase string = "rebase"

	// MergePullRequestFormDoRebaseDashMerge captures enum value "rebase-merge"
	MergePullRequestFormDoRebaseDashMerge string = "rebase-merge"

	// MergePullRequestFormDoSquash captures enum value "squash"
	MergePullRequestFormDoSquash string = "squash"

	// MergePullRequestFormDoFastDashForwardDashOnly captures enum value "fast-forward-only"
	MergePullRequestFormDoFastDashForwardDashOnly string = "fast-forward-only"

	// MergePullRequestFormDoManuallyDashMerged captures enum value "manually-merged"
	MergePullRequestFormDoManuallyDashMerged string = "manually-merged"
)
View Source
const (

	// MigrateRepoOptionsServiceGit captures enum value "git"
	MigrateRepoOptionsServiceGit string = "git"

	// MigrateRepoOptionsServiceGithub captures enum value "github"
	MigrateRepoOptionsServiceGithub string = "github"

	// MigrateRepoOptionsServiceGitea captures enum value "gitea"
	MigrateRepoOptionsServiceGitea string = "gitea"

	// MigrateRepoOptionsServiceGitlab captures enum value "gitlab"
	MigrateRepoOptionsServiceGitlab string = "gitlab"

	// MigrateRepoOptionsServiceGogs captures enum value "gogs"
	MigrateRepoOptionsServiceGogs string = "gogs"

	// MigrateRepoOptionsServiceOnedev captures enum value "onedev"
	MigrateRepoOptionsServiceOnedev string = "onedev"

	// MigrateRepoOptionsServiceGitbucket captures enum value "gitbucket"
	MigrateRepoOptionsServiceGitbucket string = "gitbucket"

	// MigrateRepoOptionsServiceCodebase captures enum value "codebase"
	MigrateRepoOptionsServiceCodebase string = "codebase"
)
View Source
const (

	// RepositoryObjectFormatNameSha1 captures enum value "sha1"
	RepositoryObjectFormatNameSha1 string = "sha1"

	// RepositoryObjectFormatNameSha256 captures enum value "sha256"
	RepositoryObjectFormatNameSha256 string = "sha256"
)
View Source
const (

	// TeamPermissionNone captures enum value "none"
	TeamPermissionNone string = "none"

	// TeamPermissionRead captures enum value "read"
	TeamPermissionRead string = "read"

	// TeamPermissionWrite captures enum value "write"
	TeamPermissionWrite string = "write"

	// TeamPermissionAdmin captures enum value "admin"
	TeamPermissionAdmin string = "admin"

	// TeamPermissionOwner captures enum value "owner"
	TeamPermissionOwner string = "owner"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {

	// message
	Message string `json:"message,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

APIError APIError is an api error with a message

swagger:model APIError

func (*APIError) ContextValidate

func (m *APIError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this API error based on context it is used

func (*APIError) MarshalBinary

func (m *APIError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIError) UnmarshalBinary

func (m *APIError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIError) Validate

func (m *APIError) Validate(formats strfmt.Registry) error

Validate validates this API error

type AccessToken

type AccessToken struct {

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// scopes
	Scopes []string `json:"scopes"`

	// token
	Token string `json:"sha1,omitempty"`

	// token last eight
	TokenLastEight string `json:"token_last_eight,omitempty"`
}

AccessToken AccessToken represents an API access token.

swagger:model AccessToken

func (*AccessToken) ContextValidate

func (m *AccessToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this access token based on context it is used

func (*AccessToken) MarshalBinary

func (m *AccessToken) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AccessToken) UnmarshalBinary

func (m *AccessToken) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AccessToken) Validate

func (m *AccessToken) Validate(formats strfmt.Registry) error

Validate validates this access token

type ActionTask

type ActionTask struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// display title
	DisplayTitle string `json:"display_title,omitempty"`

	// event
	Event string `json:"event,omitempty"`

	// head branch
	HeadBranch string `json:"head_branch,omitempty"`

	// head s h a
	HeadSHA string `json:"head_sha,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// run number
	RunNumber int64 `json:"run_number,omitempty"`

	// run started at
	// Format: date-time
	RunStartedAt strfmt.DateTime `json:"run_started_at,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// workflow ID
	WorkflowID string `json:"workflow_id,omitempty"`
}

ActionTask ActionTask represents a ActionTask

swagger:model ActionTask

func (*ActionTask) ContextValidate

func (m *ActionTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this action task based on context it is used

func (*ActionTask) MarshalBinary

func (m *ActionTask) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActionTask) UnmarshalBinary

func (m *ActionTask) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionTask) Validate

func (m *ActionTask) Validate(formats strfmt.Registry) error

Validate validates this action task

type ActionTaskResponse

type ActionTaskResponse struct {

	// entries
	Entries []*ActionTask `json:"workflow_runs"`

	// total count
	TotalCount int64 `json:"total_count,omitempty"`
}

ActionTaskResponse ActionTaskResponse returns a ActionTask

swagger:model ActionTaskResponse

func (*ActionTaskResponse) ContextValidate

func (m *ActionTaskResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this action task response based on the context it is used

func (*ActionTaskResponse) MarshalBinary

func (m *ActionTaskResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActionTaskResponse) UnmarshalBinary

func (m *ActionTaskResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionTaskResponse) Validate

func (m *ActionTaskResponse) Validate(formats strfmt.Registry) error

Validate validates this action task response

type ActionVariable

type ActionVariable struct {

	// the value of the variable
	Data string `json:"data,omitempty"`

	// the name of the variable
	Name string `json:"name,omitempty"`

	// the owner to which the variable belongs
	OwnerID int64 `json:"owner_id,omitempty"`

	// the repository to which the variable belongs
	RepoID int64 `json:"repo_id,omitempty"`
}

ActionVariable ActionVariable return value of the query API

swagger:model ActionVariable

func (*ActionVariable) ContextValidate

func (m *ActionVariable) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this action variable based on context it is used

func (*ActionVariable) MarshalBinary

func (m *ActionVariable) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActionVariable) UnmarshalBinary

func (m *ActionVariable) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActionVariable) Validate

func (m *ActionVariable) Validate(formats strfmt.Registry) error

Validate validates this action variable

type Activity

type Activity struct {

	// act user ID
	ActUserID int64 `json:"act_user_id,omitempty"`

	// comment ID
	CommentID int64 `json:"comment_id,omitempty"`

	// content
	Content string `json:"content,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// is private
	IsPrivate bool `json:"is_private,omitempty"`

	// the type of action
	// Enum: ["create_repo","rename_repo","star_repo","watch_repo","commit_repo","create_issue","create_pull_request","transfer_repo","push_tag","comment_issue","merge_pull_request","close_issue","reopen_issue","close_pull_request","reopen_pull_request","delete_tag","delete_branch","mirror_sync_push","mirror_sync_create","mirror_sync_delete","approve_pull_request","reject_pull_request","comment_pull","publish_release","pull_review_dismissed","pull_request_ready_for_review","auto_merge_pull_request"]
	OpType string `json:"op_type,omitempty"`

	// ref name
	RefName string `json:"ref_name,omitempty"`

	// repo ID
	RepoID int64 `json:"repo_id,omitempty"`

	// user ID
	UserID int64 `json:"user_id,omitempty"`

	// act user
	ActUser *User `json:"act_user,omitempty"`

	// comment
	Comment *Comment `json:"comment,omitempty"`

	// repo
	Repo *Repository `json:"repo,omitempty"`
}

Activity activity

swagger:model Activity

func (*Activity) ContextValidate

func (m *Activity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this activity based on the context it is used

func (*Activity) MarshalBinary

func (m *Activity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Activity) UnmarshalBinary

func (m *Activity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Activity) Validate

func (m *Activity) Validate(formats strfmt.Registry) error

Validate validates this activity

type ActivityPub

type ActivityPub struct {

	// context
	Context string `json:"@context,omitempty"`
}

ActivityPub ActivityPub type

swagger:model ActivityPub

func (*ActivityPub) ContextValidate

func (m *ActivityPub) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this activity pub based on context it is used

func (*ActivityPub) MarshalBinary

func (m *ActivityPub) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActivityPub) UnmarshalBinary

func (m *ActivityPub) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActivityPub) Validate

func (m *ActivityPub) Validate(formats strfmt.Registry) error

Validate validates this activity pub

type AddCollaboratorOption

type AddCollaboratorOption struct {

	// permission
	Permission string `json:"permission,omitempty"`
}

AddCollaboratorOption AddCollaboratorOption options when adding a user as a collaborator of a repository

swagger:model AddCollaboratorOption

func (*AddCollaboratorOption) ContextValidate

func (m *AddCollaboratorOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add collaborator option based on context it is used

func (*AddCollaboratorOption) MarshalBinary

func (m *AddCollaboratorOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddCollaboratorOption) UnmarshalBinary

func (m *AddCollaboratorOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddCollaboratorOption) Validate

func (m *AddCollaboratorOption) Validate(formats strfmt.Registry) error

Validate validates this add collaborator option

type AddTimeOption

type AddTimeOption struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// time in seconds
	// Required: true
	Time *int64 `json:"time"`

	// User who spent the time (optional)
	User string `json:"user_name,omitempty"`
}

AddTimeOption AddTimeOption options for adding time to an issue

swagger:model AddTimeOption

func (*AddTimeOption) ContextValidate

func (m *AddTimeOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add time option based on context it is used

func (*AddTimeOption) MarshalBinary

func (m *AddTimeOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddTimeOption) UnmarshalBinary

func (m *AddTimeOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddTimeOption) Validate

func (m *AddTimeOption) Validate(formats strfmt.Registry) error

Validate validates this add time option

type AnnotatedTag

type AnnotatedTag struct {

	// message
	Message string `json:"message,omitempty"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// tag
	Tag string `json:"tag,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// object
	Object *AnnotatedTagObject `json:"object,omitempty"`

	// tagger
	Tagger *CommitUser `json:"tagger,omitempty"`

	// verification
	Verification *PayloadCommitVerification `json:"verification,omitempty"`
}

AnnotatedTag AnnotatedTag represents an annotated tag

swagger:model AnnotatedTag

func (*AnnotatedTag) ContextValidate

func (m *AnnotatedTag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this annotated tag based on the context it is used

func (*AnnotatedTag) MarshalBinary

func (m *AnnotatedTag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotatedTag) UnmarshalBinary

func (m *AnnotatedTag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotatedTag) Validate

func (m *AnnotatedTag) Validate(formats strfmt.Registry) error

Validate validates this annotated tag

type AnnotatedTagObject

type AnnotatedTagObject struct {

	// s h a
	SHA string `json:"sha,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

AnnotatedTagObject AnnotatedTagObject contains meta information of the tag object

swagger:model AnnotatedTagObject

func (*AnnotatedTagObject) ContextValidate

func (m *AnnotatedTagObject) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this annotated tag object based on context it is used

func (*AnnotatedTagObject) MarshalBinary

func (m *AnnotatedTagObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotatedTagObject) UnmarshalBinary

func (m *AnnotatedTagObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotatedTagObject) Validate

func (m *AnnotatedTagObject) Validate(formats strfmt.Registry) error

Validate validates this annotated tag object

type Attachment

type Attachment struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// download count
	DownloadCount int64 `json:"download_count,omitempty"`

	// download URL
	DownloadURL string `json:"browser_download_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// UUID
	UUID string `json:"uuid,omitempty"`
}

Attachment Attachment a generic attachment

swagger:model Attachment

func (*Attachment) ContextValidate

func (m *Attachment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this attachment based on context it is used

func (*Attachment) MarshalBinary

func (m *Attachment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Attachment) UnmarshalBinary

func (m *Attachment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Attachment) Validate

func (m *Attachment) Validate(formats strfmt.Registry) error

Validate validates this attachment

type Badge

type Badge struct {

	// description
	Description string `json:"description,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// image URL
	ImageURL string `json:"image_url,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`
}

Badge Badge represents a user badge

swagger:model Badge

func (*Badge) ContextValidate

func (m *Badge) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this badge based on context it is used

func (*Badge) MarshalBinary

func (m *Badge) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Badge) UnmarshalBinary

func (m *Badge) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Badge) Validate

func (m *Badge) Validate(formats strfmt.Registry) error

Validate validates this badge

type Branch

type Branch struct {

	// effective branch protection name
	EffectiveBranchProtectionName string `json:"effective_branch_protection_name,omitempty"`

	// enable status check
	EnableStatusCheck bool `json:"enable_status_check,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// protected
	Protected bool `json:"protected,omitempty"`

	// required approvals
	RequiredApprovals int64 `json:"required_approvals,omitempty"`

	// status check contexts
	StatusCheckContexts []string `json:"status_check_contexts"`

	// user can merge
	UserCanMerge bool `json:"user_can_merge,omitempty"`

	// user can push
	UserCanPush bool `json:"user_can_push,omitempty"`

	// commit
	Commit *PayloadCommit `json:"commit,omitempty"`
}

Branch Branch represents a repository branch

swagger:model Branch

func (*Branch) ContextValidate

func (m *Branch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this branch based on the context it is used

func (*Branch) MarshalBinary

func (m *Branch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Branch) UnmarshalBinary

func (m *Branch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Branch) Validate

func (m *Branch) Validate(formats strfmt.Registry) error

Validate validates this branch

type BranchProtection

type BranchProtection struct {

	// approvals whitelist teams
	ApprovalsWhitelistTeams []string `json:"approvals_whitelist_teams"`

	// approvals whitelist usernames
	ApprovalsWhitelistUsernames []string `json:"approvals_whitelist_username"`

	// block on official review requests
	BlockOnOfficialReviewRequests bool `json:"block_on_official_review_requests,omitempty"`

	// block on outdated branch
	BlockOnOutdatedBranch bool `json:"block_on_outdated_branch,omitempty"`

	// block on rejected reviews
	BlockOnRejectedReviews bool `json:"block_on_rejected_reviews,omitempty"`

	// Deprecated: true
	BranchName string `json:"branch_name,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// dismiss stale approvals
	DismissStaleApprovals bool `json:"dismiss_stale_approvals,omitempty"`

	// enable approvals whitelist
	EnableApprovalsWhitelist bool `json:"enable_approvals_whitelist,omitempty"`

	// enable force push
	EnableForcePush bool `json:"enable_force_push,omitempty"`

	// enable force push allowlist
	EnableForcePushAllowlist bool `json:"enable_force_push_allowlist,omitempty"`

	// enable merge whitelist
	EnableMergeWhitelist bool `json:"enable_merge_whitelist,omitempty"`

	// enable push
	EnablePush bool `json:"enable_push,omitempty"`

	// enable push whitelist
	EnablePushWhitelist bool `json:"enable_push_whitelist,omitempty"`

	// enable status check
	EnableStatusCheck bool `json:"enable_status_check,omitempty"`

	// force push allowlist deploy keys
	ForcePushAllowlistDeployKeys bool `json:"force_push_allowlist_deploy_keys,omitempty"`

	// force push allowlist teams
	ForcePushAllowlistTeams []string `json:"force_push_allowlist_teams"`

	// force push allowlist usernames
	ForcePushAllowlistUsernames []string `json:"force_push_allowlist_usernames"`

	// ignore stale approvals
	IgnoreStaleApprovals bool `json:"ignore_stale_approvals,omitempty"`

	// merge whitelist teams
	MergeWhitelistTeams []string `json:"merge_whitelist_teams"`

	// merge whitelist usernames
	MergeWhitelistUsernames []string `json:"merge_whitelist_usernames"`

	// protected file patterns
	ProtectedFilePatterns string `json:"protected_file_patterns,omitempty"`

	// push whitelist deploy keys
	PushWhitelistDeployKeys bool `json:"push_whitelist_deploy_keys,omitempty"`

	// push whitelist teams
	PushWhitelistTeams []string `json:"push_whitelist_teams"`

	// push whitelist usernames
	PushWhitelistUsernames []string `json:"push_whitelist_usernames"`

	// require signed commits
	RequireSignedCommits bool `json:"require_signed_commits,omitempty"`

	// required approvals
	RequiredApprovals int64 `json:"required_approvals,omitempty"`

	// rule name
	RuleName string `json:"rule_name,omitempty"`

	// status check contexts
	StatusCheckContexts []string `json:"status_check_contexts"`

	// unprotected file patterns
	UnprotectedFilePatterns string `json:"unprotected_file_patterns,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`
}

BranchProtection BranchProtection represents a branch protection for a repository

swagger:model BranchProtection

func (*BranchProtection) ContextValidate

func (m *BranchProtection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this branch protection based on context it is used

func (*BranchProtection) MarshalBinary

func (m *BranchProtection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BranchProtection) UnmarshalBinary

func (m *BranchProtection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BranchProtection) Validate

func (m *BranchProtection) Validate(formats strfmt.Registry) error

Validate validates this branch protection

type ChangeFileOperation

type ChangeFileOperation struct {

	// new or updated file content, must be base64 encoded
	ContentBase64 string `json:"content,omitempty"`

	// old path of the file to move
	FromPath string `json:"from_path,omitempty"`

	// indicates what to do with the file
	// Required: true
	// Enum: ["create","update","delete"]
	Operation *string `json:"operation"`

	// path to the existing or new file
	// Required: true
	Path *string `json:"path"`

	// sha is the SHA for the file that already exists, required for update or delete
	SHA string `json:"sha,omitempty"`
}

ChangeFileOperation ChangeFileOperation for creating, updating or deleting a file

swagger:model ChangeFileOperation

func (*ChangeFileOperation) ContextValidate

func (m *ChangeFileOperation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this change file operation based on context it is used

func (*ChangeFileOperation) MarshalBinary

func (m *ChangeFileOperation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeFileOperation) UnmarshalBinary

func (m *ChangeFileOperation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeFileOperation) Validate

func (m *ChangeFileOperation) Validate(formats strfmt.Registry) error

Validate validates this change file operation

type ChangeFilesOptions

type ChangeFilesOptions struct {

	// branch (optional) to base this file from. if not given, the default branch is used
	BranchName string `json:"branch,omitempty"`

	// list of file operations
	// Required: true
	Files []*ChangeFileOperation `json:"files"`

	// message (optional) for the commit of this file. if not supplied, a default message will be used
	Message string `json:"message,omitempty"`

	// new_branch (optional) will make a new branch from `branch` before creating the file
	NewBranchName string `json:"new_branch,omitempty"`

	// Add a Signed-off-by trailer by the committer at the end of the commit log message.
	Signoff bool `json:"signoff,omitempty"`

	// author
	Author *Identity `json:"author,omitempty"`

	// committer
	Committer *Identity `json:"committer,omitempty"`

	// dates
	Dates *CommitDateOptions `json:"dates,omitempty"`
}

ChangeFilesOptions ChangeFilesOptions options for creating, updating or deleting multiple files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)

swagger:model ChangeFilesOptions

func (*ChangeFilesOptions) ContextValidate

func (m *ChangeFilesOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this change files options based on the context it is used

func (*ChangeFilesOptions) MarshalBinary

func (m *ChangeFilesOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeFilesOptions) UnmarshalBinary

func (m *ChangeFilesOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeFilesOptions) Validate

func (m *ChangeFilesOptions) Validate(formats strfmt.Registry) error

Validate validates this change files options

type ChangedFile

type ChangedFile struct {

	// additions
	Additions int64 `json:"additions,omitempty"`

	// changes
	Changes int64 `json:"changes,omitempty"`

	// contents URL
	ContentsURL string `json:"contents_url,omitempty"`

	// deletions
	Deletions int64 `json:"deletions,omitempty"`

	// filename
	Filename string `json:"filename,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// previous filename
	PreviousFilename string `json:"previous_filename,omitempty"`

	// raw URL
	RawURL string `json:"raw_url,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

ChangedFile ChangedFile store information about files affected by the pull request

swagger:model ChangedFile

func (*ChangedFile) ContextValidate

func (m *ChangedFile) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this changed file based on context it is used

func (*ChangedFile) MarshalBinary

func (m *ChangedFile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangedFile) UnmarshalBinary

func (m *ChangedFile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangedFile) Validate

func (m *ChangedFile) Validate(formats strfmt.Registry) error

Validate validates this changed file

type CombinedStatus

type CombinedStatus struct {

	// commit URL
	CommitURL string `json:"commit_url,omitempty"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// statuses
	Statuses []*CommitStatus `json:"statuses"`

	// total count
	TotalCount int64 `json:"total_count,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// repository
	Repository *Repository `json:"repository,omitempty"`

	// state
	State CommitStatusState `json:"state,omitempty"`
}

CombinedStatus CombinedStatus holds the combined state of several statuses for a single commit

swagger:model CombinedStatus

func (*CombinedStatus) ContextValidate

func (m *CombinedStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this combined status based on the context it is used

func (*CombinedStatus) MarshalBinary

func (m *CombinedStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CombinedStatus) UnmarshalBinary

func (m *CombinedStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CombinedStatus) Validate

func (m *CombinedStatus) Validate(formats strfmt.Registry) error

Validate validates this combined status

type Comment

type Comment struct {

	// attachments
	Attachments []*Attachment `json:"assets"`

	// body
	Body string `json:"body,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// issue URL
	IssueURL string `json:"issue_url,omitempty"`

	// original author
	OriginalAuthor string `json:"original_author,omitempty"`

	// original author ID
	OriginalAuthorID int64 `json:"original_author_id,omitempty"`

	// p r URL
	PRURL string `json:"pull_request_url,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

Comment Comment represents a comment on a commit or issue

swagger:model Comment

func (*Comment) ContextValidate

func (m *Comment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this comment based on the context it is used

func (*Comment) MarshalBinary

func (m *Comment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Comment) UnmarshalBinary

func (m *Comment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Comment) Validate

func (m *Comment) Validate(formats strfmt.Registry) error

Validate validates this comment

type Commit

type Commit struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// files
	Files []*CommitAffectedFiles `json:"files"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// parents
	Parents []*CommitMeta `json:"parents"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// author
	Author *User `json:"author,omitempty"`

	// commit
	Commit *RepoCommit `json:"commit,omitempty"`

	// committer
	Committer *User `json:"committer,omitempty"`

	// stats
	Stats *CommitStats `json:"stats,omitempty"`
}

Commit Commit contains information generated from a Git commit.

swagger:model Commit

func (*Commit) ContextValidate

func (m *Commit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this commit based on the context it is used

func (*Commit) MarshalBinary

func (m *Commit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Commit) UnmarshalBinary

func (m *Commit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Commit) Validate

func (m *Commit) Validate(formats strfmt.Registry) error

Validate validates this commit

type CommitAffectedFiles

type CommitAffectedFiles struct {

	// filename
	Filename string `json:"filename,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

CommitAffectedFiles CommitAffectedFiles store information about files affected by the commit

swagger:model CommitAffectedFiles

func (*CommitAffectedFiles) ContextValidate

func (m *CommitAffectedFiles) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this commit affected files based on context it is used

func (*CommitAffectedFiles) MarshalBinary

func (m *CommitAffectedFiles) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommitAffectedFiles) UnmarshalBinary

func (m *CommitAffectedFiles) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommitAffectedFiles) Validate

func (m *CommitAffectedFiles) Validate(formats strfmt.Registry) error

Validate validates this commit affected files

type CommitDateOptions

type CommitDateOptions struct {

	// author
	// Format: date-time
	Author strfmt.DateTime `json:"author,omitempty"`

	// committer
	// Format: date-time
	Committer strfmt.DateTime `json:"committer,omitempty"`
}

CommitDateOptions CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE

swagger:model CommitDateOptions

func (*CommitDateOptions) ContextValidate

func (m *CommitDateOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this commit date options based on context it is used

func (*CommitDateOptions) MarshalBinary

func (m *CommitDateOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommitDateOptions) UnmarshalBinary

func (m *CommitDateOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommitDateOptions) Validate

func (m *CommitDateOptions) Validate(formats strfmt.Registry) error

Validate validates this commit date options

type CommitMeta

type CommitMeta struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

CommitMeta CommitMeta contains meta information of a commit in terms of API.

swagger:model CommitMeta

func (*CommitMeta) ContextValidate

func (m *CommitMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this commit meta based on context it is used

func (*CommitMeta) MarshalBinary

func (m *CommitMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommitMeta) UnmarshalBinary

func (m *CommitMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommitMeta) Validate

func (m *CommitMeta) Validate(formats strfmt.Registry) error

Validate validates this commit meta

type CommitStats

type CommitStats struct {

	// additions
	Additions int64 `json:"additions,omitempty"`

	// deletions
	Deletions int64 `json:"deletions,omitempty"`

	// total
	Total int64 `json:"total,omitempty"`
}

CommitStats CommitStats is statistics for a RepoCommit

swagger:model CommitStats

func (*CommitStats) ContextValidate

func (m *CommitStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this commit stats based on context it is used

func (*CommitStats) MarshalBinary

func (m *CommitStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommitStats) UnmarshalBinary

func (m *CommitStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommitStats) Validate

func (m *CommitStats) Validate(formats strfmt.Registry) error

Validate validates this commit stats

type CommitStatus

type CommitStatus struct {

	// context
	Context string `json:"context,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// target URL
	TargetURL string `json:"target_url,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// creator
	Creator *User `json:"creator,omitempty"`

	// status
	Status CommitStatusState `json:"status,omitempty"`
}

CommitStatus CommitStatus holds a single status of a single Commit

swagger:model CommitStatus

func (*CommitStatus) ContextValidate

func (m *CommitStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this commit status based on the context it is used

func (*CommitStatus) MarshalBinary

func (m *CommitStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommitStatus) UnmarshalBinary

func (m *CommitStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommitStatus) Validate

func (m *CommitStatus) Validate(formats strfmt.Registry) error

Validate validates this commit status

type CommitStatusState

type CommitStatusState string

CommitStatusState CommitStatusState holds the state of a CommitStatus It can be "pending", "success", "error" and "failure"

swagger:model CommitStatusState

func (CommitStatusState) ContextValidate

func (m CommitStatusState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this commit status state based on context it is used

func (CommitStatusState) Validate

func (m CommitStatusState) Validate(formats strfmt.Registry) error

Validate validates this commit status state

type CommitUser

type CommitUser struct {

	// date
	Date string `json:"date,omitempty"`

	// email
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

CommitUser CommitUser contains information of a user in the context of a commit.

swagger:model CommitUser

func (*CommitUser) ContextValidate

func (m *CommitUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this commit user based on context it is used

func (*CommitUser) MarshalBinary

func (m *CommitUser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommitUser) UnmarshalBinary

func (m *CommitUser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommitUser) Validate

func (m *CommitUser) Validate(formats strfmt.Registry) error

Validate validates this commit user

type Compare

type Compare struct {

	// commits
	Commits []*Commit `json:"commits"`

	// total commits
	TotalCommits int64 `json:"total_commits,omitempty"`
}

Compare Compare represents a comparison between two commits.

swagger:model Compare

func (*Compare) ContextValidate

func (m *Compare) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this compare based on the context it is used

func (*Compare) MarshalBinary

func (m *Compare) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Compare) UnmarshalBinary

func (m *Compare) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Compare) Validate

func (m *Compare) Validate(formats strfmt.Registry) error

Validate validates this compare

type ContentsResponse

type ContentsResponse struct {

	// `content` is populated when `type` is `file`, otherwise null
	Content string `json:"content,omitempty"`

	// download URL
	DownloadURL string `json:"download_url,omitempty"`

	// `encoding` is populated when `type` is `file`, otherwise null
	Encoding string `json:"encoding,omitempty"`

	// git URL
	GitURL string `json:"git_url,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// last commit s h a
	LastCommitSHA string `json:"last_commit_sha,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// `submodule_git_url` is populated when `type` is `submodule`, otherwise null
	SubmoduleGitURL string `json:"submodule_git_url,omitempty"`

	// `target` is populated when `type` is `symlink`, otherwise null
	Target string `json:"target,omitempty"`

	// `type` will be `file`, `dir`, `symlink`, or `submodule`
	Type string `json:"type,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// links
	Links *FileLinksResponse `json:"_links,omitempty"`
}

ContentsResponse ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content

swagger:model ContentsResponse

func (*ContentsResponse) ContextValidate

func (m *ContentsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this contents response based on the context it is used

func (*ContentsResponse) MarshalBinary

func (m *ContentsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContentsResponse) UnmarshalBinary

func (m *ContentsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContentsResponse) Validate

func (m *ContentsResponse) Validate(formats strfmt.Registry) error

Validate validates this contents response

type CreateAccessTokenOption

type CreateAccessTokenOption struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// scopes
	Scopes []string `json:"scopes"`
}

CreateAccessTokenOption CreateAccessTokenOption options when create access token

swagger:model CreateAccessTokenOption

func (*CreateAccessTokenOption) ContextValidate

func (m *CreateAccessTokenOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create access token option based on context it is used

func (*CreateAccessTokenOption) MarshalBinary

func (m *CreateAccessTokenOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateAccessTokenOption) UnmarshalBinary

func (m *CreateAccessTokenOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateAccessTokenOption) Validate

func (m *CreateAccessTokenOption) Validate(formats strfmt.Registry) error

Validate validates this create access token option

type CreateBranchProtectionOption

type CreateBranchProtectionOption struct {

	// approvals whitelist teams
	ApprovalsWhitelistTeams []string `json:"approvals_whitelist_teams"`

	// approvals whitelist usernames
	ApprovalsWhitelistUsernames []string `json:"approvals_whitelist_username"`

	// block on official review requests
	BlockOnOfficialReviewRequests bool `json:"block_on_official_review_requests,omitempty"`

	// block on outdated branch
	BlockOnOutdatedBranch bool `json:"block_on_outdated_branch,omitempty"`

	// block on rejected reviews
	BlockOnRejectedReviews bool `json:"block_on_rejected_reviews,omitempty"`

	// Deprecated: true
	BranchName string `json:"branch_name,omitempty"`

	// dismiss stale approvals
	DismissStaleApprovals bool `json:"dismiss_stale_approvals,omitempty"`

	// enable approvals whitelist
	EnableApprovalsWhitelist bool `json:"enable_approvals_whitelist,omitempty"`

	// enable force push
	EnableForcePush bool `json:"enable_force_push,omitempty"`

	// enable force push allowlist
	EnableForcePushAllowlist bool `json:"enable_force_push_allowlist,omitempty"`

	// enable merge whitelist
	EnableMergeWhitelist bool `json:"enable_merge_whitelist,omitempty"`

	// enable push
	EnablePush bool `json:"enable_push,omitempty"`

	// enable push whitelist
	EnablePushWhitelist bool `json:"enable_push_whitelist,omitempty"`

	// enable status check
	EnableStatusCheck bool `json:"enable_status_check,omitempty"`

	// force push allowlist deploy keys
	ForcePushAllowlistDeployKeys bool `json:"force_push_allowlist_deploy_keys,omitempty"`

	// force push allowlist teams
	ForcePushAllowlistTeams []string `json:"force_push_allowlist_teams"`

	// force push allowlist usernames
	ForcePushAllowlistUsernames []string `json:"force_push_allowlist_usernames"`

	// ignore stale approvals
	IgnoreStaleApprovals bool `json:"ignore_stale_approvals,omitempty"`

	// merge whitelist teams
	MergeWhitelistTeams []string `json:"merge_whitelist_teams"`

	// merge whitelist usernames
	MergeWhitelistUsernames []string `json:"merge_whitelist_usernames"`

	// protected file patterns
	ProtectedFilePatterns string `json:"protected_file_patterns,omitempty"`

	// push whitelist deploy keys
	PushWhitelistDeployKeys bool `json:"push_whitelist_deploy_keys,omitempty"`

	// push whitelist teams
	PushWhitelistTeams []string `json:"push_whitelist_teams"`

	// push whitelist usernames
	PushWhitelistUsernames []string `json:"push_whitelist_usernames"`

	// require signed commits
	RequireSignedCommits bool `json:"require_signed_commits,omitempty"`

	// required approvals
	RequiredApprovals int64 `json:"required_approvals,omitempty"`

	// rule name
	RuleName string `json:"rule_name,omitempty"`

	// status check contexts
	StatusCheckContexts []string `json:"status_check_contexts"`

	// unprotected file patterns
	UnprotectedFilePatterns string `json:"unprotected_file_patterns,omitempty"`
}

CreateBranchProtectionOption CreateBranchProtectionOption options for creating a branch protection

swagger:model CreateBranchProtectionOption

func (*CreateBranchProtectionOption) ContextValidate

func (m *CreateBranchProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create branch protection option based on context it is used

func (*CreateBranchProtectionOption) MarshalBinary

func (m *CreateBranchProtectionOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateBranchProtectionOption) UnmarshalBinary

func (m *CreateBranchProtectionOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateBranchProtectionOption) Validate

func (m *CreateBranchProtectionOption) Validate(formats strfmt.Registry) error

Validate validates this create branch protection option

type CreateBranchRepoOption

type CreateBranchRepoOption struct {

	// Name of the branch to create
	// Required: true
	BranchName *string `json:"new_branch_name"`

	// Deprecated: true
	// Name of the old branch to create from
	OldBranchName string `json:"old_branch_name,omitempty"`

	// Name of the old branch/tag/commit to create from
	OldRefName string `json:"old_ref_name,omitempty"`
}

CreateBranchRepoOption CreateBranchRepoOption options when creating a branch in a repository

swagger:model CreateBranchRepoOption

func (*CreateBranchRepoOption) ContextValidate

func (m *CreateBranchRepoOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create branch repo option based on context it is used

func (*CreateBranchRepoOption) MarshalBinary

func (m *CreateBranchRepoOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateBranchRepoOption) UnmarshalBinary

func (m *CreateBranchRepoOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateBranchRepoOption) Validate

func (m *CreateBranchRepoOption) Validate(formats strfmt.Registry) error

Validate validates this create branch repo option

type CreateEmailOption

type CreateEmailOption struct {

	// email addresses to add
	Emails []string `json:"emails"`
}

CreateEmailOption CreateEmailOption options when creating email addresses

swagger:model CreateEmailOption

func (*CreateEmailOption) ContextValidate

func (m *CreateEmailOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create email option based on context it is used

func (*CreateEmailOption) MarshalBinary

func (m *CreateEmailOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateEmailOption) UnmarshalBinary

func (m *CreateEmailOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateEmailOption) Validate

func (m *CreateEmailOption) Validate(formats strfmt.Registry) error

Validate validates this create email option

type CreateFileOptions

type CreateFileOptions struct {

	// branch (optional) to base this file from. if not given, the default branch is used
	BranchName string `json:"branch,omitempty"`

	// content must be base64 encoded
	// Required: true
	ContentBase64 *string `json:"content"`

	// message (optional) for the commit of this file. if not supplied, a default message will be used
	Message string `json:"message,omitempty"`

	// new_branch (optional) will make a new branch from `branch` before creating the file
	NewBranchName string `json:"new_branch,omitempty"`

	// Add a Signed-off-by trailer by the committer at the end of the commit log message.
	Signoff bool `json:"signoff,omitempty"`

	// author
	Author *Identity `json:"author,omitempty"`

	// committer
	Committer *Identity `json:"committer,omitempty"`

	// dates
	Dates *CommitDateOptions `json:"dates,omitempty"`
}

CreateFileOptions CreateFileOptions options for creating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)

swagger:model CreateFileOptions

func (*CreateFileOptions) ContextValidate

func (m *CreateFileOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create file options based on the context it is used

func (*CreateFileOptions) MarshalBinary

func (m *CreateFileOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateFileOptions) UnmarshalBinary

func (m *CreateFileOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateFileOptions) Validate

func (m *CreateFileOptions) Validate(formats strfmt.Registry) error

Validate validates this create file options

type CreateForkOption

type CreateForkOption struct {

	// name of the forked repository
	Name string `json:"name,omitempty"`

	// organization name, if forking into an organization
	Organization string `json:"organization,omitempty"`
}

CreateForkOption CreateForkOption options for creating a fork

swagger:model CreateForkOption

func (*CreateForkOption) ContextValidate

func (m *CreateForkOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create fork option based on context it is used

func (*CreateForkOption) MarshalBinary

func (m *CreateForkOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateForkOption) UnmarshalBinary

func (m *CreateForkOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateForkOption) Validate

func (m *CreateForkOption) Validate(formats strfmt.Registry) error

Validate validates this create fork option

type CreateGPGKeyOption

type CreateGPGKeyOption struct {

	// An armored GPG key to add
	// Required: true
	ArmoredKey *string `json:"armored_public_key"`

	// signature
	Signature string `json:"armored_signature,omitempty"`
}

CreateGPGKeyOption CreateGPGKeyOption options create user GPG key

swagger:model CreateGPGKeyOption

func (*CreateGPGKeyOption) ContextValidate

func (m *CreateGPGKeyOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create g p g key option based on context it is used

func (*CreateGPGKeyOption) MarshalBinary

func (m *CreateGPGKeyOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateGPGKeyOption) UnmarshalBinary

func (m *CreateGPGKeyOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateGPGKeyOption) Validate

func (m *CreateGPGKeyOption) Validate(formats strfmt.Registry) error

Validate validates this create g p g key option

type CreateHookOption

type CreateHookOption struct {

	// active
	Active *bool `json:"active,omitempty"`

	// authorization header
	AuthorizationHeader string `json:"authorization_header,omitempty"`

	// branch filter
	BranchFilter string `json:"branch_filter,omitempty"`

	// events
	Events []string `json:"events"`

	// type
	// Required: true
	// Enum: ["dingtalk","discord","gitea","gogs","msteams","slack","telegram","feishu","wechatwork","packagist"]
	Type *string `json:"type"`

	// config
	// Required: true
	Config CreateHookOptionConfig `json:"config"`
}

CreateHookOption CreateHookOption options when create a hook

swagger:model CreateHookOption

func (*CreateHookOption) ContextValidate

func (m *CreateHookOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create hook option based on the context it is used

func (*CreateHookOption) MarshalBinary

func (m *CreateHookOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateHookOption) UnmarshalBinary

func (m *CreateHookOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateHookOption) Validate

func (m *CreateHookOption) Validate(formats strfmt.Registry) error

Validate validates this create hook option

type CreateHookOptionConfig

type CreateHookOptionConfig map[string]string

CreateHookOptionConfig CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required

swagger:model CreateHookOptionConfig

func (CreateHookOptionConfig) ContextValidate

func (m CreateHookOptionConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create hook option config based on context it is used

func (CreateHookOptionConfig) Validate

func (m CreateHookOptionConfig) Validate(formats strfmt.Registry) error

Validate validates this create hook option config

type CreateIssueCommentOption

type CreateIssueCommentOption struct {

	// body
	// Required: true
	Body *string `json:"body"`
}

CreateIssueCommentOption CreateIssueCommentOption options for creating a comment on an issue

swagger:model CreateIssueCommentOption

func (*CreateIssueCommentOption) ContextValidate

func (m *CreateIssueCommentOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create issue comment option based on context it is used

func (*CreateIssueCommentOption) MarshalBinary

func (m *CreateIssueCommentOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateIssueCommentOption) UnmarshalBinary

func (m *CreateIssueCommentOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateIssueCommentOption) Validate

func (m *CreateIssueCommentOption) Validate(formats strfmt.Registry) error

Validate validates this create issue comment option

type CreateIssueOption

type CreateIssueOption struct {

	// deprecated
	Assignee string `json:"assignee,omitempty"`

	// assignees
	Assignees []string `json:"assignees"`

	// body
	Body string `json:"body,omitempty"`

	// closed
	Closed bool `json:"closed,omitempty"`

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_date,omitempty"`

	// list of label ids
	Labels []int64 `json:"labels"`

	// milestone id
	Milestone int64 `json:"milestone,omitempty"`

	// ref
	Ref string `json:"ref,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`
}

CreateIssueOption CreateIssueOption options to create one issue

swagger:model CreateIssueOption

func (*CreateIssueOption) ContextValidate

func (m *CreateIssueOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create issue option based on context it is used

func (*CreateIssueOption) MarshalBinary

func (m *CreateIssueOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateIssueOption) UnmarshalBinary

func (m *CreateIssueOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateIssueOption) Validate

func (m *CreateIssueOption) Validate(formats strfmt.Registry) error

Validate validates this create issue option

type CreateKeyOption

type CreateKeyOption struct {

	// An armored SSH key to add
	// Required: true
	Key *string `json:"key"`

	// Describe if the key has only read access or read/write
	ReadOnly bool `json:"read_only,omitempty"`

	// Title of the key to add
	// Required: true
	Title *string `json:"title"`
}

CreateKeyOption CreateKeyOption options when creating a key

swagger:model CreateKeyOption

func (*CreateKeyOption) ContextValidate

func (m *CreateKeyOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create key option based on context it is used

func (*CreateKeyOption) MarshalBinary

func (m *CreateKeyOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateKeyOption) UnmarshalBinary

func (m *CreateKeyOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateKeyOption) Validate

func (m *CreateKeyOption) Validate(formats strfmt.Registry) error

Validate validates this create key option

type CreateLabelOption

type CreateLabelOption struct {

	// color
	// Example: #00aabb
	// Required: true
	Color *string `json:"color"`

	// description
	Description string `json:"description,omitempty"`

	// exclusive
	// Example: false
	Exclusive bool `json:"exclusive,omitempty"`

	// is archived
	// Example: false
	IsArchived bool `json:"is_archived,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`
}

CreateLabelOption CreateLabelOption options for creating a label

swagger:model CreateLabelOption

func (*CreateLabelOption) ContextValidate

func (m *CreateLabelOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create label option based on context it is used

func (*CreateLabelOption) MarshalBinary

func (m *CreateLabelOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateLabelOption) UnmarshalBinary

func (m *CreateLabelOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateLabelOption) Validate

func (m *CreateLabelOption) Validate(formats strfmt.Registry) error

Validate validates this create label option

type CreateMilestoneOption

type CreateMilestoneOption struct {

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_on,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// state
	// Enum: ["open","closed"]
	State string `json:"state,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

CreateMilestoneOption CreateMilestoneOption options for creating a milestone

swagger:model CreateMilestoneOption

func (*CreateMilestoneOption) ContextValidate

func (m *CreateMilestoneOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create milestone option based on context it is used

func (*CreateMilestoneOption) MarshalBinary

func (m *CreateMilestoneOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateMilestoneOption) UnmarshalBinary

func (m *CreateMilestoneOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateMilestoneOption) Validate

func (m *CreateMilestoneOption) Validate(formats strfmt.Registry) error

Validate validates this create milestone option

type CreateOAuth2ApplicationOptions

type CreateOAuth2ApplicationOptions struct {

	// confidential client
	ConfidentialClient bool `json:"confidential_client,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// redirect u r is
	RedirectURIs []string `json:"redirect_uris"`

	// skip secondary authorization
	SkipSecondaryAuthorization bool `json:"skip_secondary_authorization,omitempty"`
}

CreateOAuth2ApplicationOptions CreateOAuth2ApplicationOptions holds options to create an oauth2 application

swagger:model CreateOAuth2ApplicationOptions

func (*CreateOAuth2ApplicationOptions) ContextValidate

func (m *CreateOAuth2ApplicationOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create o auth2 application options based on context it is used

func (*CreateOAuth2ApplicationOptions) MarshalBinary

func (m *CreateOAuth2ApplicationOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOAuth2ApplicationOptions) UnmarshalBinary

func (m *CreateOAuth2ApplicationOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOAuth2ApplicationOptions) Validate

func (m *CreateOAuth2ApplicationOptions) Validate(formats strfmt.Registry) error

Validate validates this create o auth2 application options

type CreateOrUpdateSecretOption

type CreateOrUpdateSecretOption struct {

	// Data of the secret to update
	// Required: true
	Data *string `json:"data"`
}

CreateOrUpdateSecretOption CreateOrUpdateSecretOption options when creating or updating secret

swagger:model CreateOrUpdateSecretOption

func (*CreateOrUpdateSecretOption) ContextValidate

func (m *CreateOrUpdateSecretOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create or update secret option based on context it is used

func (*CreateOrUpdateSecretOption) MarshalBinary

func (m *CreateOrUpdateSecretOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrUpdateSecretOption) UnmarshalBinary

func (m *CreateOrUpdateSecretOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrUpdateSecretOption) Validate

func (m *CreateOrUpdateSecretOption) Validate(formats strfmt.Registry) error

Validate validates this create or update secret option

type CreateOrgOption

type CreateOrgOption struct {

	// description
	Description string `json:"description,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// repo admin change team access
	RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access,omitempty"`

	// user name
	// Required: true
	UserName *string `json:"username"`

	// possible values are `public` (default), `limited` or `private`
	// Enum: ["public","limited","private"]
	Visibility string `json:"visibility,omitempty"`

	// website
	Website string `json:"website,omitempty"`
}

CreateOrgOption CreateOrgOption options for creating an organization

swagger:model CreateOrgOption

func (*CreateOrgOption) ContextValidate

func (m *CreateOrgOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create org option based on context it is used

func (*CreateOrgOption) MarshalBinary

func (m *CreateOrgOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrgOption) UnmarshalBinary

func (m *CreateOrgOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrgOption) Validate

func (m *CreateOrgOption) Validate(formats strfmt.Registry) error

Validate validates this create org option

type CreatePullRequestOption

type CreatePullRequestOption struct {

	// assignee
	Assignee string `json:"assignee,omitempty"`

	// assignees
	Assignees []string `json:"assignees"`

	// base
	Base string `json:"base,omitempty"`

	// body
	Body string `json:"body,omitempty"`

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_date,omitempty"`

	// head
	Head string `json:"head,omitempty"`

	// labels
	Labels []int64 `json:"labels"`

	// milestone
	Milestone int64 `json:"milestone,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

CreatePullRequestOption CreatePullRequestOption options when creating a pull request

swagger:model CreatePullRequestOption

func (*CreatePullRequestOption) ContextValidate

func (m *CreatePullRequestOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create pull request option based on context it is used

func (*CreatePullRequestOption) MarshalBinary

func (m *CreatePullRequestOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePullRequestOption) UnmarshalBinary

func (m *CreatePullRequestOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePullRequestOption) Validate

func (m *CreatePullRequestOption) Validate(formats strfmt.Registry) error

Validate validates this create pull request option

type CreatePullReviewComment

type CreatePullReviewComment struct {

	// body
	Body string `json:"body,omitempty"`

	// if comment to new file line or 0
	NewLineNum int64 `json:"new_position,omitempty"`

	// if comment to old file line or 0
	OldLineNum int64 `json:"old_position,omitempty"`

	// the tree path
	Path string `json:"path,omitempty"`
}

CreatePullReviewComment CreatePullReviewComment represent a review comment for creation api

swagger:model CreatePullReviewComment

func (*CreatePullReviewComment) ContextValidate

func (m *CreatePullReviewComment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create pull review comment based on context it is used

func (*CreatePullReviewComment) MarshalBinary

func (m *CreatePullReviewComment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePullReviewComment) UnmarshalBinary

func (m *CreatePullReviewComment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePullReviewComment) Validate

func (m *CreatePullReviewComment) Validate(formats strfmt.Registry) error

Validate validates this create pull review comment

type CreatePullReviewOptions

type CreatePullReviewOptions struct {

	// body
	Body string `json:"body,omitempty"`

	// comments
	Comments []*CreatePullReviewComment `json:"comments"`

	// commit ID
	CommitID string `json:"commit_id,omitempty"`

	// event
	Event ReviewStateType `json:"event,omitempty"`
}

CreatePullReviewOptions CreatePullReviewOptions are options to create a pull review

swagger:model CreatePullReviewOptions

func (*CreatePullReviewOptions) ContextValidate

func (m *CreatePullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create pull review options based on the context it is used

func (*CreatePullReviewOptions) MarshalBinary

func (m *CreatePullReviewOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePullReviewOptions) UnmarshalBinary

func (m *CreatePullReviewOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePullReviewOptions) Validate

func (m *CreatePullReviewOptions) Validate(formats strfmt.Registry) error

Validate validates this create pull review options

type CreatePushMirrorOption

type CreatePushMirrorOption struct {

	// interval
	Interval string `json:"interval,omitempty"`

	// remote address
	RemoteAddress string `json:"remote_address,omitempty"`

	// remote password
	RemotePassword string `json:"remote_password,omitempty"`

	// remote username
	RemoteUsername string `json:"remote_username,omitempty"`

	// sync on commit
	SyncOnCommit bool `json:"sync_on_commit,omitempty"`
}

CreatePushMirrorOption CreatePushMirrorOption represents need information to create a push mirror of a repository.

swagger:model CreatePushMirrorOption

func (*CreatePushMirrorOption) ContextValidate

func (m *CreatePushMirrorOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create push mirror option based on context it is used

func (*CreatePushMirrorOption) MarshalBinary

func (m *CreatePushMirrorOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePushMirrorOption) UnmarshalBinary

func (m *CreatePushMirrorOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePushMirrorOption) Validate

func (m *CreatePushMirrorOption) Validate(formats strfmt.Registry) error

Validate validates this create push mirror option

type CreateReleaseOption

type CreateReleaseOption struct {

	// is draft
	IsDraft bool `json:"draft,omitempty"`

	// is prerelease
	IsPrerelease bool `json:"prerelease,omitempty"`

	// note
	Note string `json:"body,omitempty"`

	// tag name
	// Required: true
	TagName *string `json:"tag_name"`

	// target
	Target string `json:"target_commitish,omitempty"`

	// title
	Title string `json:"name,omitempty"`
}

CreateReleaseOption CreateReleaseOption options when creating a release

swagger:model CreateReleaseOption

func (*CreateReleaseOption) ContextValidate

func (m *CreateReleaseOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create release option based on context it is used

func (*CreateReleaseOption) MarshalBinary

func (m *CreateReleaseOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateReleaseOption) UnmarshalBinary

func (m *CreateReleaseOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateReleaseOption) Validate

func (m *CreateReleaseOption) Validate(formats strfmt.Registry) error

Validate validates this create release option

type CreateRepoOption

type CreateRepoOption struct {

	// Whether the repository should be auto-initialized?
	AutoInit bool `json:"auto_init,omitempty"`

	// DefaultBranch of the repository (used when initializes and in template)
	DefaultBranch string `json:"default_branch,omitempty"`

	// Description of the repository to create
	Description string `json:"description,omitempty"`

	// Gitignores to use
	Gitignores string `json:"gitignores,omitempty"`

	// Label-Set to use
	IssueLabels string `json:"issue_labels,omitempty"`

	// License to use
	License string `json:"license,omitempty"`

	// Name of the repository to create
	// Required: true
	Name *string `json:"name"`

	// ObjectFormatName of the underlying git repository
	// Enum: ["sha1","sha256"]
	ObjectFormatName string `json:"object_format_name,omitempty"`

	// Whether the repository is private
	Private bool `json:"private,omitempty"`

	// Readme of the repository to create
	Readme string `json:"readme,omitempty"`

	// Whether the repository is template
	Template bool `json:"template,omitempty"`

	// TrustModel of the repository
	// Enum: ["default","collaborator","committer","collaboratorcommitter"]
	TrustModel string `json:"trust_model,omitempty"`
}

CreateRepoOption CreateRepoOption options when creating repository

swagger:model CreateRepoOption

func (*CreateRepoOption) ContextValidate

func (m *CreateRepoOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create repo option based on context it is used

func (*CreateRepoOption) MarshalBinary

func (m *CreateRepoOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateRepoOption) UnmarshalBinary

func (m *CreateRepoOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateRepoOption) Validate

func (m *CreateRepoOption) Validate(formats strfmt.Registry) error

Validate validates this create repo option

type CreateStatusOption

type CreateStatusOption struct {

	// context
	Context string `json:"context,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// target URL
	TargetURL string `json:"target_url,omitempty"`

	// state
	State CommitStatusState `json:"state,omitempty"`
}

CreateStatusOption CreateStatusOption holds the information needed to create a new CommitStatus for a Commit

swagger:model CreateStatusOption

func (*CreateStatusOption) ContextValidate

func (m *CreateStatusOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create status option based on the context it is used

func (*CreateStatusOption) MarshalBinary

func (m *CreateStatusOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateStatusOption) UnmarshalBinary

func (m *CreateStatusOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateStatusOption) Validate

func (m *CreateStatusOption) Validate(formats strfmt.Registry) error

Validate validates this create status option

type CreateTagOption

type CreateTagOption struct {

	// message
	Message string `json:"message,omitempty"`

	// tag name
	// Required: true
	TagName *string `json:"tag_name"`

	// target
	Target string `json:"target,omitempty"`
}

CreateTagOption CreateTagOption options when creating a tag

swagger:model CreateTagOption

func (*CreateTagOption) ContextValidate

func (m *CreateTagOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create tag option based on context it is used

func (*CreateTagOption) MarshalBinary

func (m *CreateTagOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateTagOption) UnmarshalBinary

func (m *CreateTagOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateTagOption) Validate

func (m *CreateTagOption) Validate(formats strfmt.Registry) error

Validate validates this create tag option

type CreateTagProtectionOption

type CreateTagProtectionOption struct {

	// name pattern
	NamePattern string `json:"name_pattern,omitempty"`

	// whitelist teams
	WhitelistTeams []string `json:"whitelist_teams"`

	// whitelist usernames
	WhitelistUsernames []string `json:"whitelist_usernames"`
}

CreateTagProtectionOption CreateTagProtectionOption options for creating a tag protection

swagger:model CreateTagProtectionOption

func (*CreateTagProtectionOption) ContextValidate

func (m *CreateTagProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create tag protection option based on context it is used

func (*CreateTagProtectionOption) MarshalBinary

func (m *CreateTagProtectionOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateTagProtectionOption) UnmarshalBinary

func (m *CreateTagProtectionOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateTagProtectionOption) Validate

func (m *CreateTagProtectionOption) Validate(formats strfmt.Registry) error

Validate validates this create tag protection option

type CreateTeamOption

type CreateTeamOption struct {

	// can create org repo
	CanCreateOrgRepo bool `json:"can_create_org_repo,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// includes all repositories
	IncludesAllRepositories bool `json:"includes_all_repositories,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// permission
	// Enum: ["read","write","admin"]
	Permission string `json:"permission,omitempty"`

	// units
	// Example: ["repo.actions","repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.ext_wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
	Units []string `json:"units"`

	// units map
	// Example: {\"repo.actions\",\"repo.packages\",\"repo.code\":\"read\",\"repo.issues\":\"write\",\"repo.ext_issues\":\"none\",\"repo.wiki\":\"admin\",\"repo.pulls\":\"owner\",\"repo.releases\":\"none\",\"repo.projects\":\"none\",\"repo.ext_wiki\":\"none\"}
	UnitsMap map[string]string `json:"units_map,omitempty"`
}

CreateTeamOption CreateTeamOption options for creating a team

swagger:model CreateTeamOption

func (*CreateTeamOption) ContextValidate

func (m *CreateTeamOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create team option based on context it is used

func (*CreateTeamOption) MarshalBinary

func (m *CreateTeamOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateTeamOption) UnmarshalBinary

func (m *CreateTeamOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateTeamOption) Validate

func (m *CreateTeamOption) Validate(formats strfmt.Registry) error

Validate validates this create team option

type CreateUserOption

type CreateUserOption struct {

	// For explicitly setting the user creation timestamp. Useful when users are
	// migrated from other systems. When omitted, the user's creation timestamp
	// will be set to "now".
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// email
	// Required: true
	// Format: email
	Email *strfmt.Email `json:"email"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// login name
	LoginName string `json:"login_name,omitempty"`

	// must change password
	MustChangePassword bool `json:"must_change_password,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// restricted
	Restricted bool `json:"restricted,omitempty"`

	// send notify
	SendNotify bool `json:"send_notify,omitempty"`

	// source ID
	SourceID int64 `json:"source_id,omitempty"`

	// username
	// Required: true
	Username *string `json:"username"`

	// visibility
	Visibility string `json:"visibility,omitempty"`
}

CreateUserOption CreateUserOption create user options

swagger:model CreateUserOption

func (*CreateUserOption) ContextValidate

func (m *CreateUserOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create user option based on context it is used

func (*CreateUserOption) MarshalBinary

func (m *CreateUserOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateUserOption) UnmarshalBinary

func (m *CreateUserOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateUserOption) Validate

func (m *CreateUserOption) Validate(formats strfmt.Registry) error

Validate validates this create user option

type CreateVariableOption

type CreateVariableOption struct {

	// Value of the variable to create
	// Required: true
	Value *string `json:"value"`
}

CreateVariableOption CreateVariableOption the option when creating variable

swagger:model CreateVariableOption

func (*CreateVariableOption) ContextValidate

func (m *CreateVariableOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create variable option based on context it is used

func (*CreateVariableOption) MarshalBinary

func (m *CreateVariableOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateVariableOption) UnmarshalBinary

func (m *CreateVariableOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateVariableOption) Validate

func (m *CreateVariableOption) Validate(formats strfmt.Registry) error

Validate validates this create variable option

type CreateWikiPageOptions

type CreateWikiPageOptions struct {

	// content must be base64 encoded
	ContentBase64 string `json:"content_base64,omitempty"`

	// optional commit message summarizing the change
	Message string `json:"message,omitempty"`

	// page title. leave empty to keep unchanged
	Title string `json:"title,omitempty"`
}

CreateWikiPageOptions CreateWikiPageOptions form for creating wiki

swagger:model CreateWikiPageOptions

func (*CreateWikiPageOptions) ContextValidate

func (m *CreateWikiPageOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create wiki page options based on context it is used

func (*CreateWikiPageOptions) MarshalBinary

func (m *CreateWikiPageOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateWikiPageOptions) UnmarshalBinary

func (m *CreateWikiPageOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateWikiPageOptions) Validate

func (m *CreateWikiPageOptions) Validate(formats strfmt.Registry) error

Validate validates this create wiki page options

type Cron

type Cron struct {

	// exec times
	ExecTimes int64 `json:"exec_times,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// next
	// Format: date-time
	Next strfmt.DateTime `json:"next,omitempty"`

	// prev
	// Format: date-time
	Prev strfmt.DateTime `json:"prev,omitempty"`

	// schedule
	Schedule string `json:"schedule,omitempty"`
}

Cron Cron represents a Cron task

swagger:model Cron

func (*Cron) ContextValidate

func (m *Cron) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cron based on context it is used

func (*Cron) MarshalBinary

func (m *Cron) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Cron) UnmarshalBinary

func (m *Cron) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Cron) Validate

func (m *Cron) Validate(formats strfmt.Registry) error

Validate validates this cron

type DeleteEmailOption

type DeleteEmailOption struct {

	// email addresses to delete
	Emails []string `json:"emails"`
}

DeleteEmailOption DeleteEmailOption options when deleting email addresses

swagger:model DeleteEmailOption

func (*DeleteEmailOption) ContextValidate

func (m *DeleteEmailOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete email option based on context it is used

func (*DeleteEmailOption) MarshalBinary

func (m *DeleteEmailOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteEmailOption) UnmarshalBinary

func (m *DeleteEmailOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteEmailOption) Validate

func (m *DeleteEmailOption) Validate(formats strfmt.Registry) error

Validate validates this delete email option

type DeleteFileOptions

type DeleteFileOptions struct {

	// branch (optional) to base this file from. if not given, the default branch is used
	BranchName string `json:"branch,omitempty"`

	// message (optional) for the commit of this file. if not supplied, a default message will be used
	Message string `json:"message,omitempty"`

	// new_branch (optional) will make a new branch from `branch` before creating the file
	NewBranchName string `json:"new_branch,omitempty"`

	// sha is the SHA for the file that already exists
	// Required: true
	SHA *string `json:"sha"`

	// Add a Signed-off-by trailer by the committer at the end of the commit log message.
	Signoff bool `json:"signoff,omitempty"`

	// author
	Author *Identity `json:"author,omitempty"`

	// committer
	Committer *Identity `json:"committer,omitempty"`

	// dates
	Dates *CommitDateOptions `json:"dates,omitempty"`
}

DeleteFileOptions DeleteFileOptions options for deleting files (used for other File structs below) Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)

swagger:model DeleteFileOptions

func (*DeleteFileOptions) ContextValidate

func (m *DeleteFileOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this delete file options based on the context it is used

func (*DeleteFileOptions) MarshalBinary

func (m *DeleteFileOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteFileOptions) UnmarshalBinary

func (m *DeleteFileOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteFileOptions) Validate

func (m *DeleteFileOptions) Validate(formats strfmt.Registry) error

Validate validates this delete file options

type DeployKey

type DeployKey struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// fingerprint
	Fingerprint string `json:"fingerprint,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// key
	Key string `json:"key,omitempty"`

	// key ID
	KeyID int64 `json:"key_id,omitempty"`

	// read only
	ReadOnly bool `json:"read_only,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// repository
	Repository *Repository `json:"repository,omitempty"`
}

DeployKey DeployKey a deploy key

swagger:model DeployKey

func (*DeployKey) ContextValidate

func (m *DeployKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this deploy key based on the context it is used

func (*DeployKey) MarshalBinary

func (m *DeployKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeployKey) UnmarshalBinary

func (m *DeployKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeployKey) Validate

func (m *DeployKey) Validate(formats strfmt.Registry) error

Validate validates this deploy key

type DismissPullReviewOptions

type DismissPullReviewOptions struct {

	// message
	Message string `json:"message,omitempty"`

	// priors
	Priors bool `json:"priors,omitempty"`
}

DismissPullReviewOptions DismissPullReviewOptions are options to dismiss a pull review

swagger:model DismissPullReviewOptions

func (*DismissPullReviewOptions) ContextValidate

func (m *DismissPullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dismiss pull review options based on context it is used

func (*DismissPullReviewOptions) MarshalBinary

func (m *DismissPullReviewOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DismissPullReviewOptions) UnmarshalBinary

func (m *DismissPullReviewOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DismissPullReviewOptions) Validate

func (m *DismissPullReviewOptions) Validate(formats strfmt.Registry) error

Validate validates this dismiss pull review options

type EditAttachmentOptions

type EditAttachmentOptions struct {

	// name
	Name string `json:"name,omitempty"`
}

EditAttachmentOptions EditAttachmentOptions options for editing attachments

swagger:model EditAttachmentOptions

func (*EditAttachmentOptions) ContextValidate

func (m *EditAttachmentOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit attachment options based on context it is used

func (*EditAttachmentOptions) MarshalBinary

func (m *EditAttachmentOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditAttachmentOptions) UnmarshalBinary

func (m *EditAttachmentOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditAttachmentOptions) Validate

func (m *EditAttachmentOptions) Validate(formats strfmt.Registry) error

Validate validates this edit attachment options

type EditBranchProtectionOption

type EditBranchProtectionOption struct {

	// approvals whitelist teams
	ApprovalsWhitelistTeams []string `json:"approvals_whitelist_teams"`

	// approvals whitelist usernames
	ApprovalsWhitelistUsernames []string `json:"approvals_whitelist_username"`

	// block on official review requests
	BlockOnOfficialReviewRequests bool `json:"block_on_official_review_requests,omitempty"`

	// block on outdated branch
	BlockOnOutdatedBranch bool `json:"block_on_outdated_branch,omitempty"`

	// block on rejected reviews
	BlockOnRejectedReviews bool `json:"block_on_rejected_reviews,omitempty"`

	// dismiss stale approvals
	DismissStaleApprovals bool `json:"dismiss_stale_approvals,omitempty"`

	// enable approvals whitelist
	EnableApprovalsWhitelist bool `json:"enable_approvals_whitelist,omitempty"`

	// enable force push
	EnableForcePush bool `json:"enable_force_push,omitempty"`

	// enable force push allowlist
	EnableForcePushAllowlist bool `json:"enable_force_push_allowlist,omitempty"`

	// enable merge whitelist
	EnableMergeWhitelist bool `json:"enable_merge_whitelist,omitempty"`

	// enable push
	EnablePush bool `json:"enable_push,omitempty"`

	// enable push whitelist
	EnablePushWhitelist bool `json:"enable_push_whitelist,omitempty"`

	// enable status check
	EnableStatusCheck bool `json:"enable_status_check,omitempty"`

	// force push allowlist deploy keys
	ForcePushAllowlistDeployKeys bool `json:"force_push_allowlist_deploy_keys,omitempty"`

	// force push allowlist teams
	ForcePushAllowlistTeams []string `json:"force_push_allowlist_teams"`

	// force push allowlist usernames
	ForcePushAllowlistUsernames []string `json:"force_push_allowlist_usernames"`

	// ignore stale approvals
	IgnoreStaleApprovals bool `json:"ignore_stale_approvals,omitempty"`

	// merge whitelist teams
	MergeWhitelistTeams []string `json:"merge_whitelist_teams"`

	// merge whitelist usernames
	MergeWhitelistUsernames []string `json:"merge_whitelist_usernames"`

	// protected file patterns
	ProtectedFilePatterns string `json:"protected_file_patterns,omitempty"`

	// push whitelist deploy keys
	PushWhitelistDeployKeys bool `json:"push_whitelist_deploy_keys,omitempty"`

	// push whitelist teams
	PushWhitelistTeams []string `json:"push_whitelist_teams"`

	// push whitelist usernames
	PushWhitelistUsernames []string `json:"push_whitelist_usernames"`

	// require signed commits
	RequireSignedCommits bool `json:"require_signed_commits,omitempty"`

	// required approvals
	RequiredApprovals int64 `json:"required_approvals,omitempty"`

	// status check contexts
	StatusCheckContexts []string `json:"status_check_contexts"`

	// unprotected file patterns
	UnprotectedFilePatterns string `json:"unprotected_file_patterns,omitempty"`
}

EditBranchProtectionOption EditBranchProtectionOption options for editing a branch protection

swagger:model EditBranchProtectionOption

func (*EditBranchProtectionOption) ContextValidate

func (m *EditBranchProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit branch protection option based on context it is used

func (*EditBranchProtectionOption) MarshalBinary

func (m *EditBranchProtectionOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditBranchProtectionOption) UnmarshalBinary

func (m *EditBranchProtectionOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditBranchProtectionOption) Validate

func (m *EditBranchProtectionOption) Validate(formats strfmt.Registry) error

Validate validates this edit branch protection option

type EditDeadlineOption

type EditDeadlineOption struct {

	// deadline
	// Required: true
	// Format: date-time
	Deadline *strfmt.DateTime `json:"due_date"`
}

EditDeadlineOption EditDeadlineOption options for creating a deadline

swagger:model EditDeadlineOption

func (*EditDeadlineOption) ContextValidate

func (m *EditDeadlineOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit deadline option based on context it is used

func (*EditDeadlineOption) MarshalBinary

func (m *EditDeadlineOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditDeadlineOption) UnmarshalBinary

func (m *EditDeadlineOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditDeadlineOption) Validate

func (m *EditDeadlineOption) Validate(formats strfmt.Registry) error

Validate validates this edit deadline option

type EditGitHookOption

type EditGitHookOption struct {

	// content
	Content string `json:"content,omitempty"`
}

EditGitHookOption EditGitHookOption options when modifying one Git hook

swagger:model EditGitHookOption

func (*EditGitHookOption) ContextValidate

func (m *EditGitHookOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit git hook option based on context it is used

func (*EditGitHookOption) MarshalBinary

func (m *EditGitHookOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditGitHookOption) UnmarshalBinary

func (m *EditGitHookOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditGitHookOption) Validate

func (m *EditGitHookOption) Validate(formats strfmt.Registry) error

Validate validates this edit git hook option

type EditHookOption

type EditHookOption struct {

	// active
	Active bool `json:"active,omitempty"`

	// authorization header
	AuthorizationHeader string `json:"authorization_header,omitempty"`

	// branch filter
	BranchFilter string `json:"branch_filter,omitempty"`

	// config
	Config map[string]string `json:"config,omitempty"`

	// events
	Events []string `json:"events"`
}

EditHookOption EditHookOption options when modify one hook

swagger:model EditHookOption

func (*EditHookOption) ContextValidate

func (m *EditHookOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit hook option based on context it is used

func (*EditHookOption) MarshalBinary

func (m *EditHookOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditHookOption) UnmarshalBinary

func (m *EditHookOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditHookOption) Validate

func (m *EditHookOption) Validate(formats strfmt.Registry) error

Validate validates this edit hook option

type EditIssueCommentOption

type EditIssueCommentOption struct {

	// body
	// Required: true
	Body *string `json:"body"`
}

EditIssueCommentOption EditIssueCommentOption options for editing a comment

swagger:model EditIssueCommentOption

func (*EditIssueCommentOption) ContextValidate

func (m *EditIssueCommentOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit issue comment option based on context it is used

func (*EditIssueCommentOption) MarshalBinary

func (m *EditIssueCommentOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditIssueCommentOption) UnmarshalBinary

func (m *EditIssueCommentOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditIssueCommentOption) Validate

func (m *EditIssueCommentOption) Validate(formats strfmt.Registry) error

Validate validates this edit issue comment option

type EditIssueOption

type EditIssueOption struct {

	// deprecated
	Assignee string `json:"assignee,omitempty"`

	// assignees
	Assignees []string `json:"assignees"`

	// body
	Body string `json:"body,omitempty"`

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_date,omitempty"`

	// milestone
	Milestone int64 `json:"milestone,omitempty"`

	// ref
	Ref string `json:"ref,omitempty"`

	// remove deadline
	RemoveDeadline bool `json:"unset_due_date,omitempty"`

	// state
	State string `json:"state,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

EditIssueOption EditIssueOption options for editing an issue

swagger:model EditIssueOption

func (*EditIssueOption) ContextValidate

func (m *EditIssueOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit issue option based on context it is used

func (*EditIssueOption) MarshalBinary

func (m *EditIssueOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditIssueOption) UnmarshalBinary

func (m *EditIssueOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditIssueOption) Validate

func (m *EditIssueOption) Validate(formats strfmt.Registry) error

Validate validates this edit issue option

type EditLabelOption

type EditLabelOption struct {

	// color
	// Example: #00aabb
	Color string `json:"color,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// exclusive
	// Example: false
	Exclusive bool `json:"exclusive,omitempty"`

	// is archived
	// Example: false
	IsArchived bool `json:"is_archived,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

EditLabelOption EditLabelOption options for editing a label

swagger:model EditLabelOption

func (*EditLabelOption) ContextValidate

func (m *EditLabelOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit label option based on context it is used

func (*EditLabelOption) MarshalBinary

func (m *EditLabelOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditLabelOption) UnmarshalBinary

func (m *EditLabelOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditLabelOption) Validate

func (m *EditLabelOption) Validate(formats strfmt.Registry) error

Validate validates this edit label option

type EditMilestoneOption

type EditMilestoneOption struct {

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_on,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// state
	State string `json:"state,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

EditMilestoneOption EditMilestoneOption options for editing a milestone

swagger:model EditMilestoneOption

func (*EditMilestoneOption) ContextValidate

func (m *EditMilestoneOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit milestone option based on context it is used

func (*EditMilestoneOption) MarshalBinary

func (m *EditMilestoneOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditMilestoneOption) UnmarshalBinary

func (m *EditMilestoneOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditMilestoneOption) Validate

func (m *EditMilestoneOption) Validate(formats strfmt.Registry) error

Validate validates this edit milestone option

type EditOrgOption

type EditOrgOption struct {

	// description
	Description string `json:"description,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// repo admin change team access
	RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access,omitempty"`

	// possible values are `public`, `limited` or `private`
	// Enum: ["public","limited","private"]
	Visibility string `json:"visibility,omitempty"`

	// website
	Website string `json:"website,omitempty"`
}

EditOrgOption EditOrgOption options for editing an organization

swagger:model EditOrgOption

func (*EditOrgOption) ContextValidate

func (m *EditOrgOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit org option based on context it is used

func (*EditOrgOption) MarshalBinary

func (m *EditOrgOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditOrgOption) UnmarshalBinary

func (m *EditOrgOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditOrgOption) Validate

func (m *EditOrgOption) Validate(formats strfmt.Registry) error

Validate validates this edit org option

type EditPullRequestOption

type EditPullRequestOption struct {

	// allow maintainer edit
	AllowMaintainerEdit bool `json:"allow_maintainer_edit,omitempty"`

	// assignee
	Assignee string `json:"assignee,omitempty"`

	// assignees
	Assignees []string `json:"assignees"`

	// base
	Base string `json:"base,omitempty"`

	// body
	Body string `json:"body,omitempty"`

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_date,omitempty"`

	// labels
	Labels []int64 `json:"labels"`

	// milestone
	Milestone int64 `json:"milestone,omitempty"`

	// remove deadline
	RemoveDeadline bool `json:"unset_due_date,omitempty"`

	// state
	State string `json:"state,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

EditPullRequestOption EditPullRequestOption options when modify pull request

swagger:model EditPullRequestOption

func (*EditPullRequestOption) ContextValidate

func (m *EditPullRequestOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit pull request option based on context it is used

func (*EditPullRequestOption) MarshalBinary

func (m *EditPullRequestOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditPullRequestOption) UnmarshalBinary

func (m *EditPullRequestOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditPullRequestOption) Validate

func (m *EditPullRequestOption) Validate(formats strfmt.Registry) error

Validate validates this edit pull request option

type EditReactionOption

type EditReactionOption struct {

	// reaction
	Reaction string `json:"content,omitempty"`
}

EditReactionOption EditReactionOption contain the reaction type

swagger:model EditReactionOption

func (*EditReactionOption) ContextValidate

func (m *EditReactionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit reaction option based on context it is used

func (*EditReactionOption) MarshalBinary

func (m *EditReactionOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditReactionOption) UnmarshalBinary

func (m *EditReactionOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditReactionOption) Validate

func (m *EditReactionOption) Validate(formats strfmt.Registry) error

Validate validates this edit reaction option

type EditReleaseOption

type EditReleaseOption struct {

	// is draft
	IsDraft bool `json:"draft,omitempty"`

	// is prerelease
	IsPrerelease bool `json:"prerelease,omitempty"`

	// note
	Note string `json:"body,omitempty"`

	// tag name
	TagName string `json:"tag_name,omitempty"`

	// target
	Target string `json:"target_commitish,omitempty"`

	// title
	Title string `json:"name,omitempty"`
}

EditReleaseOption EditReleaseOption options when editing a release

swagger:model EditReleaseOption

func (*EditReleaseOption) ContextValidate

func (m *EditReleaseOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit release option based on context it is used

func (*EditReleaseOption) MarshalBinary

func (m *EditReleaseOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditReleaseOption) UnmarshalBinary

func (m *EditReleaseOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditReleaseOption) Validate

func (m *EditReleaseOption) Validate(formats strfmt.Registry) error

Validate validates this edit release option

type EditRepoOption

type EditRepoOption struct {

	// either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging.
	AllowFastForwardOnly bool `json:"allow_fast_forward_only_merge,omitempty"`

	// either `true` to allow mark pr as merged manually, or `false` to prevent it.
	AllowManualMerge bool `json:"allow_manual_merge,omitempty"`

	// either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.
	AllowMerge bool `json:"allow_merge_commits,omitempty"`

	// either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.
	AllowRebase bool `json:"allow_rebase,omitempty"`

	// either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.
	AllowRebaseMerge bool `json:"allow_rebase_explicit,omitempty"`

	// either `true` to allow updating pull request branch by rebase, or `false` to prevent it.
	AllowRebaseUpdate bool `json:"allow_rebase_update,omitempty"`

	// either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.
	AllowSquash bool `json:"allow_squash_merge,omitempty"`

	// set to `true` to archive this repository.
	Archived bool `json:"archived,omitempty"`

	// either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur.
	AutodetectManualMerge bool `json:"autodetect_manual_merge,omitempty"`

	// set to `true` to allow edits from maintainers by default
	DefaultAllowMaintainerEdit bool `json:"default_allow_maintainer_edit,omitempty"`

	// sets the default branch for this repository.
	DefaultBranch string `json:"default_branch,omitempty"`

	// set to `true` to delete pr branch after merge by default
	DefaultDeleteBranchAfterMerge bool `json:"default_delete_branch_after_merge,omitempty"`

	// set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only".
	DefaultMergeStyle string `json:"default_merge_style,omitempty"`

	// a short description of the repository.
	Description string `json:"description,omitempty"`

	// enable prune - remove obsolete remote-tracking references when mirroring
	EnablePrune bool `json:"enable_prune,omitempty"`

	// either `true` to enable actions unit, or `false` to disable them.
	HasActions bool `json:"has_actions,omitempty"`

	// either `true` to enable issues for this repository or `false` to disable them.
	HasIssues bool `json:"has_issues,omitempty"`

	// either `true` to enable packages unit, or `false` to disable them.
	HasPackages bool `json:"has_packages,omitempty"`

	// either `true` to enable project unit, or `false` to disable them.
	HasProjects bool `json:"has_projects,omitempty"`

	// either `true` to allow pull requests, or `false` to prevent pull request.
	HasPullRequests bool `json:"has_pull_requests,omitempty"`

	// either `true` to enable releases unit, or `false` to disable them.
	HasReleases bool `json:"has_releases,omitempty"`

	// either `true` to enable the wiki for this repository or `false` to disable it.
	HasWiki bool `json:"has_wiki,omitempty"`

	// either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.
	IgnoreWhitespaceConflicts bool `json:"ignore_whitespace_conflicts,omitempty"`

	// set to a string like `8h30m0s` to set the mirror interval time
	MirrorInterval string `json:"mirror_interval,omitempty"`

	// name of the repository
	Name string `json:"name,omitempty"`

	// either `true` to make the repository private or `false` to make it public.
	// Note: you will get a 422 error if the organization restricts changing repository visibility to organization
	// owners and a non-owner tries to change the value of private.
	Private bool `json:"private,omitempty"`

	// `repo` to only allow repo-level projects, `owner` to only allow owner projects, `all` to allow both.
	ProjectsMode string `json:"projects_mode,omitempty"`

	// either `true` to make this repository a template or `false` to make it a normal repository
	Template bool `json:"template,omitempty"`

	// a URL with more information about the repository.
	Website string `json:"website,omitempty"`

	// external tracker
	ExternalTracker *ExternalTracker `json:"external_tracker,omitempty"`

	// external wiki
	ExternalWiki *ExternalWiki `json:"external_wiki,omitempty"`

	// internal tracker
	InternalTracker *InternalTracker `json:"internal_tracker,omitempty"`
}

EditRepoOption EditRepoOption options when editing a repository's properties

swagger:model EditRepoOption

func (*EditRepoOption) ContextValidate

func (m *EditRepoOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this edit repo option based on the context it is used

func (*EditRepoOption) MarshalBinary

func (m *EditRepoOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditRepoOption) UnmarshalBinary

func (m *EditRepoOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditRepoOption) Validate

func (m *EditRepoOption) Validate(formats strfmt.Registry) error

Validate validates this edit repo option

type EditTagProtectionOption

type EditTagProtectionOption struct {

	// name pattern
	NamePattern string `json:"name_pattern,omitempty"`

	// whitelist teams
	WhitelistTeams []string `json:"whitelist_teams"`

	// whitelist usernames
	WhitelistUsernames []string `json:"whitelist_usernames"`
}

EditTagProtectionOption EditTagProtectionOption options for editing a tag protection

swagger:model EditTagProtectionOption

func (*EditTagProtectionOption) ContextValidate

func (m *EditTagProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit tag protection option based on context it is used

func (*EditTagProtectionOption) MarshalBinary

func (m *EditTagProtectionOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditTagProtectionOption) UnmarshalBinary

func (m *EditTagProtectionOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditTagProtectionOption) Validate

func (m *EditTagProtectionOption) Validate(formats strfmt.Registry) error

Validate validates this edit tag protection option

type EditTeamOption

type EditTeamOption struct {

	// can create org repo
	CanCreateOrgRepo bool `json:"can_create_org_repo,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// includes all repositories
	IncludesAllRepositories bool `json:"includes_all_repositories,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// permission
	// Enum: ["read","write","admin"]
	Permission string `json:"permission,omitempty"`

	// units
	// Example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
	Units []string `json:"units"`

	// units map
	// Example: {"repo.code":"read","repo.ext_issues":"none","repo.ext_wiki":"none","repo.issues":"write","repo.projects":"none","repo.pulls":"owner","repo.releases":"none","repo.wiki":"admin"}
	UnitsMap map[string]string `json:"units_map,omitempty"`
}

EditTeamOption EditTeamOption options for editing a team

swagger:model EditTeamOption

func (*EditTeamOption) ContextValidate

func (m *EditTeamOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit team option based on context it is used

func (*EditTeamOption) MarshalBinary

func (m *EditTeamOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditTeamOption) UnmarshalBinary

func (m *EditTeamOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditTeamOption) Validate

func (m *EditTeamOption) Validate(formats strfmt.Registry) error

Validate validates this edit team option

type EditUserOption

type EditUserOption struct {

	// active
	Active bool `json:"active,omitempty"`

	// admin
	Admin bool `json:"admin,omitempty"`

	// allow create organization
	AllowCreateOrganization bool `json:"allow_create_organization,omitempty"`

	// allow git hook
	AllowGitHook bool `json:"allow_git_hook,omitempty"`

	// allow import local
	AllowImportLocal bool `json:"allow_import_local,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// email
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// login name
	// Required: true
	LoginName *string `json:"login_name"`

	// max repo creation
	MaxRepoCreation int64 `json:"max_repo_creation,omitempty"`

	// must change password
	MustChangePassword bool `json:"must_change_password,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// prohibit login
	ProhibitLogin bool `json:"prohibit_login,omitempty"`

	// restricted
	Restricted bool `json:"restricted,omitempty"`

	// source ID
	// Required: true
	SourceID *int64 `json:"source_id"`

	// visibility
	Visibility string `json:"visibility,omitempty"`

	// website
	Website string `json:"website,omitempty"`
}

EditUserOption EditUserOption edit user options

swagger:model EditUserOption

func (*EditUserOption) ContextValidate

func (m *EditUserOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this edit user option based on context it is used

func (*EditUserOption) MarshalBinary

func (m *EditUserOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EditUserOption) UnmarshalBinary

func (m *EditUserOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EditUserOption) Validate

func (m *EditUserOption) Validate(formats strfmt.Registry) error

Validate validates this edit user option

type Email

type Email struct {

	// email
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// primary
	Primary bool `json:"primary,omitempty"`

	// user ID
	UserID int64 `json:"user_id,omitempty"`

	// user name
	UserName string `json:"username,omitempty"`

	// verified
	Verified bool `json:"verified,omitempty"`
}

Email Email an email address belonging to a user

swagger:model Email

func (*Email) ContextValidate

func (m *Email) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this email based on context it is used

func (*Email) MarshalBinary

func (m *Email) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Email) UnmarshalBinary

func (m *Email) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Email) Validate

func (m *Email) Validate(formats strfmt.Registry) error

Validate validates this email

type ExternalTracker

type ExternalTracker struct {

	// External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index.
	ExternalTrackerFormat string `json:"external_tracker_format,omitempty"`

	// External Issue Tracker issue regular expression
	ExternalTrackerRegexpPattern string `json:"external_tracker_regexp_pattern,omitempty"`

	// External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp`
	ExternalTrackerStyle string `json:"external_tracker_style,omitempty"`

	// URL of external issue tracker.
	ExternalTrackerURL string `json:"external_tracker_url,omitempty"`
}

ExternalTracker ExternalTracker represents settings for external tracker

swagger:model ExternalTracker

func (*ExternalTracker) ContextValidate

func (m *ExternalTracker) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this external tracker based on context it is used

func (*ExternalTracker) MarshalBinary

func (m *ExternalTracker) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExternalTracker) UnmarshalBinary

func (m *ExternalTracker) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExternalTracker) Validate

func (m *ExternalTracker) Validate(formats strfmt.Registry) error

Validate validates this external tracker

type ExternalWiki

type ExternalWiki struct {

	// URL of external wiki.
	ExternalWikiURL string `json:"external_wiki_url,omitempty"`
}

ExternalWiki ExternalWiki represents setting for external wiki

swagger:model ExternalWiki

func (*ExternalWiki) ContextValidate

func (m *ExternalWiki) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this external wiki based on context it is used

func (*ExternalWiki) MarshalBinary

func (m *ExternalWiki) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExternalWiki) UnmarshalBinary

func (m *ExternalWiki) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExternalWiki) Validate

func (m *ExternalWiki) Validate(formats strfmt.Registry) error

Validate validates this external wiki

type FileCommitResponse

type FileCommitResponse struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// parents
	Parents []*CommitMeta `json:"parents"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// author
	Author *CommitUser `json:"author,omitempty"`

	// committer
	Committer *CommitUser `json:"committer,omitempty"`

	// tree
	Tree *CommitMeta `json:"tree,omitempty"`
}

FileCommitResponse FileCommitResponse contains information generated from a Git commit for a repo's file.

swagger:model FileCommitResponse

func (*FileCommitResponse) ContextValidate

func (m *FileCommitResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this file commit response based on the context it is used

func (*FileCommitResponse) MarshalBinary

func (m *FileCommitResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FileCommitResponse) UnmarshalBinary

func (m *FileCommitResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FileCommitResponse) Validate

func (m *FileCommitResponse) Validate(formats strfmt.Registry) error

Validate validates this file commit response

type FileDeleteResponse

type FileDeleteResponse struct {

	// content
	Content interface{} `json:"content,omitempty"`

	// commit
	Commit *FileCommitResponse `json:"commit,omitempty"`

	// verification
	Verification *PayloadCommitVerification `json:"verification,omitempty"`
}

FileDeleteResponse FileDeleteResponse contains information about a repo's file that was deleted

swagger:model FileDeleteResponse

func (*FileDeleteResponse) ContextValidate

func (m *FileDeleteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this file delete response based on the context it is used

func (*FileDeleteResponse) MarshalBinary

func (m *FileDeleteResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FileDeleteResponse) UnmarshalBinary

func (m *FileDeleteResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FileDeleteResponse) Validate

func (m *FileDeleteResponse) Validate(formats strfmt.Registry) error

Validate validates this file delete response

type FileLinksResponse

type FileLinksResponse struct {

	// git URL
	GitURL string `json:"git,omitempty"`

	// HTML URL
	HTMLURL string `json:"html,omitempty"`

	// self
	Self string `json:"self,omitempty"`
}

FileLinksResponse FileLinksResponse contains the links for a repo's file

swagger:model FileLinksResponse

func (*FileLinksResponse) ContextValidate

func (m *FileLinksResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this file links response based on context it is used

func (*FileLinksResponse) MarshalBinary

func (m *FileLinksResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FileLinksResponse) UnmarshalBinary

func (m *FileLinksResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FileLinksResponse) Validate

func (m *FileLinksResponse) Validate(formats strfmt.Registry) error

Validate validates this file links response

type FileResponse

type FileResponse struct {

	// commit
	Commit *FileCommitResponse `json:"commit,omitempty"`

	// content
	Content *ContentsResponse `json:"content,omitempty"`

	// verification
	Verification *PayloadCommitVerification `json:"verification,omitempty"`
}

FileResponse FileResponse contains information about a repo's file

swagger:model FileResponse

func (*FileResponse) ContextValidate

func (m *FileResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this file response based on the context it is used

func (*FileResponse) MarshalBinary

func (m *FileResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FileResponse) UnmarshalBinary

func (m *FileResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FileResponse) Validate

func (m *FileResponse) Validate(formats strfmt.Registry) error

Validate validates this file response

type FilesResponse

type FilesResponse struct {

	// files
	Files []*ContentsResponse `json:"files"`

	// commit
	Commit *FileCommitResponse `json:"commit,omitempty"`

	// verification
	Verification *PayloadCommitVerification `json:"verification,omitempty"`
}

FilesResponse FilesResponse contains information about multiple files from a repo

swagger:model FilesResponse

func (*FilesResponse) ContextValidate

func (m *FilesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this files response based on the context it is used

func (*FilesResponse) MarshalBinary

func (m *FilesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FilesResponse) UnmarshalBinary

func (m *FilesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FilesResponse) Validate

func (m *FilesResponse) Validate(formats strfmt.Registry) error

Validate validates this files response

type GPGKey

type GPGKey struct {

	// can certify
	CanCertify bool `json:"can_certify,omitempty"`

	// can encrypt comms
	CanEncryptComms bool `json:"can_encrypt_comms,omitempty"`

	// can encrypt storage
	CanEncryptStorage bool `json:"can_encrypt_storage,omitempty"`

	// can sign
	CanSign bool `json:"can_sign,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// emails
	Emails []*GPGKeyEmail `json:"emails"`

	// expires
	// Format: date-time
	Expires strfmt.DateTime `json:"expires_at,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// key ID
	KeyID string `json:"key_id,omitempty"`

	// primary key ID
	PrimaryKeyID string `json:"primary_key_id,omitempty"`

	// public key
	PublicKey string `json:"public_key,omitempty"`

	// subs key
	SubsKey []*GPGKey `json:"subkeys"`

	// verified
	Verified bool `json:"verified,omitempty"`
}

GPGKey GPGKey a user GPG key to sign commit and tag in repository

swagger:model GPGKey

func (*GPGKey) ContextValidate

func (m *GPGKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this g p g key based on the context it is used

func (*GPGKey) MarshalBinary

func (m *GPGKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GPGKey) UnmarshalBinary

func (m *GPGKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GPGKey) Validate

func (m *GPGKey) Validate(formats strfmt.Registry) error

Validate validates this g p g key

type GPGKeyEmail

type GPGKeyEmail struct {

	// email
	Email string `json:"email,omitempty"`

	// verified
	Verified bool `json:"verified,omitempty"`
}

GPGKeyEmail GPGKeyEmail an email attached to a GPGKey

swagger:model GPGKeyEmail

func (*GPGKeyEmail) ContextValidate

func (m *GPGKeyEmail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this g p g key email based on context it is used

func (*GPGKeyEmail) MarshalBinary

func (m *GPGKeyEmail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GPGKeyEmail) UnmarshalBinary

func (m *GPGKeyEmail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GPGKeyEmail) Validate

func (m *GPGKeyEmail) Validate(formats strfmt.Registry) error

Validate validates this g p g key email

type GeneralAPISettings

type GeneralAPISettings struct {

	// default git trees per page
	DefaultGitTreesPerPage int64 `json:"default_git_trees_per_page,omitempty"`

	// default max blob size
	DefaultMaxBlobSize int64 `json:"default_max_blob_size,omitempty"`

	// default paging num
	DefaultPagingNum int64 `json:"default_paging_num,omitempty"`

	// max response items
	MaxResponseItems int64 `json:"max_response_items,omitempty"`
}

GeneralAPISettings GeneralAPISettings contains global api settings exposed by it

swagger:model GeneralAPISettings

func (*GeneralAPISettings) ContextValidate

func (m *GeneralAPISettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this general API settings based on context it is used

func (*GeneralAPISettings) MarshalBinary

func (m *GeneralAPISettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GeneralAPISettings) UnmarshalBinary

func (m *GeneralAPISettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GeneralAPISettings) Validate

func (m *GeneralAPISettings) Validate(formats strfmt.Registry) error

Validate validates this general API settings

type GeneralAttachmentSettings

type GeneralAttachmentSettings struct {

	// allowed types
	AllowedTypes string `json:"allowed_types,omitempty"`

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// max files
	MaxFiles int64 `json:"max_files,omitempty"`

	// max size
	MaxSize int64 `json:"max_size,omitempty"`
}

GeneralAttachmentSettings GeneralAttachmentSettings contains global Attachment settings exposed by API

swagger:model GeneralAttachmentSettings

func (*GeneralAttachmentSettings) ContextValidate

func (m *GeneralAttachmentSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this general attachment settings based on context it is used

func (*GeneralAttachmentSettings) MarshalBinary

func (m *GeneralAttachmentSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GeneralAttachmentSettings) UnmarshalBinary

func (m *GeneralAttachmentSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GeneralAttachmentSettings) Validate

func (m *GeneralAttachmentSettings) Validate(formats strfmt.Registry) error

Validate validates this general attachment settings

type GeneralRepoSettings

type GeneralRepoSettings struct {

	// HTTP git disabled
	HTTPGitDisabled bool `json:"http_git_disabled,omitempty"`

	// l f s disabled
	LFSDisabled bool `json:"lfs_disabled,omitempty"`

	// migrations disabled
	MigrationsDisabled bool `json:"migrations_disabled,omitempty"`

	// mirrors disabled
	MirrorsDisabled bool `json:"mirrors_disabled,omitempty"`

	// stars disabled
	StarsDisabled bool `json:"stars_disabled,omitempty"`

	// time tracking disabled
	TimeTrackingDisabled bool `json:"time_tracking_disabled,omitempty"`
}

GeneralRepoSettings GeneralRepoSettings contains global repository settings exposed by API

swagger:model GeneralRepoSettings

func (*GeneralRepoSettings) ContextValidate

func (m *GeneralRepoSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this general repo settings based on context it is used

func (*GeneralRepoSettings) MarshalBinary

func (m *GeneralRepoSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GeneralRepoSettings) UnmarshalBinary

func (m *GeneralRepoSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GeneralRepoSettings) Validate

func (m *GeneralRepoSettings) Validate(formats strfmt.Registry) error

Validate validates this general repo settings

type GeneralUISettings

type GeneralUISettings struct {

	// allowed reactions
	AllowedReactions []string `json:"allowed_reactions"`

	// custom emojis
	CustomEmojis []string `json:"custom_emojis"`

	// default theme
	DefaultTheme string `json:"default_theme,omitempty"`
}

GeneralUISettings GeneralUISettings contains global ui settings exposed by API

swagger:model GeneralUISettings

func (*GeneralUISettings) ContextValidate

func (m *GeneralUISettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this general UI settings based on context it is used

func (*GeneralUISettings) MarshalBinary

func (m *GeneralUISettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GeneralUISettings) UnmarshalBinary

func (m *GeneralUISettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GeneralUISettings) Validate

func (m *GeneralUISettings) Validate(formats strfmt.Registry) error

Validate validates this general UI settings

type GenerateRepoOption

type GenerateRepoOption struct {

	// include avatar of the template repo
	Avatar bool `json:"avatar,omitempty"`

	// Default branch of the new repository
	DefaultBranch string `json:"default_branch,omitempty"`

	// Description of the repository to create
	Description string `json:"description,omitempty"`

	// include git content of default branch in template repo
	GitContent bool `json:"git_content,omitempty"`

	// include git hooks in template repo
	GitHooks bool `json:"git_hooks,omitempty"`

	// include labels in template repo
	Labels bool `json:"labels,omitempty"`

	// Name of the repository to create
	// Required: true
	Name *string `json:"name"`

	// The organization or person who will own the new repository
	// Required: true
	Owner *string `json:"owner"`

	// Whether the repository is private
	Private bool `json:"private,omitempty"`

	// include protected branches in template repo
	ProtectedBranch bool `json:"protected_branch,omitempty"`

	// include topics in template repo
	Topics bool `json:"topics,omitempty"`

	// include webhooks in template repo
	Webhooks bool `json:"webhooks,omitempty"`
}

GenerateRepoOption GenerateRepoOption options when creating repository using a template

swagger:model GenerateRepoOption

func (*GenerateRepoOption) ContextValidate

func (m *GenerateRepoOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this generate repo option based on context it is used

func (*GenerateRepoOption) MarshalBinary

func (m *GenerateRepoOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenerateRepoOption) UnmarshalBinary

func (m *GenerateRepoOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenerateRepoOption) Validate

func (m *GenerateRepoOption) Validate(formats strfmt.Registry) error

Validate validates this generate repo option

type GitBlobResponse

type GitBlobResponse struct {

	// content
	Content string `json:"content,omitempty"`

	// encoding
	Encoding string `json:"encoding,omitempty"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

GitBlobResponse GitBlobResponse represents a git blob

swagger:model GitBlobResponse

func (*GitBlobResponse) ContextValidate

func (m *GitBlobResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this git blob response based on context it is used

func (*GitBlobResponse) MarshalBinary

func (m *GitBlobResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitBlobResponse) UnmarshalBinary

func (m *GitBlobResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitBlobResponse) Validate

func (m *GitBlobResponse) Validate(formats strfmt.Registry) error

Validate validates this git blob response

type GitEntry

type GitEntry struct {

	// mode
	Mode string `json:"mode,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

GitEntry GitEntry represents a git tree

swagger:model GitEntry

func (*GitEntry) ContextValidate

func (m *GitEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this git entry based on context it is used

func (*GitEntry) MarshalBinary

func (m *GitEntry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitEntry) UnmarshalBinary

func (m *GitEntry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitEntry) Validate

func (m *GitEntry) Validate(formats strfmt.Registry) error

Validate validates this git entry

type GitHook

type GitHook struct {

	// content
	Content string `json:"content,omitempty"`

	// is active
	IsActive bool `json:"is_active,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

GitHook GitHook represents a Git repository hook

swagger:model GitHook

func (*GitHook) ContextValidate

func (m *GitHook) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this git hook based on context it is used

func (*GitHook) MarshalBinary

func (m *GitHook) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitHook) UnmarshalBinary

func (m *GitHook) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitHook) Validate

func (m *GitHook) Validate(formats strfmt.Registry) error

Validate validates this git hook

type GitObject

type GitObject struct {

	// s h a
	SHA string `json:"sha,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

GitObject GitObject represents a Git object.

swagger:model GitObject

func (*GitObject) ContextValidate

func (m *GitObject) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this git object based on context it is used

func (*GitObject) MarshalBinary

func (m *GitObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitObject) UnmarshalBinary

func (m *GitObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitObject) Validate

func (m *GitObject) Validate(formats strfmt.Registry) error

Validate validates this git object

type GitTreeResponse

type GitTreeResponse struct {

	// entries
	Entries []*GitEntry `json:"tree"`

	// page
	Page int64 `json:"page,omitempty"`

	// s h a
	SHA string `json:"sha,omitempty"`

	// total count
	TotalCount int64 `json:"total_count,omitempty"`

	// truncated
	Truncated bool `json:"truncated,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

GitTreeResponse GitTreeResponse returns a git tree

swagger:model GitTreeResponse

func (*GitTreeResponse) ContextValidate

func (m *GitTreeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this git tree response based on the context it is used

func (*GitTreeResponse) MarshalBinary

func (m *GitTreeResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitTreeResponse) UnmarshalBinary

func (m *GitTreeResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitTreeResponse) Validate

func (m *GitTreeResponse) Validate(formats strfmt.Registry) error

Validate validates this git tree response

type GitignoreTemplateInfo

type GitignoreTemplateInfo struct {

	// name
	Name string `json:"name,omitempty"`

	// source
	Source string `json:"source,omitempty"`
}

GitignoreTemplateInfo GitignoreTemplateInfo name and text of a gitignore template

swagger:model GitignoreTemplateInfo

func (*GitignoreTemplateInfo) ContextValidate

func (m *GitignoreTemplateInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this gitignore template info based on context it is used

func (*GitignoreTemplateInfo) MarshalBinary

func (m *GitignoreTemplateInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitignoreTemplateInfo) UnmarshalBinary

func (m *GitignoreTemplateInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitignoreTemplateInfo) Validate

func (m *GitignoreTemplateInfo) Validate(formats strfmt.Registry) error

Validate validates this gitignore template info

type Hook

type Hook struct {

	// active
	Active bool `json:"active,omitempty"`

	// authorization header
	AuthorizationHeader string `json:"authorization_header,omitempty"`

	// branch filter
	BranchFilter string `json:"branch_filter,omitempty"`

	// config
	Config map[string]string `json:"config,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// events
	Events []string `json:"events"`

	// ID
	ID int64 `json:"id,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`
}

Hook Hook a hook is a web hook when one repository changed

swagger:model Hook

func (*Hook) ContextValidate

func (m *Hook) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hook based on context it is used

func (*Hook) MarshalBinary

func (m *Hook) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Hook) UnmarshalBinary

func (m *Hook) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Hook) Validate

func (m *Hook) Validate(formats strfmt.Registry) error

Validate validates this hook

type Identity

type Identity struct {

	// email
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

Identity Identity for a person's identity like an author or committer

swagger:model Identity

func (*Identity) ContextValidate

func (m *Identity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this identity based on context it is used

func (*Identity) MarshalBinary

func (m *Identity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Identity) UnmarshalBinary

func (m *Identity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Identity) Validate

func (m *Identity) Validate(formats strfmt.Registry) error

Validate validates this identity

type InternalTracker

type InternalTracker struct {

	// Let only contributors track time (Built-in issue tracker)
	AllowOnlyContributorsToTrackTime bool `json:"allow_only_contributors_to_track_time,omitempty"`

	// Enable dependencies for issues and pull requests (Built-in issue tracker)
	EnableIssueDependencies bool `json:"enable_issue_dependencies,omitempty"`

	// Enable time tracking (Built-in issue tracker)
	EnableTimeTracker bool `json:"enable_time_tracker,omitempty"`
}

InternalTracker InternalTracker represents settings for internal tracker

swagger:model InternalTracker

func (*InternalTracker) ContextValidate

func (m *InternalTracker) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this internal tracker based on context it is used

func (*InternalTracker) MarshalBinary

func (m *InternalTracker) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InternalTracker) UnmarshalBinary

func (m *InternalTracker) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InternalTracker) Validate

func (m *InternalTracker) Validate(formats strfmt.Registry) error

Validate validates this internal tracker

type Issue

type Issue struct {

	// assignees
	Assignees []*User `json:"assignees"`

	// attachments
	Attachments []*Attachment `json:"assets"`

	// body
	Body string `json:"body,omitempty"`

	// closed
	// Format: date-time
	Closed strfmt.DateTime `json:"closed_at,omitempty"`

	// comments
	Comments int64 `json:"comments,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_date,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// index
	Index int64 `json:"number,omitempty"`

	// is locked
	IsLocked bool `json:"is_locked,omitempty"`

	// labels
	Labels []*Label `json:"labels"`

	// original author
	OriginalAuthor string `json:"original_author,omitempty"`

	// original author ID
	OriginalAuthorID int64 `json:"original_author_id,omitempty"`

	// pin order
	PinOrder int64 `json:"pin_order,omitempty"`

	// ref
	Ref string `json:"ref,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// assignee
	Assignee *User `json:"assignee,omitempty"`

	// milestone
	Milestone *Milestone `json:"milestone,omitempty"`

	// pull request
	PullRequest *PullRequestMeta `json:"pull_request,omitempty"`

	// repository
	Repository *RepositoryMeta `json:"repository,omitempty"`

	// state
	State StateType `json:"state,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

Issue Issue represents an issue in a repository

swagger:model Issue

func (*Issue) ContextValidate

func (m *Issue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue based on the context it is used

func (*Issue) MarshalBinary

func (m *Issue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Issue) UnmarshalBinary

func (m *Issue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Issue) Validate

func (m *Issue) Validate(formats strfmt.Registry) error

Validate validates this issue

type IssueConfig

type IssueConfig struct {

	// blank issues enabled
	BlankIssuesEnabled bool `json:"blank_issues_enabled,omitempty"`

	// contact links
	ContactLinks []*IssueConfigContactLink `json:"contact_links"`
}

IssueConfig issue config

swagger:model IssueConfig

func (*IssueConfig) ContextValidate

func (m *IssueConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue config based on the context it is used

func (*IssueConfig) MarshalBinary

func (m *IssueConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueConfig) UnmarshalBinary

func (m *IssueConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueConfig) Validate

func (m *IssueConfig) Validate(formats strfmt.Registry) error

Validate validates this issue config

type IssueConfigContactLink struct {

	// about
	About string `json:"about,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

IssueConfigContactLink issue config contact link

swagger:model IssueConfigContactLink

func (*IssueConfigContactLink) ContextValidate

func (m *IssueConfigContactLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue config contact link based on context it is used

func (*IssueConfigContactLink) MarshalBinary

func (m *IssueConfigContactLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueConfigContactLink) UnmarshalBinary

func (m *IssueConfigContactLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueConfigContactLink) Validate

func (m *IssueConfigContactLink) Validate(formats strfmt.Registry) error

Validate validates this issue config contact link

type IssueConfigValidation

type IssueConfigValidation struct {

	// message
	Message string `json:"message,omitempty"`

	// valid
	Valid bool `json:"valid,omitempty"`
}

IssueConfigValidation issue config validation

swagger:model IssueConfigValidation

func (*IssueConfigValidation) ContextValidate

func (m *IssueConfigValidation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue config validation based on context it is used

func (*IssueConfigValidation) MarshalBinary

func (m *IssueConfigValidation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueConfigValidation) UnmarshalBinary

func (m *IssueConfigValidation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueConfigValidation) Validate

func (m *IssueConfigValidation) Validate(formats strfmt.Registry) error

Validate validates this issue config validation

type IssueDeadline

type IssueDeadline struct {

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_date,omitempty"`
}

IssueDeadline IssueDeadline represents an issue deadline

swagger:model IssueDeadline

func (*IssueDeadline) ContextValidate

func (m *IssueDeadline) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue deadline based on context it is used

func (*IssueDeadline) MarshalBinary

func (m *IssueDeadline) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueDeadline) UnmarshalBinary

func (m *IssueDeadline) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueDeadline) Validate

func (m *IssueDeadline) Validate(formats strfmt.Registry) error

Validate validates this issue deadline

type IssueFormField

type IssueFormField struct {

	// attributes
	Attributes map[string]interface{} `json:"attributes,omitempty"`

	// ID
	ID string `json:"id,omitempty"`

	// validations
	Validations map[string]interface{} `json:"validations,omitempty"`

	// visible
	Visible []IssueFormFieldVisible `json:"visible"`

	// type
	Type IssueFormFieldType `json:"type,omitempty"`
}

IssueFormField IssueFormField represents a form field

swagger:model IssueFormField

func (*IssueFormField) ContextValidate

func (m *IssueFormField) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue form field based on the context it is used

func (*IssueFormField) MarshalBinary

func (m *IssueFormField) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueFormField) UnmarshalBinary

func (m *IssueFormField) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueFormField) Validate

func (m *IssueFormField) Validate(formats strfmt.Registry) error

Validate validates this issue form field

type IssueFormFieldType

type IssueFormFieldType string

IssueFormFieldType IssueFormFieldType defines issue form field type, can be "markdown", "textarea", "input", "dropdown" or "checkboxes"

swagger:model IssueFormFieldType

func (IssueFormFieldType) ContextValidate

func (m IssueFormFieldType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue form field type based on context it is used

func (IssueFormFieldType) Validate

func (m IssueFormFieldType) Validate(formats strfmt.Registry) error

Validate validates this issue form field type

type IssueFormFieldVisible

type IssueFormFieldVisible string

IssueFormFieldVisible IssueFormFieldVisible defines issue form field visible

swagger:model IssueFormFieldVisible

func (IssueFormFieldVisible) ContextValidate

func (m IssueFormFieldVisible) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue form field visible based on context it is used

func (IssueFormFieldVisible) Validate

func (m IssueFormFieldVisible) Validate(formats strfmt.Registry) error

Validate validates this issue form field visible

type IssueLabelsOption

type IssueLabelsOption struct {

	// Labels can be a list of integers representing label IDs
	// or a list of strings representing label names
	Labels []interface{} `json:"labels"`
}

IssueLabelsOption IssueLabelsOption a collection of labels

swagger:model IssueLabelsOption

func (*IssueLabelsOption) ContextValidate

func (m *IssueLabelsOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue labels option based on context it is used

func (*IssueLabelsOption) MarshalBinary

func (m *IssueLabelsOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueLabelsOption) UnmarshalBinary

func (m *IssueLabelsOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueLabelsOption) Validate

func (m *IssueLabelsOption) Validate(formats strfmt.Registry) error

Validate validates this issue labels option

type IssueMeta

type IssueMeta struct {

	// index
	Index int64 `json:"index,omitempty"`

	// name
	Name string `json:"repo,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`
}

IssueMeta IssueMeta basic issue information

swagger:model IssueMeta

func (*IssueMeta) ContextValidate

func (m *IssueMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue meta based on context it is used

func (*IssueMeta) MarshalBinary

func (m *IssueMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueMeta) UnmarshalBinary

func (m *IssueMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueMeta) Validate

func (m *IssueMeta) Validate(formats strfmt.Registry) error

Validate validates this issue meta

type IssueTemplate

type IssueTemplate struct {

	// about
	About string `json:"about,omitempty"`

	// content
	Content string `json:"content,omitempty"`

	// fields
	Fields []*IssueFormField `json:"body"`

	// file name
	FileName string `json:"file_name,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// ref
	Ref string `json:"ref,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// labels
	Labels IssueTemplateLabels `json:"labels,omitempty"`
}

IssueTemplate IssueTemplate represents an issue template for a repository

swagger:model IssueTemplate

func (*IssueTemplate) ContextValidate

func (m *IssueTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue template based on the context it is used

func (*IssueTemplate) MarshalBinary

func (m *IssueTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueTemplate) UnmarshalBinary

func (m *IssueTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueTemplate) Validate

func (m *IssueTemplate) Validate(formats strfmt.Registry) error

Validate validates this issue template

type IssueTemplateLabels

type IssueTemplateLabels []string

IssueTemplateLabels issue template labels

swagger:model IssueTemplateLabels

func (IssueTemplateLabels) ContextValidate

func (m IssueTemplateLabels) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue template labels based on context it is used

func (IssueTemplateLabels) Validate

func (m IssueTemplateLabels) Validate(formats strfmt.Registry) error

Validate validates this issue template labels

type Label

type Label struct {

	// color
	// Example: 00aabb
	Color string `json:"color,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// exclusive
	// Example: false
	Exclusive bool `json:"exclusive,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// is archived
	// Example: false
	IsArchived bool `json:"is_archived,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

Label Label a label to an issue or a pr

swagger:model Label

func (*Label) ContextValidate

func (m *Label) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label based on context it is used

func (*Label) MarshalBinary

func (m *Label) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Label) UnmarshalBinary

func (m *Label) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Label) Validate

func (m *Label) Validate(formats strfmt.Registry) error

Validate validates this label

type LabelTemplate

type LabelTemplate struct {

	// color
	// Example: 00aabb
	Color string `json:"color,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// exclusive
	// Example: false
	Exclusive bool `json:"exclusive,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

LabelTemplate LabelTemplate info of a Label template

swagger:model LabelTemplate

func (*LabelTemplate) ContextValidate

func (m *LabelTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label template based on context it is used

func (*LabelTemplate) MarshalBinary

func (m *LabelTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LabelTemplate) UnmarshalBinary

func (m *LabelTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LabelTemplate) Validate

func (m *LabelTemplate) Validate(formats strfmt.Registry) error

Validate validates this label template

type LicenseTemplateInfo

type LicenseTemplateInfo struct {

	// body
	Body string `json:"body,omitempty"`

	// implementation
	Implementation string `json:"implementation,omitempty"`

	// key
	Key string `json:"key,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

LicenseTemplateInfo LicensesInfo contains information about a License

swagger:model LicenseTemplateInfo

func (*LicenseTemplateInfo) ContextValidate

func (m *LicenseTemplateInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this license template info based on context it is used

func (*LicenseTemplateInfo) MarshalBinary

func (m *LicenseTemplateInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LicenseTemplateInfo) UnmarshalBinary

func (m *LicenseTemplateInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LicenseTemplateInfo) Validate

func (m *LicenseTemplateInfo) Validate(formats strfmt.Registry) error

Validate validates this license template info

type LicensesTemplateListEntry

type LicensesTemplateListEntry struct {

	// key
	Key string `json:"key,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

LicensesTemplateListEntry LicensesListEntry is used for the API

swagger:model LicensesTemplateListEntry

func (*LicensesTemplateListEntry) ContextValidate

func (m *LicensesTemplateListEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this licenses template list entry based on context it is used

func (*LicensesTemplateListEntry) MarshalBinary

func (m *LicensesTemplateListEntry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LicensesTemplateListEntry) UnmarshalBinary

func (m *LicensesTemplateListEntry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LicensesTemplateListEntry) Validate

func (m *LicensesTemplateListEntry) Validate(formats strfmt.Registry) error

Validate validates this licenses template list entry

type MarkdownOption

type MarkdownOption struct {

	// URL path for rendering issue, media and file links
	// Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}
	//
	// in: body
	Context string `json:"Context,omitempty"`

	// Mode to render (comment, gfm, markdown)
	//
	// in: body
	Mode string `json:"Mode,omitempty"`

	// Text markdown to render
	//
	// in: body
	Text string `json:"Text,omitempty"`

	// Is it a wiki page ?
	//
	// in: body
	Wiki bool `json:"Wiki,omitempty"`
}

MarkdownOption MarkdownOption markdown options

swagger:model MarkdownOption

func (*MarkdownOption) ContextValidate

func (m *MarkdownOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this markdown option based on context it is used

func (*MarkdownOption) MarshalBinary

func (m *MarkdownOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MarkdownOption) UnmarshalBinary

func (m *MarkdownOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MarkdownOption) Validate

func (m *MarkdownOption) Validate(formats strfmt.Registry) error

Validate validates this markdown option

type MarkupOption

type MarkupOption struct {

	// URL path for rendering issue, media and file links
	// Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}
	//
	// in: body
	Context string `json:"Context,omitempty"`

	// File path for detecting extension in file mode
	//
	// in: body
	FilePath string `json:"FilePath,omitempty"`

	// Mode to render (comment, gfm, markdown, file)
	//
	// in: body
	Mode string `json:"Mode,omitempty"`

	// Text markup to render
	//
	// in: body
	Text string `json:"Text,omitempty"`

	// Is it a wiki page ?
	//
	// in: body
	Wiki bool `json:"Wiki,omitempty"`
}

MarkupOption MarkupOption markup options

swagger:model MarkupOption

func (*MarkupOption) ContextValidate

func (m *MarkupOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this markup option based on context it is used

func (*MarkupOption) MarshalBinary

func (m *MarkupOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MarkupOption) UnmarshalBinary

func (m *MarkupOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MarkupOption) Validate

func (m *MarkupOption) Validate(formats strfmt.Registry) error

Validate validates this markup option

type MergePullRequestForm

type MergePullRequestForm struct {

	// delete branch after merge
	DeleteBranchAfterMerge bool `json:"delete_branch_after_merge,omitempty"`

	// do
	// Required: true
	// Enum: ["merge","rebase","rebase-merge","squash","fast-forward-only","manually-merged"]
	Do *string `json:"Do"`

	// force merge
	ForceMerge bool `json:"force_merge,omitempty"`

	// head commit ID
	HeadCommitID string `json:"head_commit_id,omitempty"`

	// merge commit ID
	MergeCommitID string `json:"MergeCommitID,omitempty"`

	// merge message field
	MergeMessageField string `json:"MergeMessageField,omitempty"`

	// merge title field
	MergeTitleField string `json:"MergeTitleField,omitempty"`

	// merge when checks succeed
	MergeWhenChecksSucceed bool `json:"merge_when_checks_succeed,omitempty"`
}

MergePullRequestForm MergePullRequestForm form for merging Pull Request

swagger:model MergePullRequestForm

func (*MergePullRequestForm) ContextValidate

func (m *MergePullRequestForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this merge pull request form based on context it is used

func (*MergePullRequestForm) MarshalBinary

func (m *MergePullRequestForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MergePullRequestForm) UnmarshalBinary

func (m *MergePullRequestForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MergePullRequestForm) Validate

func (m *MergePullRequestForm) Validate(formats strfmt.Registry) error

Validate validates this merge pull request form

type MigrateRepoOptions

type MigrateRepoOptions struct {

	// auth password
	AuthPassword string `json:"auth_password,omitempty"`

	// auth token
	AuthToken string `json:"auth_token,omitempty"`

	// auth username
	AuthUsername string `json:"auth_username,omitempty"`

	// clone addr
	// Required: true
	CloneAddr *string `json:"clone_addr"`

	// description
	Description string `json:"description,omitempty"`

	// issues
	Issues bool `json:"issues,omitempty"`

	// l f s
	LFS bool `json:"lfs,omitempty"`

	// l f s endpoint
	LFSEndpoint string `json:"lfs_endpoint,omitempty"`

	// labels
	Labels bool `json:"labels,omitempty"`

	// milestones
	Milestones bool `json:"milestones,omitempty"`

	// mirror
	Mirror bool `json:"mirror,omitempty"`

	// mirror interval
	MirrorInterval string `json:"mirror_interval,omitempty"`

	// private
	Private bool `json:"private,omitempty"`

	// pull requests
	PullRequests bool `json:"pull_requests,omitempty"`

	// releases
	Releases bool `json:"releases,omitempty"`

	// repo name
	// Required: true
	RepoName *string `json:"repo_name"`

	// Name of User or Organisation who will own Repo after migration
	RepoOwner string `json:"repo_owner,omitempty"`

	// deprecated (only for backwards compatibility)
	RepoOwnerID int64 `json:"uid,omitempty"`

	// service
	// Enum: ["git","github","gitea","gitlab","gogs","onedev","gitbucket","codebase"]
	Service string `json:"service,omitempty"`

	// wiki
	Wiki bool `json:"wiki,omitempty"`
}

MigrateRepoOptions MigrateRepoOptions options for migrating repository's this is used to interact with api v1

swagger:model MigrateRepoOptions

func (*MigrateRepoOptions) ContextValidate

func (m *MigrateRepoOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this migrate repo options based on context it is used

func (*MigrateRepoOptions) MarshalBinary

func (m *MigrateRepoOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MigrateRepoOptions) UnmarshalBinary

func (m *MigrateRepoOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MigrateRepoOptions) Validate

func (m *MigrateRepoOptions) Validate(formats strfmt.Registry) error

Validate validates this migrate repo options

type Milestone

type Milestone struct {

	// closed
	// Format: date-time
	Closed strfmt.DateTime `json:"closed_at,omitempty"`

	// closed issues
	ClosedIssues int64 `json:"closed_issues,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_on,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// open issues
	OpenIssues int64 `json:"open_issues,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// state
	State StateType `json:"state,omitempty"`
}

Milestone Milestone milestone is a collection of issues on one repository

swagger:model Milestone

func (*Milestone) ContextValidate

func (m *Milestone) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this milestone based on the context it is used

func (*Milestone) MarshalBinary

func (m *Milestone) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Milestone) UnmarshalBinary

func (m *Milestone) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Milestone) Validate

func (m *Milestone) Validate(formats strfmt.Registry) error

Validate validates this milestone

type NewIssuePinsAllowed

type NewIssuePinsAllowed struct {

	// issues
	Issues bool `json:"issues,omitempty"`

	// pull requests
	PullRequests bool `json:"pull_requests,omitempty"`
}

NewIssuePinsAllowed NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed

swagger:model NewIssuePinsAllowed

func (*NewIssuePinsAllowed) ContextValidate

func (m *NewIssuePinsAllowed) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this new issue pins allowed based on context it is used

func (*NewIssuePinsAllowed) MarshalBinary

func (m *NewIssuePinsAllowed) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NewIssuePinsAllowed) UnmarshalBinary

func (m *NewIssuePinsAllowed) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NewIssuePinsAllowed) Validate

func (m *NewIssuePinsAllowed) Validate(formats strfmt.Registry) error

Validate validates this new issue pins allowed

type NodeInfo

type NodeInfo struct {

	// metadata
	Metadata interface{} `json:"metadata,omitempty"`

	// open registrations
	OpenRegistrations bool `json:"openRegistrations,omitempty"`

	// protocols
	Protocols []string `json:"protocols"`

	// version
	Version string `json:"version,omitempty"`

	// services
	Services *NodeInfoServices `json:"services,omitempty"`

	// software
	Software *NodeInfoSoftware `json:"software,omitempty"`

	// usage
	Usage *NodeInfoUsage `json:"usage,omitempty"`
}

NodeInfo NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks

swagger:model NodeInfo

func (*NodeInfo) ContextValidate

func (m *NodeInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this node info based on the context it is used

func (*NodeInfo) MarshalBinary

func (m *NodeInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeInfo) UnmarshalBinary

func (m *NodeInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeInfo) Validate

func (m *NodeInfo) Validate(formats strfmt.Registry) error

Validate validates this node info

type NodeInfoServices

type NodeInfoServices struct {

	// inbound
	Inbound []string `json:"inbound"`

	// outbound
	Outbound []string `json:"outbound"`
}

NodeInfoServices NodeInfoServices contains the third party sites this server can connect to via their application API

swagger:model NodeInfoServices

func (*NodeInfoServices) ContextValidate

func (m *NodeInfoServices) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node info services based on context it is used

func (*NodeInfoServices) MarshalBinary

func (m *NodeInfoServices) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeInfoServices) UnmarshalBinary

func (m *NodeInfoServices) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeInfoServices) Validate

func (m *NodeInfoServices) Validate(formats strfmt.Registry) error

Validate validates this node info services

type NodeInfoSoftware

type NodeInfoSoftware struct {

	// homepage
	Homepage string `json:"homepage,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// repository
	Repository string `json:"repository,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

NodeInfoSoftware NodeInfoSoftware contains Metadata about server software in use

swagger:model NodeInfoSoftware

func (*NodeInfoSoftware) ContextValidate

func (m *NodeInfoSoftware) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node info software based on context it is used

func (*NodeInfoSoftware) MarshalBinary

func (m *NodeInfoSoftware) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeInfoSoftware) UnmarshalBinary

func (m *NodeInfoSoftware) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeInfoSoftware) Validate

func (m *NodeInfoSoftware) Validate(formats strfmt.Registry) error

Validate validates this node info software

type NodeInfoUsage

type NodeInfoUsage struct {

	// local comments
	LocalComments int64 `json:"localComments,omitempty"`

	// local posts
	LocalPosts int64 `json:"localPosts,omitempty"`

	// users
	Users *NodeInfoUsageUsers `json:"users,omitempty"`
}

NodeInfoUsage NodeInfoUsage contains usage statistics for this server

swagger:model NodeInfoUsage

func (*NodeInfoUsage) ContextValidate

func (m *NodeInfoUsage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this node info usage based on the context it is used

func (*NodeInfoUsage) MarshalBinary

func (m *NodeInfoUsage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeInfoUsage) UnmarshalBinary

func (m *NodeInfoUsage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeInfoUsage) Validate

func (m *NodeInfoUsage) Validate(formats strfmt.Registry) error

Validate validates this node info usage

type NodeInfoUsageUsers

type NodeInfoUsageUsers struct {

	// active halfyear
	ActiveHalfyear int64 `json:"activeHalfyear,omitempty"`

	// active month
	ActiveMonth int64 `json:"activeMonth,omitempty"`

	// total
	Total int64 `json:"total,omitempty"`
}

NodeInfoUsageUsers NodeInfoUsageUsers contains statistics about the users of this server

swagger:model NodeInfoUsageUsers

func (*NodeInfoUsageUsers) ContextValidate

func (m *NodeInfoUsageUsers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node info usage users based on context it is used

func (*NodeInfoUsageUsers) MarshalBinary

func (m *NodeInfoUsageUsers) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeInfoUsageUsers) UnmarshalBinary

func (m *NodeInfoUsageUsers) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeInfoUsageUsers) Validate

func (m *NodeInfoUsageUsers) Validate(formats strfmt.Registry) error

Validate validates this node info usage users

type Note

type Note struct {

	// message
	Message string `json:"message,omitempty"`

	// commit
	Commit *Commit `json:"commit,omitempty"`
}

Note Note contains information related to a git note

swagger:model Note

func (*Note) ContextValidate

func (m *Note) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this note based on the context it is used

func (*Note) MarshalBinary

func (m *Note) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Note) UnmarshalBinary

func (m *Note) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Note) Validate

func (m *Note) Validate(formats strfmt.Registry) error

Validate validates this note

type NotificationCount

type NotificationCount struct {

	// new
	New int64 `json:"new,omitempty"`
}

NotificationCount NotificationCount number of unread notifications

swagger:model NotificationCount

func (*NotificationCount) ContextValidate

func (m *NotificationCount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this notification count based on context it is used

func (*NotificationCount) MarshalBinary

func (m *NotificationCount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotificationCount) UnmarshalBinary

func (m *NotificationCount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotificationCount) Validate

func (m *NotificationCount) Validate(formats strfmt.Registry) error

Validate validates this notification count

type NotificationSubject

type NotificationSubject struct {

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// latest comment HTML URL
	LatestCommentHTMLURL string `json:"latest_comment_html_url,omitempty"`

	// latest comment URL
	LatestCommentURL string `json:"latest_comment_url,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// state
	State StateType `json:"state,omitempty"`

	// type
	Type NotifySubjectType `json:"type,omitempty"`
}

NotificationSubject NotificationSubject contains the notification subject (Issue/Pull/Commit)

swagger:model NotificationSubject

func (*NotificationSubject) ContextValidate

func (m *NotificationSubject) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this notification subject based on the context it is used

func (*NotificationSubject) MarshalBinary

func (m *NotificationSubject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotificationSubject) UnmarshalBinary

func (m *NotificationSubject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotificationSubject) Validate

func (m *NotificationSubject) Validate(formats strfmt.Registry) error

Validate validates this notification subject

type NotificationThread

type NotificationThread struct {

	// ID
	ID int64 `json:"id,omitempty"`

	// pinned
	Pinned bool `json:"pinned,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// unread
	Unread bool `json:"unread,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// repository
	Repository *Repository `json:"repository,omitempty"`

	// subject
	Subject *NotificationSubject `json:"subject,omitempty"`
}

NotificationThread NotificationThread expose Notification on API

swagger:model NotificationThread

func (*NotificationThread) ContextValidate

func (m *NotificationThread) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this notification thread based on the context it is used

func (*NotificationThread) MarshalBinary

func (m *NotificationThread) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotificationThread) UnmarshalBinary

func (m *NotificationThread) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotificationThread) Validate

func (m *NotificationThread) Validate(formats strfmt.Registry) error

Validate validates this notification thread

type NotifySubjectType

type NotifySubjectType string

NotifySubjectType NotifySubjectType represent type of notification subject

swagger:model NotifySubjectType

func (NotifySubjectType) ContextValidate

func (m NotifySubjectType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this notify subject type based on context it is used

func (NotifySubjectType) Validate

func (m NotifySubjectType) Validate(formats strfmt.Registry) error

Validate validates this notify subject type

type OAuth2Application

type OAuth2Application struct {

	// client ID
	ClientID string `json:"client_id,omitempty"`

	// client secret
	ClientSecret string `json:"client_secret,omitempty"`

	// confidential client
	ConfidentialClient bool `json:"confidential_client,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// redirect u r is
	RedirectURIs []string `json:"redirect_uris"`

	// skip secondary authorization
	SkipSecondaryAuthorization bool `json:"skip_secondary_authorization,omitempty"`
}

OAuth2Application OAuth2Application represents an OAuth2 application.

swagger:model OAuth2Application

func (*OAuth2Application) ContextValidate

func (m *OAuth2Application) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this o auth2 application based on context it is used

func (*OAuth2Application) MarshalBinary

func (m *OAuth2Application) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OAuth2Application) UnmarshalBinary

func (m *OAuth2Application) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OAuth2Application) Validate

func (m *OAuth2Application) Validate(formats strfmt.Registry) error

Validate validates this o auth2 application

type Organization

type Organization struct {

	// avatar URL
	AvatarURL string `json:"avatar_url,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// repo admin change team access
	RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access,omitempty"`

	// deprecated
	UserName string `json:"username,omitempty"`

	// visibility
	Visibility string `json:"visibility,omitempty"`

	// website
	Website string `json:"website,omitempty"`
}

Organization Organization represents an organization

swagger:model Organization

func (*Organization) ContextValidate

func (m *Organization) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this organization based on context it is used

func (*Organization) MarshalBinary

func (m *Organization) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Organization) UnmarshalBinary

func (m *Organization) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Organization) Validate

func (m *Organization) Validate(formats strfmt.Registry) error

Validate validates this organization

type OrganizationPermissions

type OrganizationPermissions struct {

	// can create repository
	CanCreateRepository bool `json:"can_create_repository,omitempty"`

	// can read
	CanRead bool `json:"can_read,omitempty"`

	// can write
	CanWrite bool `json:"can_write,omitempty"`

	// is admin
	IsAdmin bool `json:"is_admin,omitempty"`

	// is owner
	IsOwner bool `json:"is_owner,omitempty"`
}

OrganizationPermissions OrganizationPermissions list different users permissions on an organization

swagger:model OrganizationPermissions

func (*OrganizationPermissions) ContextValidate

func (m *OrganizationPermissions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this organization permissions based on context it is used

func (*OrganizationPermissions) MarshalBinary

func (m *OrganizationPermissions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrganizationPermissions) UnmarshalBinary

func (m *OrganizationPermissions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrganizationPermissions) Validate

func (m *OrganizationPermissions) Validate(formats strfmt.Registry) error

Validate validates this organization permissions

type PRBranchInfo

type PRBranchInfo struct {

	// name
	Name string `json:"label,omitempty"`

	// ref
	Ref string `json:"ref,omitempty"`

	// repo ID
	RepoID int64 `json:"repo_id,omitempty"`

	// sha
	Sha string `json:"sha,omitempty"`

	// repo
	Repo *Repository `json:"repo,omitempty"`
}

PRBranchInfo PRBranchInfo information about a branch

swagger:model PRBranchInfo

func (*PRBranchInfo) ContextValidate

func (m *PRBranchInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this p r branch info based on the context it is used

func (*PRBranchInfo) MarshalBinary

func (m *PRBranchInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PRBranchInfo) UnmarshalBinary

func (m *PRBranchInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PRBranchInfo) Validate

func (m *PRBranchInfo) Validate(formats strfmt.Registry) error

Validate validates this p r branch info

type Package

type Package struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// version
	Version string `json:"version,omitempty"`

	// creator
	Creator *User `json:"creator,omitempty"`

	// owner
	Owner *User `json:"owner,omitempty"`

	// repository
	Repository *Repository `json:"repository,omitempty"`
}

Package Package represents a package

swagger:model Package

func (*Package) ContextValidate

func (m *Package) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this package based on the context it is used

func (*Package) MarshalBinary

func (m *Package) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Package) UnmarshalBinary

func (m *Package) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Package) Validate

func (m *Package) Validate(formats strfmt.Registry) error

Validate validates this package

type PackageFile

type PackageFile struct {

	// hash m d5
	HashMD5 string `json:"md5,omitempty"`

	// hash s h a1
	HashSHA1 string `json:"sha1,omitempty"`

	// hash s h a256
	HashSHA256 string `json:"sha256,omitempty"`

	// hash s h a512
	HashSHA512 string `json:"sha512,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// size
	Size int64 `json:"Size,omitempty"`
}

PackageFile PackageFile represents a package file

swagger:model PackageFile

func (*PackageFile) ContextValidate

func (m *PackageFile) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this package file based on context it is used

func (*PackageFile) MarshalBinary

func (m *PackageFile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageFile) UnmarshalBinary

func (m *PackageFile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageFile) Validate

func (m *PackageFile) Validate(formats strfmt.Registry) error

Validate validates this package file

type PayloadCommit

type PayloadCommit struct {

	// added
	Added []string `json:"added"`

	// sha1 hash of the commit
	ID string `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// modified
	Modified []string `json:"modified"`

	// removed
	Removed []string `json:"removed"`

	// timestamp
	// Format: date-time
	Timestamp strfmt.DateTime `json:"timestamp,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// author
	Author *PayloadUser `json:"author,omitempty"`

	// committer
	Committer *PayloadUser `json:"committer,omitempty"`

	// verification
	Verification *PayloadCommitVerification `json:"verification,omitempty"`
}

PayloadCommit PayloadCommit represents a commit

swagger:model PayloadCommit

func (*PayloadCommit) ContextValidate

func (m *PayloadCommit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payload commit based on the context it is used

func (*PayloadCommit) MarshalBinary

func (m *PayloadCommit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PayloadCommit) UnmarshalBinary

func (m *PayloadCommit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PayloadCommit) Validate

func (m *PayloadCommit) Validate(formats strfmt.Registry) error

Validate validates this payload commit

type PayloadCommitVerification

type PayloadCommitVerification struct {

	// payload
	Payload string `json:"payload,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// signature
	Signature string `json:"signature,omitempty"`

	// verified
	Verified bool `json:"verified,omitempty"`

	// signer
	Signer *PayloadUser `json:"signer,omitempty"`
}

PayloadCommitVerification PayloadCommitVerification represents the GPG verification of a commit

swagger:model PayloadCommitVerification

func (*PayloadCommitVerification) ContextValidate

func (m *PayloadCommitVerification) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this payload commit verification based on the context it is used

func (*PayloadCommitVerification) MarshalBinary

func (m *PayloadCommitVerification) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PayloadCommitVerification) UnmarshalBinary

func (m *PayloadCommitVerification) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PayloadCommitVerification) Validate

func (m *PayloadCommitVerification) Validate(formats strfmt.Registry) error

Validate validates this payload commit verification

type PayloadUser

type PayloadUser struct {

	// email
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// Full name of the commit author
	Name string `json:"name,omitempty"`

	// user name
	UserName string `json:"username,omitempty"`
}

PayloadUser PayloadUser represents the author or committer of a commit

swagger:model PayloadUser

func (*PayloadUser) ContextValidate

func (m *PayloadUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this payload user based on context it is used

func (*PayloadUser) MarshalBinary

func (m *PayloadUser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PayloadUser) UnmarshalBinary

func (m *PayloadUser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PayloadUser) Validate

func (m *PayloadUser) Validate(formats strfmt.Registry) error

Validate validates this payload user

type Permission

type Permission struct {

	// admin
	Admin bool `json:"admin,omitempty"`

	// pull
	Pull bool `json:"pull,omitempty"`

	// push
	Push bool `json:"push,omitempty"`
}

Permission Permission represents a set of permissions

swagger:model Permission

func (*Permission) ContextValidate

func (m *Permission) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this permission based on context it is used

func (*Permission) MarshalBinary

func (m *Permission) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Permission) UnmarshalBinary

func (m *Permission) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Permission) Validate

func (m *Permission) Validate(formats strfmt.Registry) error

Validate validates this permission

type PublicKey

type PublicKey struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// fingerprint
	Fingerprint string `json:"fingerprint,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// key
	Key string `json:"key,omitempty"`

	// key type
	KeyType string `json:"key_type,omitempty"`

	// read only
	ReadOnly bool `json:"read_only,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

PublicKey PublicKey publickey is a user key to push code to repository

swagger:model PublicKey

func (*PublicKey) ContextValidate

func (m *PublicKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public key based on the context it is used

func (*PublicKey) MarshalBinary

func (m *PublicKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicKey) UnmarshalBinary

func (m *PublicKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicKey) Validate

func (m *PublicKey) Validate(formats strfmt.Registry) error

Validate validates this public key

type PullRequest

type PullRequest struct {

	// additions
	Additions int64 `json:"additions,omitempty"`

	// allow maintainer edit
	AllowMaintainerEdit bool `json:"allow_maintainer_edit,omitempty"`

	// assignees
	Assignees []*User `json:"assignees"`

	// body
	Body string `json:"body,omitempty"`

	// changed files
	ChangedFiles int64 `json:"changed_files,omitempty"`

	// closed
	// Format: date-time
	Closed strfmt.DateTime `json:"closed_at,omitempty"`

	// comments
	Comments int64 `json:"comments,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// deadline
	// Format: date-time
	Deadline strfmt.DateTime `json:"due_date,omitempty"`

	// deletions
	Deletions int64 `json:"deletions,omitempty"`

	// diff URL
	DiffURL string `json:"diff_url,omitempty"`

	// draft
	Draft bool `json:"draft,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// has merged
	HasMerged bool `json:"merged,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// index
	Index int64 `json:"number,omitempty"`

	// is locked
	IsLocked bool `json:"is_locked,omitempty"`

	// labels
	Labels []*Label `json:"labels"`

	// merge base
	MergeBase string `json:"merge_base,omitempty"`

	// mergeable
	Mergeable bool `json:"mergeable,omitempty"`

	// merged
	// Format: date-time
	Merged strfmt.DateTime `json:"merged_at,omitempty"`

	// merged commit ID
	MergedCommitID string `json:"merge_commit_sha,omitempty"`

	// patch URL
	PatchURL string `json:"patch_url,omitempty"`

	// pin order
	PinOrder int64 `json:"pin_order,omitempty"`

	// requested reviewers
	RequestedReviewers []*User `json:"requested_reviewers"`

	// number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)
	ReviewComments int64 `json:"review_comments,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// assignee
	Assignee *User `json:"assignee,omitempty"`

	// base
	Base *PRBranchInfo `json:"base,omitempty"`

	// head
	Head *PRBranchInfo `json:"head,omitempty"`

	// merged by
	MergedBy *User `json:"merged_by,omitempty"`

	// milestone
	Milestone *Milestone `json:"milestone,omitempty"`

	// state
	State StateType `json:"state,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

PullRequest PullRequest represents a pull request

swagger:model PullRequest

func (*PullRequest) ContextValidate

func (m *PullRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this pull request based on the context it is used

func (*PullRequest) MarshalBinary

func (m *PullRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PullRequest) UnmarshalBinary

func (m *PullRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PullRequest) Validate

func (m *PullRequest) Validate(formats strfmt.Registry) error

Validate validates this pull request

type PullRequestMeta

type PullRequestMeta struct {

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// has merged
	HasMerged bool `json:"merged,omitempty"`

	// is work in progress
	IsWorkInProgress bool `json:"draft,omitempty"`

	// merged
	// Format: date-time
	Merged strfmt.DateTime `json:"merged_at,omitempty"`
}

PullRequestMeta PullRequestMeta PR info if an issue is a PR

swagger:model PullRequestMeta

func (*PullRequestMeta) ContextValidate

func (m *PullRequestMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pull request meta based on context it is used

func (*PullRequestMeta) MarshalBinary

func (m *PullRequestMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PullRequestMeta) UnmarshalBinary

func (m *PullRequestMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PullRequestMeta) Validate

func (m *PullRequestMeta) Validate(formats strfmt.Registry) error

Validate validates this pull request meta

type PullReview

type PullReview struct {

	// body
	Body string `json:"body,omitempty"`

	// code comments count
	CodeCommentsCount int64 `json:"comments_count,omitempty"`

	// commit ID
	CommitID string `json:"commit_id,omitempty"`

	// dismissed
	Dismissed bool `json:"dismissed,omitempty"`

	// HTML pull URL
	HTMLPullURL string `json:"pull_request_url,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// official
	Official bool `json:"official,omitempty"`

	// stale
	Stale bool `json:"stale,omitempty"`

	// submitted
	// Format: date-time
	Submitted strfmt.DateTime `json:"submitted_at,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// state
	State ReviewStateType `json:"state,omitempty"`

	// team
	Team *Team `json:"team,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

PullReview PullReview represents a pull request review

swagger:model PullReview

func (*PullReview) ContextValidate

func (m *PullReview) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this pull review based on the context it is used

func (*PullReview) MarshalBinary

func (m *PullReview) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PullReview) UnmarshalBinary

func (m *PullReview) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PullReview) Validate

func (m *PullReview) Validate(formats strfmt.Registry) error

Validate validates this pull review

type PullReviewComment

type PullReviewComment struct {

	// body
	Body string `json:"body,omitempty"`

	// commit ID
	CommitID string `json:"commit_id,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// diff hunk
	DiffHunk string `json:"diff_hunk,omitempty"`

	// HTML pull URL
	HTMLPullURL string `json:"pull_request_url,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// line num
	LineNum uint64 `json:"position,omitempty"`

	// old line num
	OldLineNum uint64 `json:"original_position,omitempty"`

	// orig commit ID
	OrigCommitID string `json:"original_commit_id,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// review ID
	ReviewID int64 `json:"pull_request_review_id,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// resolver
	Resolver *User `json:"resolver,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

PullReviewComment PullReviewComment represents a comment on a pull request review

swagger:model PullReviewComment

func (*PullReviewComment) ContextValidate

func (m *PullReviewComment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this pull review comment based on the context it is used

func (*PullReviewComment) MarshalBinary

func (m *PullReviewComment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PullReviewComment) UnmarshalBinary

func (m *PullReviewComment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PullReviewComment) Validate

func (m *PullReviewComment) Validate(formats strfmt.Registry) error

Validate validates this pull review comment

type PullReviewRequestOptions

type PullReviewRequestOptions struct {

	// reviewers
	Reviewers []string `json:"reviewers"`

	// team reviewers
	TeamReviewers []string `json:"team_reviewers"`
}

PullReviewRequestOptions PullReviewRequestOptions are options to add or remove pull review requests

swagger:model PullReviewRequestOptions

func (*PullReviewRequestOptions) ContextValidate

func (m *PullReviewRequestOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pull review request options based on context it is used

func (*PullReviewRequestOptions) MarshalBinary

func (m *PullReviewRequestOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PullReviewRequestOptions) UnmarshalBinary

func (m *PullReviewRequestOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PullReviewRequestOptions) Validate

func (m *PullReviewRequestOptions) Validate(formats strfmt.Registry) error

Validate validates this pull review request options

type PushMirror

type PushMirror struct {

	// created unix
	// Format: date-time
	CreatedUnix strfmt.DateTime `json:"created,omitempty"`

	// interval
	Interval string `json:"interval,omitempty"`

	// last error
	LastError string `json:"last_error,omitempty"`

	// last update unix
	// Format: date-time
	LastUpdateUnix strfmt.DateTime `json:"last_update,omitempty"`

	// remote address
	RemoteAddress string `json:"remote_address,omitempty"`

	// remote name
	RemoteName string `json:"remote_name,omitempty"`

	// repo name
	RepoName string `json:"repo_name,omitempty"`

	// sync on commit
	SyncOnCommit bool `json:"sync_on_commit,omitempty"`
}

PushMirror PushMirror represents information of a push mirror

swagger:model PushMirror

func (*PushMirror) ContextValidate

func (m *PushMirror) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this push mirror based on context it is used

func (*PushMirror) MarshalBinary

func (m *PushMirror) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PushMirror) UnmarshalBinary

func (m *PushMirror) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PushMirror) Validate

func (m *PushMirror) Validate(formats strfmt.Registry) error

Validate validates this push mirror

type Reaction

type Reaction struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// reaction
	Reaction string `json:"content,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

Reaction Reaction contain one reaction

swagger:model Reaction

func (*Reaction) ContextValidate

func (m *Reaction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this reaction based on the context it is used

func (*Reaction) MarshalBinary

func (m *Reaction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Reaction) UnmarshalBinary

func (m *Reaction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Reaction) Validate

func (m *Reaction) Validate(formats strfmt.Registry) error

Validate validates this reaction

type Reference

type Reference struct {

	// ref
	Ref string `json:"ref,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// object
	Object *GitObject `json:"object,omitempty"`
}

Reference Reference represents a Git reference.

swagger:model Reference

func (*Reference) ContextValidate

func (m *Reference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this reference based on the context it is used

func (*Reference) MarshalBinary

func (m *Reference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Reference) UnmarshalBinary

func (m *Reference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Reference) Validate

func (m *Reference) Validate(formats strfmt.Registry) error

Validate validates this reference

type Release

type Release struct {

	// attachments
	Attachments []*Attachment `json:"assets"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// is draft
	IsDraft bool `json:"draft,omitempty"`

	// is prerelease
	IsPrerelease bool `json:"prerelease,omitempty"`

	// note
	Note string `json:"body,omitempty"`

	// published at
	// Format: date-time
	PublishedAt strfmt.DateTime `json:"published_at,omitempty"`

	// tag name
	TagName string `json:"tag_name,omitempty"`

	// tar URL
	TarURL string `json:"tarball_url,omitempty"`

	// target
	Target string `json:"target_commitish,omitempty"`

	// title
	Title string `json:"name,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// upload URL
	UploadURL string `json:"upload_url,omitempty"`

	// zip URL
	ZipURL string `json:"zipball_url,omitempty"`

	// author
	Author *User `json:"author,omitempty"`
}

Release Release represents a repository release

swagger:model Release

func (*Release) ContextValidate

func (m *Release) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this release based on the context it is used

func (*Release) MarshalBinary

func (m *Release) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Release) UnmarshalBinary

func (m *Release) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Release) Validate

func (m *Release) Validate(formats strfmt.Registry) error

Validate validates this release

type RenameUserOption

type RenameUserOption struct {

	// New username for this user. This name cannot be in use yet by any other user.
	// Required: true
	NewName *string `json:"new_username"`
}

RenameUserOption RenameUserOption options when renaming a user

swagger:model RenameUserOption

func (*RenameUserOption) ContextValidate

func (m *RenameUserOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rename user option based on context it is used

func (*RenameUserOption) MarshalBinary

func (m *RenameUserOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RenameUserOption) UnmarshalBinary

func (m *RenameUserOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RenameUserOption) Validate

func (m *RenameUserOption) Validate(formats strfmt.Registry) error

Validate validates this rename user option

type RepoCollaboratorPermission

type RepoCollaboratorPermission struct {

	// permission
	Permission string `json:"permission,omitempty"`

	// role name
	RoleName string `json:"role_name,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

RepoCollaboratorPermission RepoCollaboratorPermission to get repository permission for a collaborator

swagger:model RepoCollaboratorPermission

func (*RepoCollaboratorPermission) ContextValidate

func (m *RepoCollaboratorPermission) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this repo collaborator permission based on the context it is used

func (*RepoCollaboratorPermission) MarshalBinary

func (m *RepoCollaboratorPermission) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RepoCollaboratorPermission) UnmarshalBinary

func (m *RepoCollaboratorPermission) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RepoCollaboratorPermission) Validate

func (m *RepoCollaboratorPermission) Validate(formats strfmt.Registry) error

Validate validates this repo collaborator permission

type RepoCommit

type RepoCommit struct {

	// message
	Message string `json:"message,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// author
	Author *CommitUser `json:"author,omitempty"`

	// committer
	Committer *CommitUser `json:"committer,omitempty"`

	// tree
	Tree *CommitMeta `json:"tree,omitempty"`

	// verification
	Verification *PayloadCommitVerification `json:"verification,omitempty"`
}

RepoCommit RepoCommit contains information of a commit in the context of a repository.

swagger:model RepoCommit

func (*RepoCommit) ContextValidate

func (m *RepoCommit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this repo commit based on the context it is used

func (*RepoCommit) MarshalBinary

func (m *RepoCommit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RepoCommit) UnmarshalBinary

func (m *RepoCommit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RepoCommit) Validate

func (m *RepoCommit) Validate(formats strfmt.Registry) error

Validate validates this repo commit

type RepoTopicOptions

type RepoTopicOptions struct {

	// list of topic names
	Topics []string `json:"topics"`
}

RepoTopicOptions RepoTopicOptions a collection of repo topic names

swagger:model RepoTopicOptions

func (*RepoTopicOptions) ContextValidate

func (m *RepoTopicOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this repo topic options based on context it is used

func (*RepoTopicOptions) MarshalBinary

func (m *RepoTopicOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RepoTopicOptions) UnmarshalBinary

func (m *RepoTopicOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RepoTopicOptions) Validate

func (m *RepoTopicOptions) Validate(formats strfmt.Registry) error

Validate validates this repo topic options

type RepoTransfer

type RepoTransfer struct {

	// teams
	Teams []*Team `json:"teams"`

	// doer
	Doer *User `json:"doer,omitempty"`

	// recipient
	Recipient *User `json:"recipient,omitempty"`
}

RepoTransfer RepoTransfer represents a pending repo transfer

swagger:model RepoTransfer

func (*RepoTransfer) ContextValidate

func (m *RepoTransfer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this repo transfer based on the context it is used

func (*RepoTransfer) MarshalBinary

func (m *RepoTransfer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RepoTransfer) UnmarshalBinary

func (m *RepoTransfer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RepoTransfer) Validate

func (m *RepoTransfer) Validate(formats strfmt.Registry) error

Validate validates this repo transfer

type Repository

type Repository struct {

	// allow fast forward only
	AllowFastForwardOnly bool `json:"allow_fast_forward_only_merge,omitempty"`

	// allow merge
	AllowMerge bool `json:"allow_merge_commits,omitempty"`

	// allow rebase
	AllowRebase bool `json:"allow_rebase,omitempty"`

	// allow rebase merge
	AllowRebaseMerge bool `json:"allow_rebase_explicit,omitempty"`

	// allow rebase update
	AllowRebaseUpdate bool `json:"allow_rebase_update,omitempty"`

	// allow squash
	AllowSquash bool `json:"allow_squash_merge,omitempty"`

	// archived
	Archived bool `json:"archived,omitempty"`

	// archived at
	// Format: date-time
	ArchivedAt strfmt.DateTime `json:"archived_at,omitempty"`

	// avatar URL
	AvatarURL string `json:"avatar_url,omitempty"`

	// clone URL
	CloneURL string `json:"clone_url,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// default allow maintainer edit
	DefaultAllowMaintainerEdit bool `json:"default_allow_maintainer_edit,omitempty"`

	// default branch
	DefaultBranch string `json:"default_branch,omitempty"`

	// default delete branch after merge
	DefaultDeleteBranchAfterMerge bool `json:"default_delete_branch_after_merge,omitempty"`

	// default merge style
	DefaultMergeStyle string `json:"default_merge_style,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// empty
	Empty bool `json:"empty,omitempty"`

	// fork
	Fork bool `json:"fork,omitempty"`

	// forks
	Forks int64 `json:"forks_count,omitempty"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// has actions
	HasActions bool `json:"has_actions,omitempty"`

	// has issues
	HasIssues bool `json:"has_issues,omitempty"`

	// has packages
	HasPackages bool `json:"has_packages,omitempty"`

	// has projects
	HasProjects bool `json:"has_projects,omitempty"`

	// has pull requests
	HasPullRequests bool `json:"has_pull_requests,omitempty"`

	// has releases
	HasReleases bool `json:"has_releases,omitempty"`

	// has wiki
	HasWiki bool `json:"has_wiki,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// ignore whitespace conflicts
	IgnoreWhitespaceConflicts bool `json:"ignore_whitespace_conflicts,omitempty"`

	// internal
	Internal bool `json:"internal,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// languages URL
	LanguagesURL string `json:"languages_url,omitempty"`

	// link
	Link string `json:"link,omitempty"`

	// mirror
	Mirror bool `json:"mirror,omitempty"`

	// mirror interval
	MirrorInterval string `json:"mirror_interval,omitempty"`

	// mirror updated
	// Format: date-time
	MirrorUpdated strfmt.DateTime `json:"mirror_updated,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// ObjectFormatName of the underlying git repository
	// Enum: ["sha1","sha256"]
	ObjectFormatName string `json:"object_format_name,omitempty"`

	// open issues
	OpenIssues int64 `json:"open_issues_count,omitempty"`

	// open pulls
	OpenPulls int64 `json:"open_pr_counter,omitempty"`

	// original URL
	OriginalURL string `json:"original_url,omitempty"`

	// private
	Private bool `json:"private,omitempty"`

	// projects mode
	ProjectsMode string `json:"projects_mode,omitempty"`

	// releases
	Releases int64 `json:"release_counter,omitempty"`

	// SSH URL
	SSHURL string `json:"ssh_url,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// stars
	Stars int64 `json:"stars_count,omitempty"`

	// template
	Template bool `json:"template,omitempty"`

	// topics
	Topics []string `json:"topics"`

	// URL
	URL string `json:"url,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// watchers
	Watchers int64 `json:"watchers_count,omitempty"`

	// website
	Website string `json:"website,omitempty"`

	// external tracker
	ExternalTracker *ExternalTracker `json:"external_tracker,omitempty"`

	// external wiki
	ExternalWiki *ExternalWiki `json:"external_wiki,omitempty"`

	// internal tracker
	InternalTracker *InternalTracker `json:"internal_tracker,omitempty"`

	// owner
	Owner *User `json:"owner,omitempty"`

	// parent
	Parent *Repository `json:"parent,omitempty"`

	// permissions
	Permissions *Permission `json:"permissions,omitempty"`

	// repo transfer
	RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
}

Repository Repository represents a repository

swagger:model Repository

func (*Repository) ContextValidate

func (m *Repository) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this repository based on the context it is used

func (*Repository) MarshalBinary

func (m *Repository) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Repository) UnmarshalBinary

func (m *Repository) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Repository) Validate

func (m *Repository) Validate(formats strfmt.Registry) error

Validate validates this repository

type RepositoryMeta

type RepositoryMeta struct {

	// full name
	FullName string `json:"full_name,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`
}

RepositoryMeta RepositoryMeta basic repository information

swagger:model RepositoryMeta

func (*RepositoryMeta) ContextValidate

func (m *RepositoryMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this repository meta based on context it is used

func (*RepositoryMeta) MarshalBinary

func (m *RepositoryMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RepositoryMeta) UnmarshalBinary

func (m *RepositoryMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RepositoryMeta) Validate

func (m *RepositoryMeta) Validate(formats strfmt.Registry) error

Validate validates this repository meta

type ReviewStateType

type ReviewStateType string

ReviewStateType ReviewStateType review state type

swagger:model ReviewStateType

func (ReviewStateType) ContextValidate

func (m ReviewStateType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this review state type based on context it is used

func (ReviewStateType) Validate

func (m ReviewStateType) Validate(formats strfmt.Registry) error

Validate validates this review state type

type SearchResults

type SearchResults struct {

	// data
	Data []*Repository `json:"data"`

	// o k
	OK bool `json:"ok,omitempty"`
}

SearchResults SearchResults results of a successful search

swagger:model SearchResults

func (*SearchResults) ContextValidate

func (m *SearchResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search results based on the context it is used

func (*SearchResults) MarshalBinary

func (m *SearchResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchResults) UnmarshalBinary

func (m *SearchResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchResults) Validate

func (m *SearchResults) Validate(formats strfmt.Registry) error

Validate validates this search results

type Secret

type Secret struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// the secret's name
	Name string `json:"name,omitempty"`
}

Secret Secret represents a secret

swagger:model Secret

func (*Secret) ContextValidate

func (m *Secret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this secret based on context it is used

func (*Secret) MarshalBinary

func (m *Secret) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Secret) UnmarshalBinary

func (m *Secret) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Secret) Validate

func (m *Secret) Validate(formats strfmt.Registry) error

Validate validates this secret

type ServerVersion

type ServerVersion struct {

	// version
	Version string `json:"version,omitempty"`
}

ServerVersion ServerVersion wraps the version of the server

swagger:model ServerVersion

func (*ServerVersion) ContextValidate

func (m *ServerVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server version based on context it is used

func (*ServerVersion) MarshalBinary

func (m *ServerVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerVersion) UnmarshalBinary

func (m *ServerVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerVersion) Validate

func (m *ServerVersion) Validate(formats strfmt.Registry) error

Validate validates this server version

type StateType

type StateType string

StateType StateType issue state type

swagger:model StateType

func (StateType) ContextValidate

func (m StateType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this state type based on context it is used

func (StateType) Validate

func (m StateType) Validate(formats strfmt.Registry) error

Validate validates this state type

type StopWatch

type StopWatch struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// duration
	Duration string `json:"duration,omitempty"`

	// issue index
	IssueIndex int64 `json:"issue_index,omitempty"`

	// issue title
	IssueTitle string `json:"issue_title,omitempty"`

	// repo name
	RepoName string `json:"repo_name,omitempty"`

	// repo owner name
	RepoOwnerName string `json:"repo_owner_name,omitempty"`

	// seconds
	Seconds int64 `json:"seconds,omitempty"`
}

StopWatch StopWatch represent a running stopwatch

swagger:model StopWatch

func (*StopWatch) ContextValidate

func (m *StopWatch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stop watch based on context it is used

func (*StopWatch) MarshalBinary

func (m *StopWatch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StopWatch) UnmarshalBinary

func (m *StopWatch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StopWatch) Validate

func (m *StopWatch) Validate(formats strfmt.Registry) error

Validate validates this stop watch

type SubmitPullReviewOptions

type SubmitPullReviewOptions struct {

	// body
	Body string `json:"body,omitempty"`

	// event
	Event ReviewStateType `json:"event,omitempty"`
}

SubmitPullReviewOptions SubmitPullReviewOptions are options to submit a pending pull review

swagger:model SubmitPullReviewOptions

func (*SubmitPullReviewOptions) ContextValidate

func (m *SubmitPullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this submit pull review options based on the context it is used

func (*SubmitPullReviewOptions) MarshalBinary

func (m *SubmitPullReviewOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubmitPullReviewOptions) UnmarshalBinary

func (m *SubmitPullReviewOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubmitPullReviewOptions) Validate

func (m *SubmitPullReviewOptions) Validate(formats strfmt.Registry) error

Validate validates this submit pull review options

type Tag

type Tag struct {

	// ID
	ID string `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// tarball URL
	TarballURL string `json:"tarball_url,omitempty"`

	// zipball URL
	ZipballURL string `json:"zipball_url,omitempty"`

	// commit
	Commit *CommitMeta `json:"commit,omitempty"`
}

Tag Tag represents a repository tag

swagger:model Tag

func (*Tag) ContextValidate

func (m *Tag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tag based on the context it is used

func (*Tag) MarshalBinary

func (m *Tag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

func (m *Tag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tag) Validate

func (m *Tag) Validate(formats strfmt.Registry) error

Validate validates this tag

type TagProtection

type TagProtection struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name pattern
	NamePattern string `json:"name_pattern,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// whitelist teams
	WhitelistTeams []string `json:"whitelist_teams"`

	// whitelist usernames
	WhitelistUsernames []string `json:"whitelist_usernames"`
}

TagProtection TagProtection represents a tag protection

swagger:model TagProtection

func (*TagProtection) ContextValidate

func (m *TagProtection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this tag protection based on context it is used

func (*TagProtection) MarshalBinary

func (m *TagProtection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TagProtection) UnmarshalBinary

func (m *TagProtection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TagProtection) Validate

func (m *TagProtection) Validate(formats strfmt.Registry) error

Validate validates this tag protection

type Team

type Team struct {

	// can create org repo
	CanCreateOrgRepo bool `json:"can_create_org_repo,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// includes all repositories
	IncludesAllRepositories bool `json:"includes_all_repositories,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// permission
	// Enum: ["none","read","write","admin","owner"]
	Permission string `json:"permission,omitempty"`

	// units
	// Example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
	Units []string `json:"units"`

	// units map
	// Example: {"repo.code":"read","repo.ext_issues":"none","repo.ext_wiki":"none","repo.issues":"write","repo.projects":"none","repo.pulls":"owner","repo.releases":"none","repo.wiki":"admin"}
	UnitsMap map[string]string `json:"units_map,omitempty"`

	// organization
	Organization *Organization `json:"organization,omitempty"`
}

Team Team represents a team in an organization

swagger:model Team

func (*Team) ContextValidate

func (m *Team) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this team based on the context it is used

func (*Team) MarshalBinary

func (m *Team) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Team) UnmarshalBinary

func (m *Team) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Team) Validate

func (m *Team) Validate(formats strfmt.Registry) error

Validate validates this team

type TimeStamp

type TimeStamp int64

TimeStamp TimeStamp defines a timestamp

swagger:model TimeStamp

func (TimeStamp) ContextValidate

func (m TimeStamp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this time stamp based on context it is used

func (TimeStamp) Validate

func (m TimeStamp) Validate(formats strfmt.Registry) error

Validate validates this time stamp

type TimelineComment

type TimelineComment struct {

	// body
	Body string `json:"body,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created_at,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// issue URL
	IssueURL string `json:"issue_url,omitempty"`

	// new ref
	NewRef string `json:"new_ref,omitempty"`

	// new title
	NewTitle string `json:"new_title,omitempty"`

	// old project ID
	OldProjectID int64 `json:"old_project_id,omitempty"`

	// old ref
	OldRef string `json:"old_ref,omitempty"`

	// old title
	OldTitle string `json:"old_title,omitempty"`

	// p r URL
	PRURL string `json:"pull_request_url,omitempty"`

	// project ID
	ProjectID int64 `json:"project_id,omitempty"`

	// ref action
	RefAction string `json:"ref_action,omitempty"`

	// commit SHA where issue/PR was referenced
	RefCommitSHA string `json:"ref_commit_sha,omitempty"`

	// whether the assignees were removed or added
	RemovedAssignee bool `json:"removed_assignee,omitempty"`

	// review ID
	ReviewID int64 `json:"review_id,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated_at,omitempty"`

	// assignee
	Assignee *User `json:"assignee,omitempty"`

	// assignee team
	AssigneeTeam *Team `json:"assignee_team,omitempty"`

	// dependent issue
	DependentIssue *Issue `json:"dependent_issue,omitempty"`

	// label
	Label *Label `json:"label,omitempty"`

	// milestone
	Milestone *Milestone `json:"milestone,omitempty"`

	// old milestone
	OldMilestone *Milestone `json:"old_milestone,omitempty"`

	// ref comment
	RefComment *Comment `json:"ref_comment,omitempty"`

	// ref issue
	RefIssue *Issue `json:"ref_issue,omitempty"`

	// resolve doer
	ResolveDoer *User `json:"resolve_doer,omitempty"`

	// tracked time
	TrackedTime *TrackedTime `json:"tracked_time,omitempty"`

	// user
	User *User `json:"user,omitempty"`
}

TimelineComment TimelineComment represents a timeline comment (comment of any type) on a commit or issue

swagger:model TimelineComment

func (*TimelineComment) ContextValidate

func (m *TimelineComment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this timeline comment based on the context it is used

func (*TimelineComment) MarshalBinary

func (m *TimelineComment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimelineComment) UnmarshalBinary

func (m *TimelineComment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimelineComment) Validate

func (m *TimelineComment) Validate(formats strfmt.Registry) error

Validate validates this timeline comment

type TopicName

type TopicName struct {

	// topic names
	TopicNames []string `json:"topics"`
}

TopicName TopicName a list of repo topic names

swagger:model TopicName

func (*TopicName) ContextValidate

func (m *TopicName) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this topic name based on context it is used

func (*TopicName) MarshalBinary

func (m *TopicName) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TopicName) UnmarshalBinary

func (m *TopicName) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TopicName) Validate

func (m *TopicName) Validate(formats strfmt.Registry) error

Validate validates this topic name

type TopicResponse

type TopicResponse struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"topic_name,omitempty"`

	// repo count
	RepoCount int64 `json:"repo_count,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`
}

TopicResponse TopicResponse for returning topics

swagger:model TopicResponse

func (*TopicResponse) ContextValidate

func (m *TopicResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this topic response based on context it is used

func (*TopicResponse) MarshalBinary

func (m *TopicResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TopicResponse) UnmarshalBinary

func (m *TopicResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TopicResponse) Validate

func (m *TopicResponse) Validate(formats strfmt.Registry) error

Validate validates this topic response

type TrackedTime

type TrackedTime struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// deprecated (only for backwards compatibility)
	IssueID int64 `json:"issue_id,omitempty"`

	// Time in seconds
	Time int64 `json:"time,omitempty"`

	// deprecated (only for backwards compatibility)
	UserID int64 `json:"user_id,omitempty"`

	// user name
	UserName string `json:"user_name,omitempty"`

	// issue
	Issue *Issue `json:"issue,omitempty"`
}

TrackedTime TrackedTime worked time for an issue / pr

swagger:model TrackedTime

func (*TrackedTime) ContextValidate

func (m *TrackedTime) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tracked time based on the context it is used

func (*TrackedTime) MarshalBinary

func (m *TrackedTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TrackedTime) UnmarshalBinary

func (m *TrackedTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TrackedTime) Validate

func (m *TrackedTime) Validate(formats strfmt.Registry) error

Validate validates this tracked time

type TransferRepoOption

type TransferRepoOption struct {

	// new owner
	// Required: true
	NewOwner *string `json:"new_owner"`

	// ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
	TeamIDs []int64 `json:"team_ids"`
}

TransferRepoOption TransferRepoOption options when transfer a repository's ownership

swagger:model TransferRepoOption

func (*TransferRepoOption) ContextValidate

func (m *TransferRepoOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this transfer repo option based on context it is used

func (*TransferRepoOption) MarshalBinary

func (m *TransferRepoOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TransferRepoOption) UnmarshalBinary

func (m *TransferRepoOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TransferRepoOption) Validate

func (m *TransferRepoOption) Validate(formats strfmt.Registry) error

Validate validates this transfer repo option

type UpdateFileOptions

type UpdateFileOptions struct {

	// branch (optional) to base this file from. if not given, the default branch is used
	BranchName string `json:"branch,omitempty"`

	// content must be base64 encoded
	// Required: true
	ContentBase64 *string `json:"content"`

	// from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL
	FromPath string `json:"from_path,omitempty"`

	// message (optional) for the commit of this file. if not supplied, a default message will be used
	Message string `json:"message,omitempty"`

	// new_branch (optional) will make a new branch from `branch` before creating the file
	NewBranchName string `json:"new_branch,omitempty"`

	// sha is the SHA for the file that already exists
	// Required: true
	SHA *string `json:"sha"`

	// Add a Signed-off-by trailer by the committer at the end of the commit log message.
	Signoff bool `json:"signoff,omitempty"`

	// author
	Author *Identity `json:"author,omitempty"`

	// committer
	Committer *Identity `json:"committer,omitempty"`

	// dates
	Dates *CommitDateOptions `json:"dates,omitempty"`
}

UpdateFileOptions UpdateFileOptions options for updating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)

swagger:model UpdateFileOptions

func (*UpdateFileOptions) ContextValidate

func (m *UpdateFileOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update file options based on the context it is used

func (*UpdateFileOptions) MarshalBinary

func (m *UpdateFileOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateFileOptions) UnmarshalBinary

func (m *UpdateFileOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateFileOptions) Validate

func (m *UpdateFileOptions) Validate(formats strfmt.Registry) error

Validate validates this update file options

type UpdateRepoAvatarOption

type UpdateRepoAvatarOption struct {

	// image must be base64 encoded
	Image string `json:"image,omitempty"`
}

UpdateRepoAvatarOption UpdateRepoAvatarUserOption options when updating the repo avatar

swagger:model UpdateRepoAvatarOption

func (*UpdateRepoAvatarOption) ContextValidate

func (m *UpdateRepoAvatarOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update repo avatar option based on context it is used

func (*UpdateRepoAvatarOption) MarshalBinary

func (m *UpdateRepoAvatarOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateRepoAvatarOption) UnmarshalBinary

func (m *UpdateRepoAvatarOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateRepoAvatarOption) Validate

func (m *UpdateRepoAvatarOption) Validate(formats strfmt.Registry) error

Validate validates this update repo avatar option

type UpdateUserAvatarOption

type UpdateUserAvatarOption struct {

	// image must be base64 encoded
	Image string `json:"image,omitempty"`
}

UpdateUserAvatarOption UpdateUserAvatarUserOption options when updating the user avatar

swagger:model UpdateUserAvatarOption

func (*UpdateUserAvatarOption) ContextValidate

func (m *UpdateUserAvatarOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update user avatar option based on context it is used

func (*UpdateUserAvatarOption) MarshalBinary

func (m *UpdateUserAvatarOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateUserAvatarOption) UnmarshalBinary

func (m *UpdateUserAvatarOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateUserAvatarOption) Validate

func (m *UpdateUserAvatarOption) Validate(formats strfmt.Registry) error

Validate validates this update user avatar option

type UpdateVariableOption

type UpdateVariableOption struct {

	// New name for the variable. If the field is empty, the variable name won't be updated.
	Name string `json:"name,omitempty"`

	// Value of the variable to update
	// Required: true
	Value *string `json:"value"`
}

UpdateVariableOption UpdateVariableOption the option when updating variable

swagger:model UpdateVariableOption

func (*UpdateVariableOption) ContextValidate

func (m *UpdateVariableOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update variable option based on context it is used

func (*UpdateVariableOption) MarshalBinary

func (m *UpdateVariableOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateVariableOption) UnmarshalBinary

func (m *UpdateVariableOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateVariableOption) Validate

func (m *UpdateVariableOption) Validate(formats strfmt.Registry) error

Validate validates this update variable option

type User

type User struct {

	// URL to the user's avatar
	AvatarURL string `json:"avatar_url,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// the user's description
	Description string `json:"description,omitempty"`

	// email
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// user counts
	Followers int64 `json:"followers_count,omitempty"`

	// following
	Following int64 `json:"following_count,omitempty"`

	// the user's full name
	FullName string `json:"full_name,omitempty"`

	// URL to the user's gitea page
	HTMLURL string `json:"html_url,omitempty"`

	// the user's id
	ID int64 `json:"id,omitempty"`

	// Is user active
	IsActive bool `json:"active,omitempty"`

	// Is the user an administrator
	IsAdmin bool `json:"is_admin,omitempty"`

	// User locale
	Language string `json:"language,omitempty"`

	// last login
	// Format: date-time
	LastLogin strfmt.DateTime `json:"last_login,omitempty"`

	// the user's location
	Location string `json:"location,omitempty"`

	// the user's authentication sign-in name.
	LoginName *string `json:"login_name,omitempty"`

	// Is user login prohibited
	ProhibitLogin bool `json:"prohibit_login,omitempty"`

	// Is user restricted
	Restricted bool `json:"restricted,omitempty"`

	// The ID of the user's Authentication Source
	SourceID int64 `json:"source_id,omitempty"`

	// starred repos
	StarredRepos int64 `json:"starred_repos_count,omitempty"`

	// the user's username
	UserName string `json:"login,omitempty"`

	// User visibility level option: public, limited, private
	Visibility string `json:"visibility,omitempty"`

	// the user's website
	Website string `json:"website,omitempty"`
}

User User represents a user

swagger:model User

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user based on context it is used

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type UserBadgeOption

type UserBadgeOption struct {

	// badge slugs
	// Example: ["badge1","badge2"]
	BadgeSlugs []string `json:"badge_slugs"`
}

UserBadgeOption UserBadgeOption options for link between users and badges

swagger:model UserBadgeOption

func (*UserBadgeOption) ContextValidate

func (m *UserBadgeOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user badge option based on context it is used

func (*UserBadgeOption) MarshalBinary

func (m *UserBadgeOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserBadgeOption) UnmarshalBinary

func (m *UserBadgeOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserBadgeOption) Validate

func (m *UserBadgeOption) Validate(formats strfmt.Registry) error

Validate validates this user badge option

type UserHeatmapData

type UserHeatmapData struct {

	// contributions
	Contributions int64 `json:"contributions,omitempty"`

	// timestamp
	Timestamp TimeStamp `json:"timestamp,omitempty"`
}

UserHeatmapData UserHeatmapData represents the data needed to create a heatmap

swagger:model UserHeatmapData

func (*UserHeatmapData) ContextValidate

func (m *UserHeatmapData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user heatmap data based on the context it is used

func (*UserHeatmapData) MarshalBinary

func (m *UserHeatmapData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserHeatmapData) UnmarshalBinary

func (m *UserHeatmapData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserHeatmapData) Validate

func (m *UserHeatmapData) Validate(formats strfmt.Registry) error

Validate validates this user heatmap data

type UserSettings

type UserSettings struct {

	// description
	Description string `json:"description,omitempty"`

	// diff view style
	DiffViewStyle string `json:"diff_view_style,omitempty"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// hide activity
	HideActivity bool `json:"hide_activity,omitempty"`

	// Privacy
	HideEmail bool `json:"hide_email,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// theme
	Theme string `json:"theme,omitempty"`

	// website
	Website string `json:"website,omitempty"`
}

UserSettings UserSettings represents user settings

swagger:model UserSettings

func (*UserSettings) ContextValidate

func (m *UserSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user settings based on context it is used

func (*UserSettings) MarshalBinary

func (m *UserSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSettings) UnmarshalBinary

func (m *UserSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSettings) Validate

func (m *UserSettings) Validate(formats strfmt.Registry) error

Validate validates this user settings

type UserSettingsOptions

type UserSettingsOptions struct {

	// description
	Description string `json:"description,omitempty"`

	// diff view style
	DiffViewStyle string `json:"diff_view_style,omitempty"`

	// full name
	FullName string `json:"full_name,omitempty"`

	// hide activity
	HideActivity bool `json:"hide_activity,omitempty"`

	// Privacy
	HideEmail bool `json:"hide_email,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// theme
	Theme string `json:"theme,omitempty"`

	// website
	Website string `json:"website,omitempty"`
}

UserSettingsOptions UserSettingsOptions represents options to change user settings

swagger:model UserSettingsOptions

func (*UserSettingsOptions) ContextValidate

func (m *UserSettingsOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user settings options based on context it is used

func (*UserSettingsOptions) MarshalBinary

func (m *UserSettingsOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSettingsOptions) UnmarshalBinary

func (m *UserSettingsOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSettingsOptions) Validate

func (m *UserSettingsOptions) Validate(formats strfmt.Registry) error

Validate validates this user settings options

type WatchInfo

type WatchInfo struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// ignored
	Ignored bool `json:"ignored,omitempty"`

	// reason
	Reason interface{} `json:"reason,omitempty"`

	// repository URL
	RepositoryURL string `json:"repository_url,omitempty"`

	// subscribed
	Subscribed bool `json:"subscribed,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

WatchInfo WatchInfo represents an API watch status of one repository

swagger:model WatchInfo

func (*WatchInfo) ContextValidate

func (m *WatchInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this watch info based on context it is used

func (*WatchInfo) MarshalBinary

func (m *WatchInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WatchInfo) UnmarshalBinary

func (m *WatchInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WatchInfo) Validate

func (m *WatchInfo) Validate(formats strfmt.Registry) error

Validate validates this watch info

type WikiCommit

type WikiCommit struct {

	// ID
	ID string `json:"sha,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// author
	Author *CommitUser `json:"author,omitempty"`

	// commiter
	Commiter *CommitUser `json:"commiter,omitempty"`
}

WikiCommit WikiCommit page commit/revision

swagger:model WikiCommit

func (*WikiCommit) ContextValidate

func (m *WikiCommit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wiki commit based on the context it is used

func (*WikiCommit) MarshalBinary

func (m *WikiCommit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WikiCommit) UnmarshalBinary

func (m *WikiCommit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WikiCommit) Validate

func (m *WikiCommit) Validate(formats strfmt.Registry) error

Validate validates this wiki commit

type WikiCommitList

type WikiCommitList struct {

	// count
	Count int64 `json:"count,omitempty"`

	// wiki commits
	WikiCommits []*WikiCommit `json:"commits"`
}

WikiCommitList WikiCommitList commit/revision list

swagger:model WikiCommitList

func (*WikiCommitList) ContextValidate

func (m *WikiCommitList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wiki commit list based on the context it is used

func (*WikiCommitList) MarshalBinary

func (m *WikiCommitList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WikiCommitList) UnmarshalBinary

func (m *WikiCommitList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WikiCommitList) Validate

func (m *WikiCommitList) Validate(formats strfmt.Registry) error

Validate validates this wiki commit list

type WikiPage

type WikiPage struct {

	// commit count
	CommitCount int64 `json:"commit_count,omitempty"`

	// Page content, base64 encoded
	ContentBase64 string `json:"content_base64,omitempty"`

	// footer
	Footer string `json:"footer,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// sidebar
	Sidebar string `json:"sidebar,omitempty"`

	// sub URL
	SubURL string `json:"sub_url,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// last commit
	LastCommit *WikiCommit `json:"last_commit,omitempty"`
}

WikiPage WikiPage a wiki page

swagger:model WikiPage

func (*WikiPage) ContextValidate

func (m *WikiPage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wiki page based on the context it is used

func (*WikiPage) MarshalBinary

func (m *WikiPage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WikiPage) UnmarshalBinary

func (m *WikiPage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WikiPage) Validate

func (m *WikiPage) Validate(formats strfmt.Registry) error

Validate validates this wiki page

type WikiPageMetaData

type WikiPageMetaData struct {

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

	// sub URL
	SubURL string `json:"sub_url,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// last commit
	LastCommit *WikiCommit `json:"last_commit,omitempty"`
}

WikiPageMetaData WikiPageMetaData wiki page meta information

swagger:model WikiPageMetaData

func (*WikiPageMetaData) ContextValidate

func (m *WikiPageMetaData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wiki page meta data based on the context it is used

func (*WikiPageMetaData) MarshalBinary

func (m *WikiPageMetaData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WikiPageMetaData) UnmarshalBinary

func (m *WikiPageMetaData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WikiPageMetaData) Validate

func (m *WikiPageMetaData) Validate(formats strfmt.Registry) error

Validate validates this wiki page meta data

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL