No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 0.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen
Put the package under your project folder and add the following in import:
import "./code"
All URIs are relative to /gateway/code/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
PullreqApi | ChecksPullReq | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/checks | Get status checks |
PullreqApi | CodeownersPullReq | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/codeowners | Get code owners |
PullreqApi | CommentCreatePullReq | Post /repos/{repo_identifier}/pullreq/{pullreq_number}/comments | Create new pull request comment |
PullreqApi | CommentDeletePullReq | Delete /repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id} | Delete pull request comment |
PullreqApi | CommentStatusPullReq | Put /repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id}/status | Update status of pull request comment |
PullreqApi | CommentUpdatePullReq | Patch /repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id} | Update pull request comment |
PullreqApi | CreatePullReq | Post /repos/{repo_identifier}/pullreq | Create pull request |
PullreqApi | DiffPullReq | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/diff | Get file changes |
PullreqApi | DiffPullReqPost | Post /repos/{repo_identifier}/pullreq/{pullreq_number}/diff | Get file changes |
PullreqApi | FileViewAddPullReq | Put /repos/{repo_identifier}/pullreq/{pullreq_number}/file-views | Mark file as viewed |
PullreqApi | FileViewDeletePullReq | Delete /repos/{repo_identifier}/pullreq/{pullreq_number}/file-views/{file_path} | Remove file view |
PullreqApi | FileViewListPullReq | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/file-views | List viewed files |
PullreqApi | GetPullReq | Get /repos/{repo_identifier}/pullreq/{pullreq_number} | Get pull request |
PullreqApi | ListPullReq | Get /repos/{repo_identifier}/pullreq | List pull requests |
PullreqApi | ListPullReqActivities | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/activities | List activities |
PullreqApi | ListPullReqCommits | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/commits | List commits |
PullreqApi | MergePullReqOp | Post /repos/{repo_identifier}/pullreq/{pullreq_number}/merge | Merge |
PullreqApi | PullReqMetaData | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/metadata | Get metadata |
PullreqApi | ReviewSubmitPullReq | Post /repos/{repo_identifier}/pullreq/{pullreq_number}/reviews | Submit review |
PullreqApi | ReviewerAddPullReq | Put /repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers | Add reviewer |
PullreqApi | ReviewerDeletePullReq | Delete /repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers/{pullreq_reviewer_id} | Remove reviewer |
PullreqApi | ReviewerListPullReq | Get /repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers | List reviewers |
PullreqApi | StatePullReq | Post /repos/{repo_identifier}/pullreq/{pullreq_number}/state | Update state of pull request |
PullreqApi | UpdatePullReq | Patch /repos/{repo_identifier}/pullreq/{pullreq_number} | Update pull request |
RepositoryApi | CalculateCommitDivergence | Post /repos/{repo_identifier}/commits/calculate-divergence | Get commit divergence |
RepositoryApi | CodeOwnersValidate | Get /repos/{repo_identifier}/codeowners/validate | Validate code owners file |
RepositoryApi | CommitFiles | Post /repos/{repo_identifier}/commits | Commit files |
RepositoryApi | CreateBranch | Post /repos/{repo_identifier}/branches | Create branch |
RepositoryApi | CreateRepository | Post /repos | Create repository |
RepositoryApi | CreateTag | Post /repos/{repo_identifier}/tags | Create tag |
RepositoryApi | DeleteBranch | Delete /repos/{repo_identifier}/branches/{branch_name} | Delete branch |
RepositoryApi | DeleteRepository | Delete /repos/{repo_identifier} | Soft delete repository |
RepositoryApi | DeleteTag | Delete /repos/{repo_identifier}/tags/{tag_name} | Delete tag |
RepositoryApi | DiffStats | Get /repos/{repo_identifier}/diff-stats/{range} | Get diff stats |
RepositoryApi | GetBlame | Get /repos/{repo_identifier}/blame/{path} | Get git blame |
RepositoryApi | GetBranch | Get /repos/{repo_identifier}/branches/{branch_name} | Get branch |
RepositoryApi | GetCommit | Get /repos/{repo_identifier}/commits/{commit_sha} | Get commit |
RepositoryApi | GetCommitDiff | Get /repos/{repo_identifier}/commits/{commit_sha}/diff | Get raw git diff of a commit |
RepositoryApi | GetContent | Get /repos/{repo_identifier}/content/{path} | Get content of a file |
RepositoryApi | GetRaw | Get /repos/{repo_identifier}/raw/{path} | Get raw file content |
RepositoryApi | GetRepository | Get /repos/{repo_identifier} | Get repository |
RepositoryApi | ImportRepository | Post /repos/import | Import repository |
RepositoryApi | ListBranches | Get /repos/{repo_identifier}/branches | List branches |
RepositoryApi | ListCommits | Get /repos/{repo_identifier}/commits | List commits |
RepositoryApi | ListRepos | Get /repos | List repositories |
RepositoryApi | ListTags | Get /repos/{repo_identifier}/tags | List tags |
RepositoryApi | MergeCheck | Post /repos/{repo_identifier}/merge-check/{range} | Check mergeability |
RepositoryApi | MoveRepository | Post /repos/{repo_identifier}/move | Move repository |
RepositoryApi | PathDetails | Post /repos/{repo_identifier}/path-details | Get commit details |
RepositoryApi | PurgeRepository | Post /repos/{repo_identifier}/purge | Purge repository |
RepositoryApi | RawDiff | Get /repos/{repo_identifier}/diff/{range} | Get raw diff |
RepositoryApi | RawDiffPost | Post /repos/{repo_identifier}/diff/{range} | Get raw diff |
RepositoryApi | RestoreRepository | Post /repos/{repo_identifier}/restore | Restore repository |
RepositoryApi | RuleAdd | Post /repos/{repo_identifier}/rules | Add protection rule |
RepositoryApi | RuleDelete | Delete /repos/{repo_identifier}/rules/{rule_uid} | Delete protection rule |
RepositoryApi | RuleGet | Get /repos/{repo_identifier}/rules/{rule_uid} | Get protection rule |
RepositoryApi | RuleList | Get /repos/{repo_identifier}/rules | List protection rules |
RepositoryApi | RuleUpdate | Patch /repos/{repo_identifier}/rules/{rule_uid} | Update protection rule |
RepositoryApi | UpdateRepository | Patch /repos/{repo_identifier} | Update repository |
ResourceApi | ListGitignore | Get /resources/gitignore | List available gitignore names |
ResourceApi | ListLicenses | Get /resources/license | List available license names |
StatusChecksApi | ListStatusCheckRecent | Get /repos/{repo_identifier}/checks/recent | List recent status check |
StatusChecksApi | ListStatusCheckResults | Get /repos/{repo_identifier}/checks/commits/{commit_sha} | List status check results |
StatusChecksApi | ReportStatusCheckResults | Put /repos/{repo_identifier}/checks/commits/{commit_sha} | Report status check results |
UploadApi | RepoArtifactDownload | Get /repos/{repo_identifier}/uploads/{file_ref} | Repo artifact download |
UploadApi | RepoArtifactUpload | Post /repos/{repo_identifier}/uploads | Repo artifact upload |
WebhookApi | CreateWebhook | Post /repos/{repo_identifier}/webhooks | Create webhook |
WebhookApi | DeleteWebhook | Delete /repos/{repo_identifier}/webhooks/{webhook_identifier} | Delete webhook |
WebhookApi | GetWebhook | Get /repos/{repo_identifier}/webhooks/{webhook_identifier} | Get webhook |
WebhookApi | GetWebhookExecution | Get /repos/{repo_identifier}/webhooks/{webhook_identifier}/executions/{webhook_execution_id} | Get webhook execution |
WebhookApi | ListWebhookExecutions | Get /repos/{repo_identifier}/webhooks/{webhook_identifier}/executions | List webhook executions |
WebhookApi | ListWebhooks | Get /repos/{repo_identifier}/webhooks | List webhooks |
WebhookApi | UpdateWebhook | Patch /repos/{repo_identifier}/webhooks/{webhook_identifier} | Update webhook |
- CommitsCommitShaBody
- EnumCheckPayloadKind
- EnumCheckStatus
- EnumContentEncodingType
- EnumMergeMethod
- EnumPrincipalType
- EnumPullReqActivityKind
- EnumPullReqActivityType
- EnumPullReqCommentStatus
- EnumPullReqReviewDecision
- EnumPullReqReviewerType
- EnumPullReqState
- EnumRuleState
- EnumWebhookExecutionResult
- EnumWebhookParent
- EnumWebhookTrigger
- GitBlamePart
- GitCommit
- GitCommitDiffStats
- GitCommitFileStats
- GitFileAction
- GitFileDiff
- GitIdentity
- GitPathDetails
- GitSignature
- ImporterPipelineOption
- ImporterProvider
- ImporterProviderType
- InlineResponse200
- OpenapiCalculateCommitDivergenceRequest
- OpenapiCommentCreatePullReqRequest
- OpenapiCommentStatusPullReqRequest
- OpenapiCommentUpdatePullReqRequest
- OpenapiCommitFilesRequest
- OpenapiContent
- OpenapiContentInfo
- OpenapiContentType
- OpenapiCreateBranchRequest
- OpenapiCreatePullReqRequest
- OpenapiCreateRepositoryRequest
- OpenapiCreateTagRequest
- OpenapiCreateWebhookRequest
- OpenapiDirContent
- OpenapiFileViewAddPullReqRequest
- OpenapiGetContentOutput
- OpenapiMergePullReq
- OpenapiMoveRepoRequest
- OpenapiPathsDetailsRequest
- OpenapiRestoreRequest
- OpenapiReviewSubmitPullReqRequest
- OpenapiReviewerAddPullReqRequest
- OpenapiRule
- OpenapiRuleDefinition
- OpenapiRuleType
- OpenapiStatePullReqRequest
- OpenapiUpdatePullReqRequest
- OpenapiUpdateRepoRequest
- OpenapiUpdateWebhookRequest
- OpenapiWebhookType
- ProtectionBranch
- ProtectionDefApprovals
- ProtectionDefBypass
- ProtectionDefComments
- ProtectionDefLifecycle
- ProtectionDefMerge
- ProtectionDefPullReq
- ProtectionDefStatusChecks
- ProtectionPattern
- RepoBranch
- RepoCommitDivergence
- RepoCommitDivergenceRequest
- RepoCommitFileAction
- RepoCommitTag
- RepoContentInfo
- RepoFileContent
- RepoIdentifierRulesBody
- RepoMergeCheck
- RepoPathsDetailsOutput
- RepoSoftDeleteResponse
- RepoSubmoduleContent
- RepoSymlinkContent
- ReposImportBody
- RulesRuleUidBody
- TypesCheck
- TypesCheckPayload
- TypesCodeCommentFields
- TypesCodeOwnerEvaluation
- TypesCodeOwnerEvaluationEntry
- TypesCommit
- TypesCommitDiffStats
- TypesCommitFilesResponse
- TypesDiffStats
- TypesFileDiffRequest
- TypesIdentity
- TypesListCommitResponse
- TypesMergeResponse
- TypesMergeViolations
- TypesOwnerEvaluation
- TypesPrincipalInfo
- TypesPullReq
- TypesPullReqActivity
- TypesPullReqCheck
- TypesPullReqChecks
- TypesPullReqFileView
- TypesPullReqReviewer
- TypesPullReqStats
- TypesRenameDetails
- TypesRepository
- TypesRuleInfo
- TypesRuleViolations
- TypesRulesViolations
- TypesSignature
- TypesUserGroupOwnerEvaluation
- TypesViolation
- TypesWebhookExecution
- TypesWebhookExecutionRequest
- TypesWebhookExecutionResponse
- UploadResult
- UsererrorError
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)