/
nekstep
/
gvcli
Обзор
Документация
Войти
/
nekstep
/
gvcli
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/generated-api/models.go
932 строки
35 KB
kst
feat: implement PR management (view, files, comments, diff, merge --check, list filters)
26 июл 2026, 19:43
26 июл 2026, 19:43
35a5ed9
Код
Авторство
О чём код?
// Package generated_api provides primitives to interact with the openapi HTTP API. // // Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT. package generated_api import ( "encoding/json" "time" "github.com/oapi-codegen/runtime" openapi_types "github.com/oapi-codegen/runtime/types" ) // Defines values for CollaboratorInvitePermissions. const ( CollaboratorInvitePermissionsAdmin CollaboratorInvitePermissions = "admin" CollaboratorInvitePermissionsRead CollaboratorInvitePermissions = "read" CollaboratorInvitePermissionsWrite CollaboratorInvitePermissions = "write" ) // Valid indicates whether the value is a known member of the CollaboratorInvitePermissions enum. func (e CollaboratorInvitePermissions) Valid() bool { switch e { case CollaboratorInvitePermissionsAdmin: return true case CollaboratorInvitePermissionsRead: return true case CollaboratorInvitePermissionsWrite: return true default: return false } } // Defines values for RepositoryVisibility. const ( Internal RepositoryVisibility = "internal" Private RepositoryVisibility = "private" Public RepositoryVisibility = "public" ) // Valid indicates whether the value is a known member of the RepositoryVisibility enum. func (e RepositoryVisibility) Valid() bool { switch e { case Internal: return true case Private: return true case Public: return true default: return false } } // Defines values for PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission. const ( PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermissionAdmin PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission = "admin" PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermissionRead PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission = "read" PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermissionWrite PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission = "write" ) // Valid indicates whether the value is a known member of the PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission enum. func (e PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission) Valid() bool { switch e { case PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermissionAdmin: return true case PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermissionRead: return true case PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermissionWrite: return true default: return false } } // Defines values for GetReposOwnerRepoContentsPath200JSONResponseBody0Type. const ( GetReposOwnerRepoContentsPath200JSONResponseBody0TypeDir GetReposOwnerRepoContentsPath200JSONResponseBody0Type = "dir" GetReposOwnerRepoContentsPath200JSONResponseBody0TypeFile GetReposOwnerRepoContentsPath200JSONResponseBody0Type = "file" ) // Valid indicates whether the value is a known member of the GetReposOwnerRepoContentsPath200JSONResponseBody0Type enum. func (e GetReposOwnerRepoContentsPath200JSONResponseBody0Type) Valid() bool { switch e { case GetReposOwnerRepoContentsPath200JSONResponseBody0TypeDir: return true case GetReposOwnerRepoContentsPath200JSONResponseBody0TypeFile: return true default: return false } } // Defines values for GetReposOwnerRepoContentsPath200JSONResponseBody1Type. const ( GetReposOwnerRepoContentsPath200JSONResponseBody1TypeDir GetReposOwnerRepoContentsPath200JSONResponseBody1Type = "dir" GetReposOwnerRepoContentsPath200JSONResponseBody1TypeFile GetReposOwnerRepoContentsPath200JSONResponseBody1Type = "file" ) // Valid indicates whether the value is a known member of the GetReposOwnerRepoContentsPath200JSONResponseBody1Type enum. func (e GetReposOwnerRepoContentsPath200JSONResponseBody1Type) Valid() bool { switch e { case GetReposOwnerRepoContentsPath200JSONResponseBody1TypeDir: return true case GetReposOwnerRepoContentsPath200JSONResponseBody1TypeFile: return true default: return false } } // Defines values for GetReposOwnerRepoPullsParamsState. const ( All GetReposOwnerRepoPullsParamsState = "all" Closed GetReposOwnerRepoPullsParamsState = "closed" Open GetReposOwnerRepoPullsParamsState = "open" ) // Valid indicates whether the value is a known member of the GetReposOwnerRepoPullsParamsState enum. func (e GetReposOwnerRepoPullsParamsState) Valid() bool { switch e { case All: return true case Closed: return true case Open: return true default: return false } } // Branch Ветка репозитория. type Branch struct { // Commit Информация о последнем коммите Commit *struct { // Sha SHA последнего коммита Sha *string `json:"sha,omitempty"` // Url Ссылка на коммит Url *string `json:"url,omitempty"` } `json:"commit,omitempty"` // Name Имя ветки Name *string `json:"name,omitempty"` // Protected Защищена ли ветка Protected *bool `json:"protected,omitempty"` } // CollaboratorInvite Приглашение/права для соавтора репозитория. type CollaboratorInvite struct { // CreatedAt Дата и время выдачи прав CreatedAt *time.Time `json:"created_at,omitempty"` // Id Уникальный ID приглашения Id *int `json:"id,omitempty"` // Invitee Информация о пользователе. Invitee *User `json:"invitee,omitempty"` // Inviter Информация о пользователе. Inviter *User `json:"inviter,omitempty"` // Permissions Уровень предоставленных прав: read, write или admin Permissions *CollaboratorInvitePermissions `json:"permissions,omitempty"` // Repository Основные данные о репозитории. Repository *Repository `json:"repository,omitempty"` } // CollaboratorInvitePermissions Уровень предоставленных прав: read, write или admin type CollaboratorInvitePermissions string // Comment Комментарий к задаче или Pull Request. type Comment struct { // Body Текст комментария Body *string `json:"body,omitempty"` // CreatedAt Дата создания CreatedAt *time.Time `json:"created_at,omitempty"` // Id Уникальный ID комментария Id *int `json:"id,omitempty"` // UpdatedAt Дата обновления UpdatedAt *time.Time `json:"updated_at,omitempty"` // User Информация о пользователе. User *User `json:"user,omitempty"` } // Comparison Результат сравнения коммитов или веток. type Comparison struct { // AheadBy На сколько коммитов впереди AheadBy *int `json:"ahead_by,omitempty"` // BaseCommit Базовый коммит BaseCommit *struct { // Sha SHA коммита Sha *string `json:"sha,omitempty"` } `json:"base_commit,omitempty"` // BehindBy На сколько коммитов позади BehindBy *int `json:"behind_by,omitempty"` Commits *[]struct { Commit *struct { // Message Сообщение коммита Message *string `json:"message,omitempty"` } `json:"commit,omitempty"` // Sha SHA коммита Sha *string `json:"sha,omitempty"` } `json:"commits,omitempty"` Files *[]PullRequestFile `json:"files,omitempty"` // MergeBaseCommit Общий предок MergeBaseCommit *struct { // Sha SHA коммита Sha *string `json:"sha,omitempty"` } `json:"merge_base_commit,omitempty"` // Patch Общий patch/diff (если доступен) Patch *string `json:"patch,omitempty"` // Status Статус сравнения Status *string `json:"status,omitempty"` // TotalCommits Общее количество коммитов TotalCommits *int `json:"total_commits,omitempty"` } // Email Email-адрес пользователя. type Email struct { // Email Email-адрес Email *openapi_types.Email `json:"email,omitempty"` // IsPublic Виден ли другим пользователям IsPublic *bool `json:"is_public,omitempty"` // Primary Является ли основным Primary *bool `json:"primary,omitempty"` // Verified Подтверждён ли адрес Verified *bool `json:"verified,omitempty"` } // LanguageStats Статистика по языкам программирования (ключ — язык, значение — количество строк). type LanguageStats map[string]int // PullRequest Задача (issue) или Pull Request. type PullRequest struct { // Body Описание Body *string `json:"body,omitempty"` // CreatedAt Дата создания CreatedAt *time.Time `json:"created_at,omitempty"` // Id Уникальный ID задачи Id *int `json:"id,omitempty"` // Number Номер задачи Number *int `json:"number,omitempty"` // PullRequest Информация о Pull Request PullRequest *struct { // Base Целевая ветка Base *struct { // Ref Имя ветки Ref *string `json:"ref,omitempty"` // Sha SHA коммита Sha *string `json:"sha,omitempty"` } `json:"base,omitempty"` // Head Исходная ветка Head *struct { // Ref Имя ветки Ref *string `json:"ref,omitempty"` // Sha SHA коммита Sha *string `json:"sha,omitempty"` } `json:"head,omitempty"` } `json:"pull_request,omitempty"` // State Состояние задачи State *string `json:"state,omitempty"` // Title Заголовок задачи Title *string `json:"title,omitempty"` // UpdatedAt Дата обновления UpdatedAt *time.Time `json:"updated_at,omitempty"` } // PullRequestDetail Детальная информация о Pull Request. type PullRequestDetail struct { // Base Целевая ветка Base *struct { // Label Метка ветки Label *string `json:"label,omitempty"` // Ref Имя ветки Ref *string `json:"ref,omitempty"` // Sha SHA коммита Sha *string `json:"sha,omitempty"` } `json:"base,omitempty"` // Body Описание PR Body *string `json:"body,omitempty"` // ClosedAt Дата закрытия ClosedAt *time.Time `json:"closed_at,omitempty"` // CreatedAt Дата создания CreatedAt *time.Time `json:"created_at,omitempty"` // Head Исходная ветка Head *struct { // Label Метка ветки Label *string `json:"label,omitempty"` // Ref Имя ветки Ref *string `json:"ref,omitempty"` // Sha SHA коммита Sha *string `json:"sha,omitempty"` } `json:"head,omitempty"` // Id Уникальный ID Id *int `json:"id,omitempty"` // Mergeable Можно ли выполнить merge Mergeable *bool `json:"mergeable,omitempty"` // Merged Слит ли PR Merged *bool `json:"merged,omitempty"` // MergedAt Дата слияния MergedAt *time.Time `json:"merged_at,omitempty"` // Number Номер PR Number *int `json:"number,omitempty"` // State Состояние: open, closed State *string `json:"state,omitempty"` // Title Заголовок PR Title *string `json:"title,omitempty"` // UpdatedAt Дата обновления UpdatedAt *time.Time `json:"updated_at,omitempty"` // User Информация о пользователе. User *User `json:"user,omitempty"` } // PullRequestFile Файл, изменённый в Pull Request. type PullRequestFile struct { // Additions Количество добавлений Additions *int `json:"additions,omitempty"` // Changes Общее количество изменений Changes *int `json:"changes,omitempty"` // Deletions Количество удалений Deletions *int `json:"deletions,omitempty"` // Filename Путь к файлу Filename *string `json:"filename,omitempty"` // Patch Patch/diff для файла Patch *string `json:"patch,omitempty"` // Sha SHA файла Sha *string `json:"sha,omitempty"` // Status Статус: added, removed, modified, renamed Status *string `json:"status,omitempty"` } // Repository Основные данные о репозитории. type Repository struct { // AllowMergeCommit Разрешено ли слияние через коммит AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"` // AllowRebaseMerge Разрешено ли rebase-слияние AllowRebaseMerge *bool `json:"allow_rebase_merge,omitempty"` // AllowSquashMerge Разрешено ли объединённое слияние AllowSquashMerge *bool `json:"allow_squash_merge,omitempty"` // CreatedAt Дата создания CreatedAt *time.Time `json:"created_at,omitempty"` // DefaultBranch Ветка по умолчанию DefaultBranch *string `json:"default_branch,omitempty"` // Description Описание репозитория Description *string `json:"description,omitempty"` // Fork Признак форка Fork *bool `json:"fork,omitempty"` // FullName Имя владельца + имя репозитория FullName *string `json:"full_name,omitempty"` // HasIssues Включены ли задачи HasIssues *bool `json:"has_issues,omitempty"` // HasProjects Включены ли проекты HasProjects *bool `json:"has_projects,omitempty"` // HasWiki Включена ли вики HasWiki *bool `json:"has_wiki,omitempty"` // Id Уникальный ID репозитория Id *int `json:"id,omitempty"` // Language Основной язык программирования Language *string `json:"language,omitempty"` // Name Название репозитория Name *string `json:"name,omitempty"` // Permissions Права текущего пользователя Permissions *struct { // Admin Право администратора Admin *bool `json:"admin,omitempty"` // Pull Право на чтение Pull *bool `json:"pull,omitempty"` // Push Право на запись Push *bool `json:"push,omitempty"` } `json:"permissions,omitempty"` // Private Является ли приватным Private *bool `json:"private,omitempty"` // PushedAt Дата последнего коммита PushedAt *time.Time `json:"pushed_at,omitempty"` // Size Размер репозитория в KB Size *int `json:"size,omitempty"` // StargazersCount Количество звёзд StargazersCount *int `json:"stargazers_count,omitempty"` // UpdatedAt Дата обновления UpdatedAt *time.Time `json:"updated_at,omitempty"` // Visibility Видимость: public, private, internal Visibility *RepositoryVisibility `json:"visibility,omitempty"` // Watchers Число наблюдателей Watchers *int `json:"watchers,omitempty"` } // RepositoryVisibility Видимость: public, private, internal type RepositoryVisibility string // User Информация о пользователе. type User struct { // AvatarUrl Ссылка на аватар AvatarUrl *string `json:"avatar_url,omitempty"` // CreatedAt Дата создания пользователя CreatedAt *time.Time `json:"created_at,omitempty"` // Email Email пользователя Email *string `json:"email,omitempty"` // HtmlUrl Ссылка на профиль пользователя HtmlUrl *string `json:"html_url,omitempty"` // Id Уникальный идентификатор пользователя Id *int `json:"id,omitempty"` // Login Логин пользователя Login *string `json:"login,omitempty"` // Name Имя пользователя Name *string `json:"name,omitempty"` // PublicRepos Количество публичных репозиториев PublicRepos *int `json:"public_repos,omitempty"` // ReposUrl API-ссылка на репозитории пользователя ReposUrl *string `json:"repos_url,omitempty"` // UpdatedAt Дата обновления пользователя UpdatedAt *time.Time `json:"updated_at,omitempty"` // Url API-ссылка на пользователя Url *string `json:"url,omitempty"` } // RequiredAcceptHeader defines model for RequiredAcceptHeader. type RequiredAcceptHeader = string // GetReposOwnerRepoParams defines parameters for GetReposOwnerRepo. type GetReposOwnerRepoParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoBranchesParams defines parameters for GetReposOwnerRepoBranches. type GetReposOwnerRepoBranchesParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PutReposOwnerRepoCollaboratorsUsernameJSONBody defines parameters for PutReposOwnerRepoCollaboratorsUsername. type PutReposOwnerRepoCollaboratorsUsernameJSONBody struct { // Permission Уровень доступа: read, write или admin Permission *PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission `json:"permission,omitempty"` } // PutReposOwnerRepoCollaboratorsUsernameParams defines parameters for PutReposOwnerRepoCollaboratorsUsername. type PutReposOwnerRepoCollaboratorsUsernameParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission defines parameters for PutReposOwnerRepoCollaboratorsUsername. type PutReposOwnerRepoCollaboratorsUsernameJSONBodyPermission string // GetReposOwnerRepoCompareBaseheadParams defines parameters for GetReposOwnerRepoCompareBasehead. type GetReposOwnerRepoCompareBaseheadParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // DeleteReposOwnerRepoContentsFilenameJSONBody defines parameters for DeleteReposOwnerRepoContentsFilename. type DeleteReposOwnerRepoContentsFilenameJSONBody struct { // Branch Ветка, в которой находится файл Branch *string `json:"branch,omitempty"` // Message Сообщение коммита Message *string `json:"message,omitempty"` // Sha SHA файла (обязателен для удаления) Sha *string `json:"sha,omitempty"` } // DeleteReposOwnerRepoContentsFilenameParams defines parameters for DeleteReposOwnerRepoContentsFilename. type DeleteReposOwnerRepoContentsFilenameParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PutReposOwnerRepoContentsFilenameJSONBody defines parameters for PutReposOwnerRepoContentsFilename. type PutReposOwnerRepoContentsFilenameJSONBody struct { // Branch Ветка, в которой создаётся/обновляется файл Branch *string `json:"branch,omitempty"` // Content Содержимое файла в кодировке Base64 Content *string `json:"content,omitempty"` // Message Сообщение коммита Message *string `json:"message,omitempty"` // NewBranch Создание новой ветки (необязательно) NewBranch *string `json:"new_branch,omitempty"` // Signoff Подписать коммит Signoff *bool `json:"signoff,omitempty"` } // PutReposOwnerRepoContentsFilenameParams defines parameters for PutReposOwnerRepoContentsFilename. type PutReposOwnerRepoContentsFilenameParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoContentsPathParams defines parameters for GetReposOwnerRepoContentsPath. type GetReposOwnerRepoContentsPathParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoContentsPath200JSONResponseBody0 defines parameters for GetReposOwnerRepoContentsPath. type GetReposOwnerRepoContentsPath200JSONResponseBody0 struct { // Content Содержимое файла в кодировке Base64 Content *string `json:"content,omitempty"` // Encoding Кодировка содержимого (например, base64) Encoding *string `json:"encoding,omitempty"` // Name Имя файла или папки Name *string `json:"name,omitempty"` // Path Путь относительно корня Path *string `json:"path,omitempty"` // Sha SHA хэш объекта Sha *string `json:"sha,omitempty"` // Size Размер файла Size *int `json:"size,omitempty"` // Type Тип: file или dir Type *GetReposOwnerRepoContentsPath200JSONResponseBody0Type `json:"type,omitempty"` } // GetReposOwnerRepoContentsPath200JSONResponseBody0Type defines parameters for GetReposOwnerRepoContentsPath. type GetReposOwnerRepoContentsPath200JSONResponseBody0Type string // GetReposOwnerRepoContentsPath200JSONResponseBody1 defines parameters for GetReposOwnerRepoContentsPath. type GetReposOwnerRepoContentsPath200JSONResponseBody1 = []struct { // Name Имя файла или папки Name *string `json:"name,omitempty"` // Path Путь относительно корня Path *string `json:"path,omitempty"` // Sha SHA хэш объекта Sha *string `json:"sha,omitempty"` // Type Тип: file или dir Type *GetReposOwnerRepoContentsPath200JSONResponseBody1Type `json:"type,omitempty"` } // GetReposOwnerRepoContentsPath200JSONResponseBody1Type defines parameters for GetReposOwnerRepoContentsPath. type GetReposOwnerRepoContentsPath200JSONResponseBody1Type string // GetReposOwnerRepoContentsPath200JSONResponseBody defines parameters for GetReposOwnerRepoContentsPath. type GetReposOwnerRepoContentsPath200JSONResponseBody struct { union json.RawMessage } // PostReposOwnerRepoForksParams defines parameters for PostReposOwnerRepoForks. type PostReposOwnerRepoForksParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoGitTreesTreeShaParams defines parameters for GetReposOwnerRepoGitTreesTreeSha. type GetReposOwnerRepoGitTreesTreeShaParams struct { // Recursive Если true — возвращаются все вложенные элементы Recursive *bool `form:"recursive,omitempty" json:"recursive,omitempty"` // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoIssuesParams defines parameters for GetReposOwnerRepoIssues. type GetReposOwnerRepoIssuesParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoIssuesIndexCommentsParams defines parameters for GetReposOwnerRepoIssuesIndexComments. type GetReposOwnerRepoIssuesIndexCommentsParams struct { // Page Номер страницы Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage Количество элементов на странице PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoLanguagesParams defines parameters for GetReposOwnerRepoLanguages. type GetReposOwnerRepoLanguagesParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoPullsParams defines parameters for GetReposOwnerRepoPulls. type GetReposOwnerRepoPullsParams struct { // State Фильтр по состоянию State *GetReposOwnerRepoPullsParamsState `form:"state,omitempty" json:"state,omitempty"` // Page Номер страницы Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage Количество элементов на странице PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoPullsParamsState defines parameters for GetReposOwnerRepoPulls. type GetReposOwnerRepoPullsParamsState string // PostReposOwnerRepoPullsJSONBody defines parameters for PostReposOwnerRepoPulls. type PostReposOwnerRepoPullsJSONBody struct { // Base Целевая ветка Base *string `json:"base,omitempty"` // Body Описание изменений Body *string `json:"body,omitempty"` // Head Ветка, из которой создаётся PR Head *string `json:"head,omitempty"` // Title Заголовок PR Title *string `json:"title,omitempty"` } // PostReposOwnerRepoPullsParams defines parameters for PostReposOwnerRepoPulls. type PostReposOwnerRepoPullsParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoPullsPullNumberParams defines parameters for GetReposOwnerRepoPullsPullNumber. type GetReposOwnerRepoPullsPullNumberParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PatchReposOwnerRepoPullsPullNumberJSONBody defines parameters for PatchReposOwnerRepoPullsPullNumber. type PatchReposOwnerRepoPullsPullNumberJSONBody struct { // Body Новое описание PR Body *string `json:"body,omitempty"` // Title Новый заголовок PR Title *string `json:"title,omitempty"` } // PatchReposOwnerRepoPullsPullNumberParams defines parameters for PatchReposOwnerRepoPullsPullNumber. type PatchReposOwnerRepoPullsPullNumberParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoPullsPullNumberFilesParams defines parameters for GetReposOwnerRepoPullsPullNumberFiles. type GetReposOwnerRepoPullsPullNumberFilesParams struct { // Page Номер страницы Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage Количество элементов на странице PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetReposOwnerRepoPullsPullNumberMergeParams defines parameters for GetReposOwnerRepoPullsPullNumberMerge. type GetReposOwnerRepoPullsPullNumberMergeParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetUserParams defines parameters for GetUser. type GetUserParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // DeleteUserEmailsJSONBody defines parameters for DeleteUserEmails. type DeleteUserEmailsJSONBody struct { // Emails Email-адреса для удаления Emails *[]openapi_types.Email `json:"emails,omitempty"` } // DeleteUserEmailsParams defines parameters for DeleteUserEmails. type DeleteUserEmailsParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetUserEmailsParams defines parameters for GetUserEmails. type GetUserEmailsParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PostUserEmailsJSONBody defines parameters for PostUserEmails. type PostUserEmailsJSONBody struct { // Emails Email-адреса для добавления Emails *[]openapi_types.Email `json:"emails,omitempty"` } // PostUserEmailsParams defines parameters for PostUserEmails. type PostUserEmailsParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetUserReposParams defines parameters for GetUserRepos. type GetUserReposParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PostUserReposJSONBody defines parameters for PostUserRepos. type PostUserReposJSONBody struct { // AutoInit Автоинициализация .git AutoInit *bool `json:"auto_init,omitempty"` // DefaultBranch Ветка по умолчанию DefaultBranch *string `json:"default_branch,omitempty"` // Description Описание Description *string `json:"description,omitempty"` // Gitignores Список игнорируемых файлов Gitignores *[]string `json:"gitignores,omitempty"` // License Лицензия License *string `json:"license,omitempty"` // Name Название репозитория Name *string `json:"name,omitempty"` // Private Приватный или нет Private *bool `json:"private,omitempty"` // Readme Файл README Readme *string `json:"readme,omitempty"` // Template Является ли шаблоном Template *bool `json:"template,omitempty"` } // PostUserReposParams defines parameters for PostUserRepos. type PostUserReposParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetUserStarredOwnerRepoParams defines parameters for GetUserStarredOwnerRepo. type GetUserStarredOwnerRepoParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PutUserStarredOwnerRepoParams defines parameters for PutUserStarredOwnerRepo. type PutUserStarredOwnerRepoParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // GetUsersUsernameParams defines parameters for GetUsersUsername. type GetUsersUsernameParams struct { // Accept Обязательный заголовок Accept для версионирования API Accept RequiredAcceptHeader `json:"Accept"` } // PutReposOwnerRepoCollaboratorsUsernameJSONRequestBody defines body for PutReposOwnerRepoCollaboratorsUsername for application/json ContentType. type PutReposOwnerRepoCollaboratorsUsernameJSONRequestBody PutReposOwnerRepoCollaboratorsUsernameJSONBody // DeleteReposOwnerRepoContentsFilenameJSONRequestBody defines body for DeleteReposOwnerRepoContentsFilename for application/json ContentType. type DeleteReposOwnerRepoContentsFilenameJSONRequestBody DeleteReposOwnerRepoContentsFilenameJSONBody // PutReposOwnerRepoContentsFilenameJSONRequestBody defines body for PutReposOwnerRepoContentsFilename for application/json ContentType. type PutReposOwnerRepoContentsFilenameJSONRequestBody PutReposOwnerRepoContentsFilenameJSONBody // PostReposOwnerRepoPullsJSONRequestBody defines body for PostReposOwnerRepoPulls for application/json ContentType. type PostReposOwnerRepoPullsJSONRequestBody PostReposOwnerRepoPullsJSONBody // PatchReposOwnerRepoPullsPullNumberJSONRequestBody defines body for PatchReposOwnerRepoPullsPullNumber for application/json ContentType. type PatchReposOwnerRepoPullsPullNumberJSONRequestBody PatchReposOwnerRepoPullsPullNumberJSONBody // DeleteUserEmailsJSONRequestBody defines body for DeleteUserEmails for application/json ContentType. type DeleteUserEmailsJSONRequestBody DeleteUserEmailsJSONBody // PostUserEmailsJSONRequestBody defines body for PostUserEmails for application/json ContentType. type PostUserEmailsJSONRequestBody PostUserEmailsJSONBody // PostUserReposJSONRequestBody defines body for PostUserRepos for application/json ContentType. type PostUserReposJSONRequestBody PostUserReposJSONBody // AsGetReposOwnerRepoContentsPath200JSONResponseBody0 returns the union data inside the GetReposOwnerRepoContentsPath200JSONResponseBody as a GetReposOwnerRepoContentsPath200JSONResponseBody0 func (t GetReposOwnerRepoContentsPath200JSONResponseBody) AsGetReposOwnerRepoContentsPath200JSONResponseBody0() (GetReposOwnerRepoContentsPath200JSONResponseBody0, error) { var body GetReposOwnerRepoContentsPath200JSONResponseBody0 err := json.Unmarshal(t.union, &body) return body, err } // FromGetReposOwnerRepoContentsPath200JSONResponseBody0 overwrites any union data inside the GetReposOwnerRepoContentsPath200JSONResponseBody as the provided GetReposOwnerRepoContentsPath200JSONResponseBody0 func (t *GetReposOwnerRepoContentsPath200JSONResponseBody) FromGetReposOwnerRepoContentsPath200JSONResponseBody0(v GetReposOwnerRepoContentsPath200JSONResponseBody0) error { b, err := json.Marshal(v) t.union = b return err } // MergeGetReposOwnerRepoContentsPath200JSONResponseBody0 performs a merge with any union data inside the GetReposOwnerRepoContentsPath200JSONResponseBody, using the provided GetReposOwnerRepoContentsPath200JSONResponseBody0 func (t *GetReposOwnerRepoContentsPath200JSONResponseBody) MergeGetReposOwnerRepoContentsPath200JSONResponseBody0(v GetReposOwnerRepoContentsPath200JSONResponseBody0) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } // AsGetReposOwnerRepoContentsPath200JSONResponseBody1 returns the union data inside the GetReposOwnerRepoContentsPath200JSONResponseBody as a GetReposOwnerRepoContentsPath200JSONResponseBody1 func (t GetReposOwnerRepoContentsPath200JSONResponseBody) AsGetReposOwnerRepoContentsPath200JSONResponseBody1() (GetReposOwnerRepoContentsPath200JSONResponseBody1, error) { var body GetReposOwnerRepoContentsPath200JSONResponseBody1 err := json.Unmarshal(t.union, &body) return body, err } // FromGetReposOwnerRepoContentsPath200JSONResponseBody1 overwrites any union data inside the GetReposOwnerRepoContentsPath200JSONResponseBody as the provided GetReposOwnerRepoContentsPath200JSONResponseBody1 func (t *GetReposOwnerRepoContentsPath200JSONResponseBody) FromGetReposOwnerRepoContentsPath200JSONResponseBody1(v GetReposOwnerRepoContentsPath200JSONResponseBody1) error { b, err := json.Marshal(v) t.union = b return err } // MergeGetReposOwnerRepoContentsPath200JSONResponseBody1 performs a merge with any union data inside the GetReposOwnerRepoContentsPath200JSONResponseBody, using the provided GetReposOwnerRepoContentsPath200JSONResponseBody1 func (t *GetReposOwnerRepoContentsPath200JSONResponseBody) MergeGetReposOwnerRepoContentsPath200JSONResponseBody1(v GetReposOwnerRepoContentsPath200JSONResponseBody1) error { b, err := json.Marshal(v) if err != nil { return err } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } func (t GetReposOwnerRepoContentsPath200JSONResponseBody) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } func (t *GetReposOwnerRepoContentsPath200JSONResponseBody) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err }