code

package
v0.3.85 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

README

Go API client for swagger

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

Overview

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

Installation

Put the package under your project folder and add the following in import:

import "./code"

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

bearerAuth

x-api-key

  • 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)

Author

Documentation

Overview

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* API Specification * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 0.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	AccountId string
	ApiKey    string
	Endpoint  string

	PullreqApi *PullreqApiService

	RepositoryApi *RepositoryApiService

	ResourceApi *ResourceApiService

	StatusChecksApi *StatusChecksApiService

	UploadApi *UploadApiService

	WebhookApi *WebhookApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the API Specification API v0.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

func (*APIClient) WithAuthContext

func (c *APIClient) WithAuthContext(ctx context.Context) (*APIClient, context.Context)

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type CommitsCommitShaBody added in v0.3.77

type CommitsCommitShaBody struct {
	CheckUid   string             `json:"check_uid,omitempty"`
	Ended      int32              `json:"ended,omitempty"`
	Identifier string             `json:"identifier,omitempty"`
	Link       string             `json:"link,omitempty"`
	Payload    *TypesCheckPayload `json:"payload,omitempty"`
	Started    int32              `json:"started,omitempty"`
	Status     *EnumCheckStatus   `json:"status,omitempty"`
	Summary    string             `json:"summary,omitempty"`
}

type Configuration

type Configuration struct {
	AccountId     string            `json:"accountId,omitempty"`
	ApiKey        string            `json:"apiKey,omitempty"`
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *retryablehttp.Client
	Logger        *log.Logger
	DebugLogging  bool
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type EnumCheckPayloadKind

type EnumCheckPayloadKind string
const (
	EMPTY_EnumCheckPayloadKind    EnumCheckPayloadKind = ""
	MARKDOWN_EnumCheckPayloadKind EnumCheckPayloadKind = "markdown"
	PIPELINE_EnumCheckPayloadKind EnumCheckPayloadKind = "pipeline"
	RAW_EnumCheckPayloadKind      EnumCheckPayloadKind = "raw"
)

List of EnumCheckPayloadKind

type EnumCheckStatus

type EnumCheckStatus string
const (
	ERROR__EnumCheckStatus  EnumCheckStatus = "error"
	FAILURE_EnumCheckStatus EnumCheckStatus = "failure"
	PENDING_EnumCheckStatus EnumCheckStatus = "pending"
	RUNNING_EnumCheckStatus EnumCheckStatus = "running"
	SUCCESS_EnumCheckStatus EnumCheckStatus = "success"
)

List of EnumCheckStatus

type EnumContentEncodingType

type EnumContentEncodingType string
const (
	BASE64_EnumContentEncodingType EnumContentEncodingType = "base64"
	UTF8_EnumContentEncodingType   EnumContentEncodingType = "utf8"
)

List of EnumContentEncodingType

type EnumMergeMethod

type EnumMergeMethod string
const (
	MERGE_EnumMergeMethod  EnumMergeMethod = "merge"
	REBASE_EnumMergeMethod EnumMergeMethod = "rebase"
	SQUASH_EnumMergeMethod EnumMergeMethod = "squash"
)

List of EnumMergeMethod

type EnumPrincipalType

type EnumPrincipalType string
const (
	SERVICE_EnumPrincipalType        EnumPrincipalType = "service"
	SERVICEACCOUNT_EnumPrincipalType EnumPrincipalType = "serviceaccount"
	USER_EnumPrincipalType           EnumPrincipalType = "user"
)

List of EnumPrincipalType

type EnumPullReqActivityKind

type EnumPullReqActivityKind string
const (
	CHANGE_COMMENT_EnumPullReqActivityKind EnumPullReqActivityKind = "change-comment"
	COMMENT_EnumPullReqActivityKind        EnumPullReqActivityKind = "comment"
	SYSTEM_EnumPullReqActivityKind         EnumPullReqActivityKind = "system"
)

List of EnumPullReqActivityKind

type EnumPullReqActivityType

type EnumPullReqActivityType string
const (
	BRANCH_DELETE_EnumPullReqActivityType EnumPullReqActivityType = "branch-delete"
	BRANCH_UPDATE_EnumPullReqActivityType EnumPullReqActivityType = "branch-update"
	CODE_COMMENT_EnumPullReqActivityType  EnumPullReqActivityType = "code-comment"
	COMMENT_EnumPullReqActivityType       EnumPullReqActivityType = "comment"
	MERGE_EnumPullReqActivityType         EnumPullReqActivityType = "merge"
	REVIEW_SUBMIT_EnumPullReqActivityType EnumPullReqActivityType = "review-submit"
	STATE_CHANGE_EnumPullReqActivityType  EnumPullReqActivityType = "state-change"
	TITLE_CHANGE_EnumPullReqActivityType  EnumPullReqActivityType = "title-change"
)

List of EnumPullReqActivityType

type EnumPullReqCommentStatus

type EnumPullReqCommentStatus string
const (
	ACTIVE_EnumPullReqCommentStatus   EnumPullReqCommentStatus = "active"
	RESOLVED_EnumPullReqCommentStatus EnumPullReqCommentStatus = "resolved"
)

List of EnumPullReqCommentStatus

type EnumPullReqReviewDecision

type EnumPullReqReviewDecision string
const (
	APPROVED_EnumPullReqReviewDecision  EnumPullReqReviewDecision = "approved"
	CHANGEREQ_EnumPullReqReviewDecision EnumPullReqReviewDecision = "changereq"
	PENDING_EnumPullReqReviewDecision   EnumPullReqReviewDecision = "pending"
	REVIEWED_EnumPullReqReviewDecision  EnumPullReqReviewDecision = "reviewed"
)

List of EnumPullReqReviewDecision

type EnumPullReqReviewerType

type EnumPullReqReviewerType string
const (
	ASSIGNED_EnumPullReqReviewerType      EnumPullReqReviewerType = "assigned"
	REQUESTED_EnumPullReqReviewerType     EnumPullReqReviewerType = "requested"
	SELF_ASSIGNED_EnumPullReqReviewerType EnumPullReqReviewerType = "self_assigned"
)

List of EnumPullReqReviewerType

type EnumPullReqState

type EnumPullReqState string
const (
	CLOSED_EnumPullReqState EnumPullReqState = "closed"
	MERGED_EnumPullReqState EnumPullReqState = "merged"
	OPEN_EnumPullReqState   EnumPullReqState = "open"
)

List of EnumPullReqState

type EnumRuleState

type EnumRuleState string
const (
	ACTIVE_EnumRuleState   EnumRuleState = "active"
	DISABLED_EnumRuleState EnumRuleState = "disabled"
	MONITOR_EnumRuleState  EnumRuleState = "monitor"
)

List of EnumRuleState

type EnumWebhookExecutionResult

type EnumWebhookExecutionResult string
const (
	FATAL_ERROR_EnumWebhookExecutionResult     EnumWebhookExecutionResult = "fatal_error"
	RETRIABLE_ERROR_EnumWebhookExecutionResult EnumWebhookExecutionResult = "retriable_error"
	SUCCESS_EnumWebhookExecutionResult         EnumWebhookExecutionResult = "success"
)

List of EnumWebhookExecutionResult

type EnumWebhookParent

type EnumWebhookParent string
const (
	REPO_EnumWebhookParent  EnumWebhookParent = "repo"
	SPACE_EnumWebhookParent EnumWebhookParent = "space"
)

List of EnumWebhookParent

type EnumWebhookTrigger

type EnumWebhookTrigger string
const (
	BRANCH_CREATED_EnumWebhookTrigger          EnumWebhookTrigger = "branch_created"
	BRANCH_DELETED_EnumWebhookTrigger          EnumWebhookTrigger = "branch_deleted"
	BRANCH_UPDATED_EnumWebhookTrigger          EnumWebhookTrigger = "branch_updated"
	PULLREQ_BRANCH_UPDATED_EnumWebhookTrigger  EnumWebhookTrigger = "pullreq_branch_updated"
	PULLREQ_CLOSED_EnumWebhookTrigger          EnumWebhookTrigger = "pullreq_closed"
	PULLREQ_COMMENT_CREATED_EnumWebhookTrigger EnumWebhookTrigger = "pullreq_comment_created"
	PULLREQ_CREATED_EnumWebhookTrigger         EnumWebhookTrigger = "pullreq_created"
	PULLREQ_MERGED_EnumWebhookTrigger          EnumWebhookTrigger = "pullreq_merged"
	PULLREQ_REOPENED_EnumWebhookTrigger        EnumWebhookTrigger = "pullreq_reopened"
	TAG_CREATED_EnumWebhookTrigger             EnumWebhookTrigger = "tag_created"
	TAG_DELETED_EnumWebhookTrigger             EnumWebhookTrigger = "tag_deleted"
	TAG_UPDATED_EnumWebhookTrigger             EnumWebhookTrigger = "tag_updated"
)

List of EnumWebhookTrigger

type GenericSwaggerError

type GenericSwaggerError struct {
	// contains filtered or unexported fields
}

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type GitBlamePart

type GitBlamePart struct {
	Commit *GitCommit `json:"commit,omitempty"`
	Lines  []string   `json:"lines,omitempty"`
}

type GitCommit

type GitCommit struct {
	Author     *GitSignature       `json:"author,omitempty"`
	Committer  *GitSignature       `json:"committer,omitempty"`
	FileStats  *GitCommitFileStats `json:"file_stats,omitempty"`
	Message    string              `json:"message,omitempty"`
	ParentShas []string            `json:"parent_shas,omitempty"`
	Sha        string              `json:"sha,omitempty"`
	Title      string              `json:"title,omitempty"`
}

type GitCommitDiffStats added in v0.3.80

type GitCommitDiffStats struct {
}

type GitCommitFileStat added in v0.3.77

type GitCommitFileStat struct {
}

type GitCommitFileStats added in v0.3.77

type GitCommitFileStats struct {
}

type GitFileAction

type GitFileAction string
const (
	CREATE_GitFileAction GitFileAction = "CREATE"
	UPDATE_GitFileAction GitFileAction = "UPDATE"
	DELETE_GitFileAction GitFileAction = "DELETE"
	MOVE_GitFileAction   GitFileAction = "MOVE"
)

List of GitFileAction

type GitFileDiff

type GitFileDiff struct {
	Additions   int32   `json:"additions,omitempty"`
	Changes     int32   `json:"changes,omitempty"`
	Deletions   int32   `json:"deletions,omitempty"`
	IsBinary    bool    `json:"is_binary,omitempty"`
	IsSubmodule bool    `json:"is_submodule,omitempty"`
	OldPath     string  `json:"old_path,omitempty"`
	OldSha      string  `json:"old_sha,omitempty"`
	Patch       []int32 `json:"patch,omitempty"`
	Path        string  `json:"path,omitempty"`
	Sha         string  `json:"sha,omitempty"`
	Status      string  `json:"status,omitempty"`
}

type GitIdentity

type GitIdentity struct {
	Email string `json:"email,omitempty"`
	Name  string `json:"name,omitempty"`
}

type GitPathDetails

type GitPathDetails struct {
	LastCommit *GitCommit `json:"last_commit,omitempty"`
	Path       string     `json:"path,omitempty"`
}

type GitSignature

type GitSignature struct {
	Identity *GitIdentity `json:"identity,omitempty"`
	When     time.Time    `json:"when,omitempty"`
}

type ImporterPipelineOption

type ImporterPipelineOption string
const (
	CONVERT_ImporterPipelineOption ImporterPipelineOption = "convert"
	IGNORE_ImporterPipelineOption  ImporterPipelineOption = "ignore"
)

List of ImporterPipelineOption

type ImporterProvider

type ImporterProvider struct {
	Host     string                `json:"host,omitempty"`
	Password string                `json:"password,omitempty"`
	Type_    *ImporterProviderType `json:"type,omitempty"`
	Username string                `json:"username,omitempty"`
}

type ImporterProviderType

type ImporterProviderType string
const (
	GITHUB_ImporterProviderType    ImporterProviderType = "github"
	GITLAB_ImporterProviderType    ImporterProviderType = "gitlab"
	BITBUCKET_ImporterProviderType ImporterProviderType = "bitbucket"
	STASH_ImporterProviderType     ImporterProviderType = "stash"
	GITEA_ImporterProviderType     ImporterProviderType = "gitea"
	GOGS_ImporterProviderType      ImporterProviderType = "gogs"
)

List of ImporterProviderType

type InlineResponse200

type InlineResponse200 struct {
	Label string `json:"label,omitempty"`
	Value string `json:"value,omitempty"`
}

type OpenapiCalculateCommitDivergenceRequest

type OpenapiCalculateCommitDivergenceRequest struct {
	MaxCount int32                         `json:"max_count,omitempty"`
	Requests []RepoCommitDivergenceRequest `json:"requests,omitempty"`
}

type OpenapiCommentCreatePullReqRequest

type OpenapiCommentCreatePullReqRequest struct {
	LineEnd         int32  `json:"line_end,omitempty"`
	LineEndNew      bool   `json:"line_end_new,omitempty"`
	LineStart       int32  `json:"line_start,omitempty"`
	LineStartNew    bool   `json:"line_start_new,omitempty"`
	ParentId        int32  `json:"parent_id,omitempty"`
	Path            string `json:"path,omitempty"`
	SourceCommitSha string `json:"source_commit_sha,omitempty"`
	TargetCommitSha string `json:"target_commit_sha,omitempty"`
	Text            string `json:"text,omitempty"`
}

type OpenapiCommentStatusPullReqRequest

type OpenapiCommentStatusPullReqRequest struct {
	Status *EnumPullReqCommentStatus `json:"status,omitempty"`
}

type OpenapiCommentUpdatePullReqRequest

type OpenapiCommentUpdatePullReqRequest struct {
	Text string `json:"text,omitempty"`
}

type OpenapiCommitFilesRequest

type OpenapiCommitFilesRequest struct {
	Actions     []RepoCommitFileAction `json:"actions,omitempty"`
	Branch      string                 `json:"branch,omitempty"`
	BypassRules bool                   `json:"bypass_rules,omitempty"`
	DryRunRules bool                   `json:"dry_run_rules,omitempty"`
	Message     string                 `json:"message,omitempty"`
	NewBranch   string                 `json:"new_branch,omitempty"`
	Title       string                 `json:"title,omitempty"`
}

type OpenapiContentInfo

type OpenapiContentInfo struct {
	LatestCommit *TypesCommit        `json:"latest_commit,omitempty"`
	Name         string              `json:"name,omitempty"`
	Path         string              `json:"path,omitempty"`
	Sha          string              `json:"sha,omitempty"`
	Type_        *OpenapiContentType `json:"type,omitempty"`
}

type OpenapiContentType

type OpenapiContentType string
const (
	FILE_OpenapiContentType      OpenapiContentType = "file"
	DIR_OpenapiContentType       OpenapiContentType = "dir"
	SYMLINK_OpenapiContentType   OpenapiContentType = "symlink"
	SUBMODULE_OpenapiContentType OpenapiContentType = "submodule"
)

List of OpenapiContentType

type OpenapiCreateBranchRequest

type OpenapiCreateBranchRequest struct {
	BypassRules bool   `json:"bypass_rules,omitempty"`
	Name        string `json:"name,omitempty"`
	Target      string `json:"target,omitempty"`
}

type OpenapiCreatePullReqRequest

type OpenapiCreatePullReqRequest struct {
	Description   string `json:"description,omitempty"`
	IsDraft       bool   `json:"is_draft,omitempty"`
	SourceBranch  string `json:"source_branch,omitempty"`
	SourceRepoRef string `json:"source_repo_ref,omitempty"`
	TargetBranch  string `json:"target_branch,omitempty"`
	Title         string `json:"title,omitempty"`
}

type OpenapiCreateRepositoryRequest

type OpenapiCreateRepositoryRequest struct {
	DefaultBranch string `json:"default_branch,omitempty"`
	Description   string `json:"description,omitempty"`
	ForkId        int32  `json:"fork_id,omitempty"`
	GitIgnore     string `json:"git_ignore,omitempty"`
	Identifier    string `json:"identifier,omitempty"`
	IsPublic      bool   `json:"is_public,omitempty"`
	License       string `json:"license,omitempty"`
	ParentRef     string `json:"parent_ref,omitempty"`
	Readme        bool   `json:"readme,omitempty"`
	Uid           string `json:"uid,omitempty"`
}

type OpenapiCreateTagRequest

type OpenapiCreateTagRequest struct {
	BypassRules bool   `json:"bypass_rules,omitempty"`
	Message     string `json:"message,omitempty"`
	Name        string `json:"name,omitempty"`
	Target      string `json:"target,omitempty"`
}

type OpenapiCreateWebhookRequest

type OpenapiCreateWebhookRequest struct {
	Description string               `json:"description,omitempty"`
	DisplayName string               `json:"display_name,omitempty"`
	Enabled     bool                 `json:"enabled,omitempty"`
	Identifier  string               `json:"identifier,omitempty"`
	Insecure    bool                 `json:"insecure,omitempty"`
	Secret      string               `json:"secret,omitempty"`
	Triggers    []EnumWebhookTrigger `json:"triggers,omitempty"`
	Uid         string               `json:"uid,omitempty"`
	Url         string               `json:"url,omitempty"`
}

type OpenapiDirContent

type OpenapiDirContent struct {
	Entries []OpenapiContentInfo `json:"entries,omitempty"`
}

type OpenapiFileViewAddPullReqRequest

type OpenapiFileViewAddPullReqRequest struct {
	CommitSha string `json:"commit_sha,omitempty"`
	Path      string `json:"path,omitempty"`
}

type OpenapiGetContentOutput

type OpenapiGetContentOutput struct {
	Content      *OpenapiContent     `json:"content,omitempty"`
	LatestCommit *TypesCommit        `json:"latest_commit,omitempty"`
	Name         string              `json:"name,omitempty"`
	Path         string              `json:"path,omitempty"`
	Sha          string              `json:"sha,omitempty"`
	Type_        *OpenapiContentType `json:"type,omitempty"`
}

type OpenapiMergePullReq

type OpenapiMergePullReq struct {
	BypassRules bool             `json:"bypass_rules,omitempty"`
	DryRun      bool             `json:"dry_run,omitempty"`
	Method      *EnumMergeMethod `json:"method,omitempty"`
	SourceSha   string           `json:"source_sha,omitempty"`
}

type OpenapiMoveRepoRequest

type OpenapiMoveRepoRequest struct {
	Identifier string `json:"identifier,omitempty"`
	Uid        string `json:"uid,omitempty"`
}

type OpenapiPathsDetailsRequest

type OpenapiPathsDetailsRequest struct {
	Paths []string `json:"paths,omitempty"`
}

type OpenapiRestoreRequest added in v0.3.80

type OpenapiRestoreRequest struct {
	NewIdentifier string `json:"new_identifier,omitempty"`
}

type OpenapiReviewSubmitPullReqRequest

type OpenapiReviewSubmitPullReqRequest struct {
	CommitSha string                     `json:"commit_sha,omitempty"`
	Decision  *EnumPullReqReviewDecision `json:"decision,omitempty"`
}

type OpenapiReviewerAddPullReqRequest

type OpenapiReviewerAddPullReqRequest struct {
	ReviewerId int32 `json:"reviewer_id,omitempty"`
}

type OpenapiRule

type OpenapiRule struct {
	Created     int32                         `json:"created,omitempty"`
	CreatedBy   *TypesPrincipalInfo           `json:"created_by,omitempty"`
	Definition  *OpenapiRuleDefinition        `json:"definition,omitempty"`
	Description string                        `json:"description,omitempty"`
	Identifier  string                        `json:"identifier,omitempty"`
	Pattern     *ProtectionPattern            `json:"pattern,omitempty"`
	State       *EnumRuleState                `json:"state,omitempty"`
	Type_       *OpenapiRuleType              `json:"type,omitempty"`
	Updated     int32                         `json:"updated,omitempty"`
	Users       map[string]TypesPrincipalInfo `json:"users,omitempty"`
}

type OpenapiRuleDefinition

type OpenapiRuleDefinition struct {
	ProtectionBranch
}

type OpenapiRuleType

type OpenapiRuleType string
const (
	BRANCH_OpenapiRuleType OpenapiRuleType = "branch"
)

List of OpenapiRuleType

type OpenapiStatePullReqRequest

type OpenapiStatePullReqRequest struct {
	IsDraft bool              `json:"is_draft,omitempty"`
	State   *EnumPullReqState `json:"state,omitempty"`
}

type OpenapiUpdatePullReqRequest

type OpenapiUpdatePullReqRequest struct {
	Description string `json:"description,omitempty"`
	Title       string `json:"title,omitempty"`
}

type OpenapiUpdateRepoRequest

type OpenapiUpdateRepoRequest struct {
	Description string `json:"description,omitempty"`
	IsPublic    bool   `json:"is_public,omitempty"`
}

type OpenapiUpdateWebhookRequest

type OpenapiUpdateWebhookRequest struct {
	Description string               `json:"description,omitempty"`
	DisplayName string               `json:"display_name,omitempty"`
	Enabled     bool                 `json:"enabled,omitempty"`
	Identifier  string               `json:"identifier,omitempty"`
	Insecure    bool                 `json:"insecure,omitempty"`
	Secret      string               `json:"secret,omitempty"`
	Triggers    []EnumWebhookTrigger `json:"triggers,omitempty"`
	Uid         string               `json:"uid,omitempty"`
	Url         string               `json:"url,omitempty"`
}

type OpenapiWebhookType

type OpenapiWebhookType struct {
	Created               int32                       `json:"created,omitempty"`
	CreatedBy             int32                       `json:"created_by,omitempty"`
	Description           string                      `json:"description,omitempty"`
	DisplayName           string                      `json:"display_name,omitempty"`
	Enabled               bool                        `json:"enabled,omitempty"`
	HasSecret             bool                        `json:"has_secret,omitempty"`
	Id                    int32                       `json:"id,omitempty"`
	Identifier            string                      `json:"identifier,omitempty"`
	Insecure              bool                        `json:"insecure,omitempty"`
	LatestExecutionResult *EnumWebhookExecutionResult `json:"latest_execution_result,omitempty"`
	ParentId              int32                       `json:"parent_id,omitempty"`
	ParentType            *EnumWebhookParent          `json:"parent_type,omitempty"`
	Triggers              []EnumWebhookTrigger        `json:"triggers,omitempty"`
	Updated               int32                       `json:"updated,omitempty"`
	Url                   string                      `json:"url,omitempty"`
	Version               int32                       `json:"version,omitempty"`
}

type ProtectionBranch

type ProtectionBranch struct {
	Bypass    *ProtectionDefBypass    `json:"bypass,omitempty"`
	Lifecycle *ProtectionDefLifecycle `json:"lifecycle,omitempty"`
	Pullreq   *ProtectionDefPullReq   `json:"pullreq,omitempty"`
}

type ProtectionDefApprovals

type ProtectionDefApprovals struct {
	RequireCodeOwners      bool  `json:"require_code_owners,omitempty"`
	RequireLatestCommit    bool  `json:"require_latest_commit,omitempty"`
	RequireMinimumCount    int32 `json:"require_minimum_count,omitempty"`
	RequireNoChangeRequest bool  `json:"require_no_change_request,omitempty"`
}

type ProtectionDefBypass

type ProtectionDefBypass struct {
	RepoOwners bool    `json:"repo_owners,omitempty"`
	UserIds    []int32 `json:"user_ids,omitempty"`
}

type ProtectionDefComments

type ProtectionDefComments struct {
	RequireResolveAll bool `json:"require_resolve_all,omitempty"`
}

type ProtectionDefLifecycle

type ProtectionDefLifecycle struct {
	CreateForbidden bool `json:"create_forbidden,omitempty"`
	DeleteForbidden bool `json:"delete_forbidden,omitempty"`
	UpdateForbidden bool `json:"update_forbidden,omitempty"`
}

type ProtectionDefMerge

type ProtectionDefMerge struct {
	DeleteBranch      bool              `json:"delete_branch,omitempty"`
	StrategiesAllowed []EnumMergeMethod `json:"strategies_allowed,omitempty"`
}

type ProtectionDefPullReq

type ProtectionDefPullReq struct {
	Approvals    *ProtectionDefApprovals    `json:"approvals,omitempty"`
	Comments     *ProtectionDefComments     `json:"comments,omitempty"`
	Merge        *ProtectionDefMerge        `json:"merge,omitempty"`
	StatusChecks *ProtectionDefStatusChecks `json:"status_checks,omitempty"`
}

type ProtectionDefStatusChecks

type ProtectionDefStatusChecks struct {
	RequireIdentifiers []string `json:"require_identifiers,omitempty"`
}

type ProtectionPattern

type ProtectionPattern struct {
	Default_ bool     `json:"default,omitempty"`
	Exclude  []string `json:"exclude,omitempty"`
	Include  []string `json:"include,omitempty"`
}

type PullreqApiChecksPullReqOpts added in v0.3.80

type PullreqApiChecksPullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiCodeownersPullReqOpts

type PullreqApiCodeownersPullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiCommentCreatePullReqOpts

type PullreqApiCommentCreatePullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiCommentDeletePullReqOpts

type PullreqApiCommentDeletePullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiCommentStatusPullReqOpts

type PullreqApiCommentStatusPullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiCommentUpdatePullReqOpts

type PullreqApiCommentUpdatePullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiCreatePullReqOpts

type PullreqApiCreatePullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiDiffPullReqOpts

type PullreqApiDiffPullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Path              optional.Interface
}

type PullreqApiDiffPullReqPostOpts

type PullreqApiDiffPullReqPostOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiFileViewAddPullReqOpts

type PullreqApiFileViewAddPullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiFileViewDeletePullReqOpts

type PullreqApiFileViewDeletePullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiFileViewListPullReqOpts

type PullreqApiFileViewListPullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiGetPullReqOpts

type PullreqApiGetPullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiListPullReqActivitiesOpts

type PullreqApiListPullReqActivitiesOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Kind              optional.Interface
	Type_             optional.Interface
	After             optional.Int32
	Before            optional.Int32
	Limit             optional.Int32
}

type PullreqApiListPullReqCommitsOpts

type PullreqApiListPullReqCommitsOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type PullreqApiListPullReqOpts

type PullreqApiListPullReqOpts struct {
	OrgIdentifier        optional.String
	ProjectIdentifier    optional.String
	State                optional.Interface
	SourceRepoIdentifier optional.String
	SourceBranch         optional.String
	TargetBranch         optional.String
	Query                optional.String
	CreatedBy            optional.Int32
	Order                optional.String
	Sort                 optional.String
	Page                 optional.Int32
	Limit                optional.Int32
}

type PullreqApiMergePullReqOpOpts

type PullreqApiMergePullReqOpOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiPullReqMetaDataOpts

type PullreqApiPullReqMetaDataOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiReviewSubmitPullReqOpts

type PullreqApiReviewSubmitPullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiReviewerAddPullReqOpts

type PullreqApiReviewerAddPullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiReviewerDeletePullReqOpts

type PullreqApiReviewerDeletePullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiReviewerListPullReqOpts

type PullreqApiReviewerListPullReqOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiService

type PullreqApiService service

func (*PullreqApiService) ChecksPullReq added in v0.3.80

func (a *PullreqApiService) ChecksPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiChecksPullReqOpts) ([]TypesPullReqChecks, *http.Response, error)

func (*PullreqApiService) CodeownersPullReq

func (a *PullreqApiService) CodeownersPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiCodeownersPullReqOpts) (TypesCodeOwnerEvaluation, *http.Response, error)

func (*PullreqApiService) CommentCreatePullReq

func (a *PullreqApiService) CommentCreatePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiCommentCreatePullReqOpts) (TypesPullReqActivity, *http.Response, error)

func (*PullreqApiService) CommentDeletePullReq

func (a *PullreqApiService) CommentDeletePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, pullreqCommentId int32, localVarOptionals *PullreqApiCommentDeletePullReqOpts) (*http.Response, error)

func (*PullreqApiService) CommentStatusPullReq

func (a *PullreqApiService) CommentStatusPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, pullreqCommentId int32, localVarOptionals *PullreqApiCommentStatusPullReqOpts) (TypesPullReqActivity, *http.Response, error)

func (*PullreqApiService) CommentUpdatePullReq

func (a *PullreqApiService) CommentUpdatePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, pullreqCommentId int32, localVarOptionals *PullreqApiCommentUpdatePullReqOpts) (TypesPullReqActivity, *http.Response, error)

func (*PullreqApiService) CreatePullReq

func (a *PullreqApiService) CreatePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *PullreqApiCreatePullReqOpts) (TypesPullReq, *http.Response, error)

func (*PullreqApiService) DiffPullReq

func (a *PullreqApiService) DiffPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiDiffPullReqOpts) ([]GitFileDiff, *http.Response, error)

func (*PullreqApiService) DiffPullReqPost

func (a *PullreqApiService) DiffPullReqPost(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiDiffPullReqPostOpts) ([]GitFileDiff, *http.Response, error)

func (*PullreqApiService) FileViewAddPullReq

func (a *PullreqApiService) FileViewAddPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiFileViewAddPullReqOpts) (TypesPullReqFileView, *http.Response, error)

func (*PullreqApiService) FileViewDeletePullReq

func (a *PullreqApiService) FileViewDeletePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, filePath string, localVarOptionals *PullreqApiFileViewDeletePullReqOpts) (*http.Response, error)

func (*PullreqApiService) FileViewListPullReq

func (a *PullreqApiService) FileViewListPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiFileViewListPullReqOpts) ([]TypesPullReqFileView, *http.Response, error)

func (*PullreqApiService) GetPullReq

func (a *PullreqApiService) GetPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiGetPullReqOpts) (TypesPullReq, *http.Response, error)

func (*PullreqApiService) ListPullReq

func (a *PullreqApiService) ListPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *PullreqApiListPullReqOpts) ([]TypesPullReq, *http.Response, error)

func (*PullreqApiService) ListPullReqActivities

func (a *PullreqApiService) ListPullReqActivities(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiListPullReqActivitiesOpts) ([]TypesPullReqActivity, *http.Response, error)

func (*PullreqApiService) ListPullReqCommits

func (a *PullreqApiService) ListPullReqCommits(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiListPullReqCommitsOpts) ([]TypesCommit, *http.Response, error)

func (*PullreqApiService) MergePullReqOp

func (a *PullreqApiService) MergePullReqOp(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiMergePullReqOpOpts) (TypesMergeResponse, *http.Response, error)

func (*PullreqApiService) PullReqMetaData

func (a *PullreqApiService) PullReqMetaData(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiPullReqMetaDataOpts) (TypesPullReqStats, *http.Response, error)

func (*PullreqApiService) ReviewSubmitPullReq

func (a *PullreqApiService) ReviewSubmitPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiReviewSubmitPullReqOpts) (*http.Response, error)

func (*PullreqApiService) ReviewerAddPullReq

func (a *PullreqApiService) ReviewerAddPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiReviewerAddPullReqOpts) (TypesPullReqReviewer, *http.Response, error)

func (*PullreqApiService) ReviewerDeletePullReq

func (a *PullreqApiService) ReviewerDeletePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, pullreqReviewerId int32, localVarOptionals *PullreqApiReviewerDeletePullReqOpts) (*http.Response, error)

func (*PullreqApiService) ReviewerListPullReq

func (a *PullreqApiService) ReviewerListPullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiReviewerListPullReqOpts) ([]TypesPullReqReviewer, *http.Response, error)

func (*PullreqApiService) StatePullReq

func (a *PullreqApiService) StatePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiStatePullReqOpts) (TypesPullReq, *http.Response, error)

func (*PullreqApiService) UpdatePullReq

func (a *PullreqApiService) UpdatePullReq(ctx context.Context, accountIdentifier string, repoIdentifier string, pullreqNumber int32, localVarOptionals *PullreqApiUpdatePullReqOpts) (TypesPullReq, *http.Response, error)

type PullreqApiStatePullReqOpts

type PullreqApiStatePullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type PullreqApiUpdatePullReqOpts

type PullreqApiUpdatePullReqOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepoBranch

type RepoBranch struct {
	Commit *TypesCommit `json:"commit,omitempty"`
	Name   string       `json:"name,omitempty"`
	Sha    string       `json:"sha,omitempty"`
}

type RepoCommitDivergence

type RepoCommitDivergence struct {
	Ahead  int32 `json:"ahead,omitempty"`
	Behind int32 `json:"behind,omitempty"`
}

type RepoCommitDivergenceRequest

type RepoCommitDivergenceRequest struct {
	From string `json:"from,omitempty"`
	To   string `json:"to,omitempty"`
}

type RepoCommitFileAction

type RepoCommitFileAction struct {
	Action   *GitFileAction           `json:"action,omitempty"`
	Encoding *EnumContentEncodingType `json:"encoding,omitempty"`
	Path     string                   `json:"path,omitempty"`
	Payload  string                   `json:"payload,omitempty"`
	Sha      string                   `json:"sha,omitempty"`
}

type RepoCommitTag

type RepoCommitTag struct {
	Commit      *TypesCommit    `json:"commit,omitempty"`
	IsAnnotated bool            `json:"is_annotated,omitempty"`
	Message     string          `json:"message,omitempty"`
	Name        string          `json:"name,omitempty"`
	Sha         string          `json:"sha,omitempty"`
	Tagger      *TypesSignature `json:"tagger,omitempty"`
	Title       string          `json:"title,omitempty"`
}

type RepoContentInfo

type RepoContentInfo struct {
	LatestCommit *TypesCommit `json:"latest_commit,omitempty"`
	Name         string       `json:"name,omitempty"`
	Path         string       `json:"path,omitempty"`
	Sha          string       `json:"sha,omitempty"`
	Type_        string       `json:"type,omitempty"`
}

type RepoFileContent

type RepoFileContent struct {
	Data     string                   `json:"data,omitempty"`
	DataSize int32                    `json:"data_size,omitempty"`
	Encoding *EnumContentEncodingType `json:"encoding,omitempty"`
	Size     int32                    `json:"size,omitempty"`
}

type RepoIdentifierRulesBody added in v0.3.77

type RepoIdentifierRulesBody struct {
	Definition  *OpenapiRuleDefinition `json:"definition,omitempty"`
	Description string                 `json:"description,omitempty"`
	Identifier  string                 `json:"identifier,omitempty"`
	Pattern     *ProtectionPattern     `json:"pattern,omitempty"`
	State       *EnumRuleState         `json:"state,omitempty"`
	Type_       *OpenapiRuleType       `json:"type,omitempty"`
	Uid         string                 `json:"uid,omitempty"`
}

type RepoMergeCheck

type RepoMergeCheck struct {
	ConflictFiles []string `json:"conflict_files,omitempty"`
	Mergeable     bool     `json:"mergeable,omitempty"`
}

type RepoPathsDetailsOutput

type RepoPathsDetailsOutput struct {
	Details []GitPathDetails `json:"details,omitempty"`
}

type RepoSoftDeleteResponse added in v0.3.80

type RepoSoftDeleteResponse struct {
	DeletedAt int32 `json:"deleted_at,omitempty"`
}

type RepoSubmoduleContent

type RepoSubmoduleContent struct {
	CommitSha string `json:"commit_sha,omitempty"`
	Url       string `json:"url,omitempty"`
}

type RepoSymlinkContent

type RepoSymlinkContent struct {
	Size   int32  `json:"size,omitempty"`
	Target string `json:"target,omitempty"`
}

type ReposImportBody

type ReposImportBody struct {
	Description  string                  `json:"description,omitempty"`
	Identifier   string                  `json:"identifier,omitempty"`
	ParentRef    string                  `json:"parent_ref,omitempty"`
	Pipelines    *ImporterPipelineOption `json:"pipelines,omitempty"`
	Provider     *ImporterProvider       `json:"provider,omitempty"`
	ProviderRepo string                  `json:"provider_repo,omitempty"`
	Uid          string                  `json:"uid,omitempty"`
}

type RepositoryApiCalculateCommitDivergenceOpts

type RepositoryApiCalculateCommitDivergenceOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiCodeOwnersValidateOpts

type RepositoryApiCodeOwnersValidateOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	GitRef            optional.String
}

type RepositoryApiCommitFilesOpts

type RepositoryApiCommitFilesOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiCreateBranchOpts

type RepositoryApiCreateBranchOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiCreateRepositoryOpts

type RepositoryApiCreateRepositoryOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiCreateTagOpts

type RepositoryApiCreateTagOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiDeleteBranchOpts

type RepositoryApiDeleteBranchOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	BypassRules       optional.Bool
}

type RepositoryApiDeleteRepositoryOpts

type RepositoryApiDeleteRepositoryOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiDeleteTagOpts

type RepositoryApiDeleteTagOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	BypassRules       optional.Bool
}

type RepositoryApiDiffStatsOpts

type RepositoryApiDiffStatsOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Path              optional.Interface
}

type RepositoryApiGetBlameOpts

type RepositoryApiGetBlameOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	GitRef            optional.String
	LineFrom          optional.Int32
	LineTo            optional.Int32
}

type RepositoryApiGetBranchOpts

type RepositoryApiGetBranchOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiGetCommitDiffOpts

type RepositoryApiGetCommitDiffOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiGetCommitOpts

type RepositoryApiGetCommitOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiGetContentOpts

type RepositoryApiGetContentOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiGetRawOpts

type RepositoryApiGetRawOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	GitRef            optional.String
}

type RepositoryApiGetRepositoryOpts added in v0.3.77

type RepositoryApiGetRepositoryOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiImportRepositoryOpts

type RepositoryApiImportRepositoryOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiListBranchesOpts

type RepositoryApiListBranchesOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	IncludeCommit     optional.Bool
	Query             optional.String
	Order             optional.String
	Sort              optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type RepositoryApiListCommitsOpts

type RepositoryApiListCommitsOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	GitRef            optional.String
	After             optional.String
	Path              optional.String
	Since             optional.Int32
	Until             optional.Int32
	Committer         optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type RepositoryApiListReposOpts

type RepositoryApiListReposOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Query             optional.String
	Sort              optional.String
	Order             optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type RepositoryApiListTagsOpts

type RepositoryApiListTagsOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	IncludeCommit     optional.Bool
	Query             optional.String
	Order             optional.String
	Sort              optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type RepositoryApiMergeCheckOpts

type RepositoryApiMergeCheckOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Path              optional.Interface
}

type RepositoryApiMoveRepositoryOpts

type RepositoryApiMoveRepositoryOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiPathDetailsOpts

type RepositoryApiPathDetailsOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	GitRef            optional.String
}

type RepositoryApiPurgeRepositoryOpts added in v0.3.80

type RepositoryApiPurgeRepositoryOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiRawDiffOpts

type RepositoryApiRawDiffOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Path              optional.Interface
}

type RepositoryApiRawDiffPostOpts

type RepositoryApiRawDiffPostOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiRestoreRepositoryOpts added in v0.3.80

type RepositoryApiRestoreRepositoryOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiRuleAddOpts added in v0.3.77

type RepositoryApiRuleAddOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiRuleDeleteOpts added in v0.3.77

type RepositoryApiRuleDeleteOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiRuleGetOpts added in v0.3.77

type RepositoryApiRuleGetOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiRuleListOpts

type RepositoryApiRuleListOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Query             optional.String
	Order             optional.String
	Sort              optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type RepositoryApiRuleUpdateOpts added in v0.3.77

type RepositoryApiRuleUpdateOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type RepositoryApiService

type RepositoryApiService service

func (*RepositoryApiService) CalculateCommitDivergence

func (a *RepositoryApiService) CalculateCommitDivergence(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiCalculateCommitDivergenceOpts) ([]RepoCommitDivergence, *http.Response, error)

func (*RepositoryApiService) CodeOwnersValidate

func (a *RepositoryApiService) CodeOwnersValidate(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiCodeOwnersValidateOpts) (*http.Response, error)

func (*RepositoryApiService) CommitFiles

func (a *RepositoryApiService) CommitFiles(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiCommitFilesOpts) (TypesCommitFilesResponse, *http.Response, error)

func (*RepositoryApiService) CreateBranch

func (a *RepositoryApiService) CreateBranch(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiCreateBranchOpts) (RepoBranch, *http.Response, error)

func (*RepositoryApiService) CreateRepository

func (a *RepositoryApiService) CreateRepository(ctx context.Context, accountIdentifier string, localVarOptionals *RepositoryApiCreateRepositoryOpts) (TypesRepository, *http.Response, error)

func (*RepositoryApiService) CreateTag

func (a *RepositoryApiService) CreateTag(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiCreateTagOpts) (RepoCommitTag, *http.Response, error)

func (*RepositoryApiService) DeleteBranch

func (a *RepositoryApiService) DeleteBranch(ctx context.Context, accountIdentifier string, repoIdentifier string, branchName string, localVarOptionals *RepositoryApiDeleteBranchOpts) (*http.Response, error)

func (*RepositoryApiService) DeleteRepository

func (a *RepositoryApiService) DeleteRepository(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiDeleteRepositoryOpts) (RepoSoftDeleteResponse, *http.Response, error)

func (*RepositoryApiService) DeleteTag

func (a *RepositoryApiService) DeleteTag(ctx context.Context, accountIdentifier string, repoIdentifier string, tagName string, localVarOptionals *RepositoryApiDeleteTagOpts) (*http.Response, error)

func (*RepositoryApiService) DiffStats

func (a *RepositoryApiService) DiffStats(ctx context.Context, accountIdentifier string, repoIdentifier string, range_ string, localVarOptionals *RepositoryApiDiffStatsOpts) (TypesDiffStats, *http.Response, error)

func (*RepositoryApiService) GetBlame

func (a *RepositoryApiService) GetBlame(ctx context.Context, accountIdentifier string, repoIdentifier string, path string, localVarOptionals *RepositoryApiGetBlameOpts) ([]GitBlamePart, *http.Response, error)

func (*RepositoryApiService) GetBranch

func (a *RepositoryApiService) GetBranch(ctx context.Context, accountIdentifier string, repoIdentifier string, branchName string, localVarOptionals *RepositoryApiGetBranchOpts) (RepoBranch, *http.Response, error)

func (*RepositoryApiService) GetCommit

func (a *RepositoryApiService) GetCommit(ctx context.Context, accountIdentifier string, repoIdentifier string, commitSha string, localVarOptionals *RepositoryApiGetCommitOpts) (TypesCommit, *http.Response, error)

func (*RepositoryApiService) GetCommitDiff

func (a *RepositoryApiService) GetCommitDiff(ctx context.Context, accountIdentifier string, repoIdentifier string, commitSha string, localVarOptionals *RepositoryApiGetCommitDiffOpts) (string, *http.Response, error)

func (*RepositoryApiService) GetContent

func (a *RepositoryApiService) GetContent(ctx context.Context, accountIdentifier string, repoIdentifier string, path string, localVarOptionals *RepositoryApiGetContentOpts) (OpenapiGetContentOutput, *http.Response, error)

func (*RepositoryApiService) GetRaw

func (a *RepositoryApiService) GetRaw(ctx context.Context, accountIdentifier string, repoIdentifier string, path string, localVarOptionals *RepositoryApiGetRawOpts) (*http.Response, error)

func (*RepositoryApiService) GetRepository added in v0.3.77

func (a *RepositoryApiService) GetRepository(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiGetRepositoryOpts) (TypesRepository, *http.Response, error)

func (*RepositoryApiService) ImportRepository

func (a *RepositoryApiService) ImportRepository(ctx context.Context, accountIdentifier string, localVarOptionals *RepositoryApiImportRepositoryOpts) (TypesRepository, *http.Response, error)

func (*RepositoryApiService) ListBranches

func (a *RepositoryApiService) ListBranches(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiListBranchesOpts) ([]RepoBranch, *http.Response, error)

func (*RepositoryApiService) ListCommits

func (a *RepositoryApiService) ListCommits(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiListCommitsOpts) ([]TypesListCommitResponse, *http.Response, error)

func (*RepositoryApiService) ListRepos

func (a *RepositoryApiService) ListRepos(ctx context.Context, accountIdentifier string, localVarOptionals *RepositoryApiListReposOpts) ([]TypesRepository, *http.Response, error)

func (*RepositoryApiService) ListTags

func (a *RepositoryApiService) ListTags(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiListTagsOpts) ([]RepoCommitTag, *http.Response, error)

func (*RepositoryApiService) MergeCheck

func (a *RepositoryApiService) MergeCheck(ctx context.Context, accountIdentifier string, repoIdentifier string, range_ string, localVarOptionals *RepositoryApiMergeCheckOpts) (RepoMergeCheck, *http.Response, error)

func (*RepositoryApiService) MoveRepository

func (a *RepositoryApiService) MoveRepository(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiMoveRepositoryOpts) (TypesRepository, *http.Response, error)

func (*RepositoryApiService) PathDetails

func (a *RepositoryApiService) PathDetails(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiPathDetailsOpts) (RepoPathsDetailsOutput, *http.Response, error)

func (*RepositoryApiService) PurgeRepository added in v0.3.80

func (a *RepositoryApiService) PurgeRepository(ctx context.Context, accountIdentifier string, deletedAt int32, repoIdentifier string, localVarOptionals *RepositoryApiPurgeRepositoryOpts) (*http.Response, error)

func (*RepositoryApiService) RawDiff

func (a *RepositoryApiService) RawDiff(ctx context.Context, accountIdentifier string, repoIdentifier string, range_ string, localVarOptionals *RepositoryApiRawDiffOpts) ([]GitFileDiff, *http.Response, error)

func (*RepositoryApiService) RawDiffPost

func (a *RepositoryApiService) RawDiffPost(ctx context.Context, accountIdentifier string, repoIdentifier string, range_ string, localVarOptionals *RepositoryApiRawDiffPostOpts) ([]GitFileDiff, *http.Response, error)

func (*RepositoryApiService) RestoreRepository added in v0.3.80

func (a *RepositoryApiService) RestoreRepository(ctx context.Context, accountIdentifier string, deletedAt int32, repoIdentifier string, localVarOptionals *RepositoryApiRestoreRepositoryOpts) (TypesRepository, *http.Response, error)

func (*RepositoryApiService) RuleAdd added in v0.3.77

func (a *RepositoryApiService) RuleAdd(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiRuleAddOpts) (OpenapiRule, *http.Response, error)

func (*RepositoryApiService) RuleDelete added in v0.3.77

func (a *RepositoryApiService) RuleDelete(ctx context.Context, accountIdentifier string, repoIdentifier string, ruleUid string, localVarOptionals *RepositoryApiRuleDeleteOpts) (*http.Response, error)

func (*RepositoryApiService) RuleGet added in v0.3.77

func (a *RepositoryApiService) RuleGet(ctx context.Context, accountIdentifier string, repoIdentifier string, ruleUid string, localVarOptionals *RepositoryApiRuleGetOpts) (OpenapiRule, *http.Response, error)

func (*RepositoryApiService) RuleList

func (a *RepositoryApiService) RuleList(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiRuleListOpts) ([]OpenapiRule, *http.Response, error)

func (*RepositoryApiService) RuleUpdate added in v0.3.77

func (a *RepositoryApiService) RuleUpdate(ctx context.Context, accountIdentifier string, repoIdentifier string, ruleUid string, localVarOptionals *RepositoryApiRuleUpdateOpts) (OpenapiRule, *http.Response, error)

func (*RepositoryApiService) UpdateRepository

func (a *RepositoryApiService) UpdateRepository(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *RepositoryApiUpdateRepositoryOpts) (TypesRepository, *http.Response, error)

type RepositoryApiUpdateRepositoryOpts

type RepositoryApiUpdateRepositoryOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type ResourceApiService

type ResourceApiService service

func (*ResourceApiService) ListGitignore

func (a *ResourceApiService) ListGitignore(ctx context.Context) ([]string, *http.Response, error)

ResourceApiService List available gitignore names

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []string

func (*ResourceApiService) ListLicenses

ResourceApiService List available license names

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []InlineResponse200

type RulesRuleUidBody added in v0.3.77

type RulesRuleUidBody struct {
	Definition  *OpenapiRuleDefinition `json:"definition,omitempty"`
	Description string                 `json:"description,omitempty"`
	Identifier  string                 `json:"identifier,omitempty"`
	Pattern     *ProtectionPattern     `json:"pattern,omitempty"`
	State       *EnumRuleState         `json:"state,omitempty"`
	Type_       *OpenapiRuleType       `json:"type,omitempty"`
	Uid         string                 `json:"uid,omitempty"`
}

type StatusChecksApiListStatusCheckRecentOpts

type StatusChecksApiListStatusCheckRecentOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Query             optional.String
	Since             optional.Int32
}

type StatusChecksApiListStatusCheckResultsOpts

type StatusChecksApiListStatusCheckResultsOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Page              optional.Int32
	Limit             optional.Int32
	Query             optional.String
}

type StatusChecksApiReportStatusCheckResultsOpts added in v0.3.77

type StatusChecksApiReportStatusCheckResultsOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type StatusChecksApiService

type StatusChecksApiService service

func (*StatusChecksApiService) ListStatusCheckRecent

func (a *StatusChecksApiService) ListStatusCheckRecent(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *StatusChecksApiListStatusCheckRecentOpts) ([]string, *http.Response, error)

func (*StatusChecksApiService) ListStatusCheckResults

func (a *StatusChecksApiService) ListStatusCheckResults(ctx context.Context, accountIdentifier string, repoIdentifier string, commitSha string, localVarOptionals *StatusChecksApiListStatusCheckResultsOpts) ([]TypesCheck, *http.Response, error)

func (*StatusChecksApiService) ReportStatusCheckResults added in v0.3.77

func (a *StatusChecksApiService) ReportStatusCheckResults(ctx context.Context, accountIdentifier string, repoIdentifier string, commitSha string, localVarOptionals *StatusChecksApiReportStatusCheckResultsOpts) (TypesCheck, *http.Response, error)

type TypesCheck

type TypesCheck struct {
	Created    int32  `json:"created,omitempty"`
	Ended      int32  `json:"ended,omitempty"`
	Id         int32  `json:"id,omitempty"`
	Identifier string `json:"identifier,omitempty"`
	Link       string `json:"link,omitempty"`
	// manually changed object to interface
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Payload    *TypesCheckPayload     `json:"payload,omitempty"`
	ReportedBy *TypesPrincipalInfo    `json:"reported_by,omitempty"`
	Started    int32                  `json:"started,omitempty"`
	Status     *EnumCheckStatus       `json:"status,omitempty"`
	Summary    string                 `json:"summary,omitempty"`
	Updated    int32                  `json:"updated,omitempty"`
}

type TypesCheckPayload

type TypesCheckPayload struct {
	// manually changed object to interface
	Data    map[string]interface{} `json:"data,omitempty"`
	Kind    *EnumCheckPayloadKind  `json:"kind,omitempty"`
	Version string                 `json:"version,omitempty"`
}

type TypesCodeCommentFields

type TypesCodeCommentFields struct {
	LineNew      int32  `json:"line_new,omitempty"`
	LineOld      int32  `json:"line_old,omitempty"`
	MergeBaseSha string `json:"merge_base_sha,omitempty"`
	Outdated     bool   `json:"outdated,omitempty"`
	Path         string `json:"path,omitempty"`
	SourceSha    string `json:"source_sha,omitempty"`
	SpanNew      int32  `json:"span_new,omitempty"`
	SpanOld      int32  `json:"span_old,omitempty"`
}

type TypesCodeOwnerEvaluation

type TypesCodeOwnerEvaluation struct {
	EvaluationEntries []TypesCodeOwnerEvaluationEntry `json:"evaluation_entries,omitempty"`
	FileSha           string                          `json:"file_sha,omitempty"`
}

type TypesCodeOwnerEvaluationEntry

type TypesCodeOwnerEvaluationEntry struct {
	OwnerEvaluations          []TypesOwnerEvaluation          `json:"owner_evaluations,omitempty"`
	Pattern                   string                          `json:"pattern,omitempty"`
	UserGroupOwnerEvaluations []TypesUserGroupOwnerEvaluation `json:"user_group_owner_evaluations,omitempty"`
}

type TypesCommit

type TypesCommit struct {
	Author     *TypesSignature       `json:"author,omitempty"`
	Committer  *TypesSignature       `json:"committer,omitempty"`
	DiffStats  *TypesCommitDiffStats `json:"diff_stats,omitempty"`
	Message    string                `json:"message,omitempty"`
	ParentShas []string              `json:"parent_shas,omitempty"`
	Sha        string                `json:"sha,omitempty"`
	Title      string                `json:"title,omitempty"`
}

type TypesCommitDiffStats added in v0.3.80

type TypesCommitDiffStats struct {
	Additions int32 `json:"additions,omitempty"`
	Deletions int32 `json:"deletions,omitempty"`
	Total     int32 `json:"total,omitempty"`
}

type TypesCommitFilesResponse

type TypesCommitFilesResponse struct {
	CommitId       string                `json:"commit_id,omitempty"`
	DryRunRules    bool                  `json:"dry_run_rules,omitempty"`
	RuleViolations []TypesRuleViolations `json:"rule_violations,omitempty"`
}

type TypesDiffStats

type TypesDiffStats struct {
	Commits      int32 `json:"commits,omitempty"`
	FilesChanged int32 `json:"files_changed,omitempty"`
}

type TypesFileDiffRequest

type TypesFileDiffRequest struct {
	Path      string `json:"path,omitempty"`
	StartLine int32  `json:"start_line,omitempty"`
}

type TypesIdentity

type TypesIdentity struct {
	Email string `json:"email,omitempty"`
	Name  string `json:"name,omitempty"`
}

type TypesListCommitResponse

type TypesListCommitResponse struct {
	Commits       []TypesCommit        `json:"commits,omitempty"`
	RenameDetails []TypesRenameDetails `json:"rename_details,omitempty"`
	TotalCommits  int32                `json:"total_commits,omitempty"`
}

type TypesMergeResponse

type TypesMergeResponse struct {
	AllowedMethods []EnumMergeMethod     `json:"allowed_methods,omitempty"`
	BranchDeleted  bool                  `json:"branch_deleted,omitempty"`
	ConflictFiles  []string              `json:"conflict_files,omitempty"`
	DryRun         bool                  `json:"dry_run,omitempty"`
	RuleViolations []TypesRuleViolations `json:"rule_violations,omitempty"`
	Sha            string                `json:"sha,omitempty"`
}

type TypesMergeViolations

type TypesMergeViolations struct {
	ConflictFiles  []string              `json:"conflict_files,omitempty"`
	RuleViolations []TypesRuleViolations `json:"rule_violations,omitempty"`
}

type TypesOwnerEvaluation

type TypesOwnerEvaluation struct {
	Owner          *TypesPrincipalInfo        `json:"owner,omitempty"`
	ReviewDecision *EnumPullReqReviewDecision `json:"review_decision,omitempty"`
	ReviewSha      string                     `json:"review_sha,omitempty"`
}

type TypesPrincipalInfo

type TypesPrincipalInfo struct {
	Created     int32              `json:"created,omitempty"`
	DisplayName string             `json:"display_name,omitempty"`
	Email       string             `json:"email,omitempty"`
	Id          int32              `json:"id,omitempty"`
	Type_       *EnumPrincipalType `json:"type,omitempty"`
	Uid         string             `json:"uid,omitempty"`
	Updated     int32              `json:"updated,omitempty"`
}

type TypesPullReq

type TypesPullReq struct {
	Author           *TypesPrincipalInfo `json:"author,omitempty"`
	Created          int32               `json:"created,omitempty"`
	Description      string              `json:"description,omitempty"`
	Edited           int32               `json:"edited,omitempty"`
	IsDraft          bool                `json:"is_draft,omitempty"`
	MergeBaseSha     string              `json:"merge_base_sha,omitempty"`
	MergeCheckStatus string              `json:"merge_check_status,omitempty"`
	MergeConflicts   []string            `json:"merge_conflicts,omitempty"`
	MergeMethod      *EnumMergeMethod    `json:"merge_method,omitempty"`
	MergeSha         string              `json:"merge_sha,omitempty"`
	MergeTargetSha   string              `json:"merge_target_sha,omitempty"`
	Merged           int32               `json:"merged,omitempty"`
	Merger           *TypesPrincipalInfo `json:"merger,omitempty"`
	Number           int32               `json:"number,omitempty"`
	SourceBranch     string              `json:"source_branch,omitempty"`
	SourceRepoId     int32               `json:"source_repo_id,omitempty"`
	SourceSha        string              `json:"source_sha,omitempty"`
	State            *EnumPullReqState   `json:"state,omitempty"`
	Stats            *TypesPullReqStats  `json:"stats,omitempty"`
	TargetBranch     string              `json:"target_branch,omitempty"`
	TargetRepoId     int32               `json:"target_repo_id,omitempty"`
	Title            string              `json:"title,omitempty"`
}

type TypesPullReqActivity

type TypesPullReqActivity struct {
	Author      *TypesPrincipalInfo      `json:"author,omitempty"`
	CodeComment *TypesCodeCommentFields  `json:"code_comment,omitempty"`
	Created     int32                    `json:"created,omitempty"`
	Deleted     int32                    `json:"deleted,omitempty"`
	Edited      int32                    `json:"edited,omitempty"`
	Id          int32                    `json:"id,omitempty"`
	Kind        *EnumPullReqActivityKind `json:"kind,omitempty"`
	// manually changed object to interface
	Metadata map[string]interface{} `json:"metadata,omitempty"`
	Order    int32                  `json:"order,omitempty"`
	ParentId int32                  `json:"parent_id,omitempty"`
	// manually changed object to interface
	Payload   map[string]interface{}   `json:"payload,omitempty"`
	PullreqId int32                    `json:"pullreq_id,omitempty"`
	RepoId    int32                    `json:"repo_id,omitempty"`
	Resolved  int32                    `json:"resolved,omitempty"`
	Resolver  *TypesPrincipalInfo      `json:"resolver,omitempty"`
	SubOrder  int32                    `json:"sub_order,omitempty"`
	Text      string                   `json:"text,omitempty"`
	Type_     *EnumPullReqActivityType `json:"type,omitempty"`
	Updated   int32                    `json:"updated,omitempty"`
}

type TypesPullReqCheck added in v0.3.80

type TypesPullReqCheck struct {
	Bypassable bool        `json:"bypassable,omitempty"`
	Check      *TypesCheck `json:"check,omitempty"`
	Required   bool        `json:"required,omitempty"`
}

type TypesPullReqChecks added in v0.3.80

type TypesPullReqChecks struct {
	Checks    []TypesPullReqCheck `json:"checks,omitempty"`
	CommitSha string              `json:"commit_sha,omitempty"`
}

type TypesPullReqFileView

type TypesPullReqFileView struct {
	Obsolete bool   `json:"obsolete,omitempty"`
	Path     string `json:"path,omitempty"`
	Sha      string `json:"sha,omitempty"`
}

type TypesPullReqReviewer

type TypesPullReqReviewer struct {
	AddedBy        *TypesPrincipalInfo        `json:"added_by,omitempty"`
	Created        int32                      `json:"created,omitempty"`
	LatestReviewId int32                      `json:"latest_review_id,omitempty"`
	ReviewDecision *EnumPullReqReviewDecision `json:"review_decision,omitempty"`
	Reviewer       *TypesPrincipalInfo        `json:"reviewer,omitempty"`
	Sha            string                     `json:"sha,omitempty"`
	Type_          *EnumPullReqReviewerType   `json:"type,omitempty"`
	Updated        int32                      `json:"updated,omitempty"`
}

type TypesPullReqStats

type TypesPullReqStats struct {
	Commits         int32 `json:"commits,omitempty"`
	Conversations   int32 `json:"conversations,omitempty"`
	FilesChanged    int32 `json:"files_changed,omitempty"`
	UnresolvedCount int32 `json:"unresolved_count,omitempty"`
}

type TypesRenameDetails

type TypesRenameDetails struct {
	CommitShaAfter  string `json:"commit_sha_after,omitempty"`
	CommitShaBefore string `json:"commit_sha_before,omitempty"`
	NewPath         string `json:"new_path,omitempty"`
	OldPath         string `json:"old_path,omitempty"`
}

type TypesRepository

type TypesRepository struct {
	Created        int32  `json:"created,omitempty"`
	CreatedBy      int32  `json:"created_by,omitempty"`
	DefaultBranch  string `json:"default_branch,omitempty"`
	Deleted        int32  `json:"deleted,omitempty"`
	Description    string `json:"description,omitempty"`
	ForkId         int32  `json:"fork_id,omitempty"`
	GitUrl         string `json:"git_url,omitempty"`
	Id             int32  `json:"id,omitempty"`
	Identifier     string `json:"identifier,omitempty"`
	Importing      bool   `json:"importing,omitempty"`
	IsPublic       bool   `json:"is_public,omitempty"`
	NumClosedPulls int32  `json:"num_closed_pulls,omitempty"`
	NumForks       int32  `json:"num_forks,omitempty"`
	NumMergedPulls int32  `json:"num_merged_pulls,omitempty"`
	NumOpenPulls   int32  `json:"num_open_pulls,omitempty"`
	NumPulls       int32  `json:"num_pulls,omitempty"`
	ParentId       int32  `json:"parent_id,omitempty"`
	Path           string `json:"path,omitempty"`
	Size           int32  `json:"size,omitempty"`
	SizeUpdated    int32  `json:"size_updated,omitempty"`
	Updated        int32  `json:"updated,omitempty"`
}

type TypesRuleInfo

type TypesRuleInfo struct {
	Identifier string         `json:"identifier,omitempty"`
	RepoPath   string         `json:"repo_path,omitempty"`
	SpacePath  string         `json:"space_path,omitempty"`
	State      *EnumRuleState `json:"state,omitempty"`
	Type_      string         `json:"type,omitempty"`
}

type TypesRuleViolations

type TypesRuleViolations struct {
	Bypassable bool             `json:"bypassable,omitempty"`
	Bypassed   bool             `json:"bypassed,omitempty"`
	Rule       *TypesRuleInfo   `json:"rule,omitempty"`
	Violations []TypesViolation `json:"violations,omitempty"`
}

type TypesRulesViolations

type TypesRulesViolations struct {
	Violations []TypesRuleViolations `json:"violations,omitempty"`
}

type TypesSignature

type TypesSignature struct {
	Identity *TypesIdentity `json:"identity,omitempty"`
	When     time.Time      `json:"when,omitempty"`
}

type TypesUserGroupOwnerEvaluation

type TypesUserGroupOwnerEvaluation struct {
	Evaluations []TypesOwnerEvaluation `json:"evaluations,omitempty"`
	Id          string                 `json:"id,omitempty"`
	Name        string                 `json:"name,omitempty"`
}

type TypesViolation

type TypesViolation struct {
	Code    string `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
	// manually changed object to interface
	Params []map[string]interface{} `json:"params,omitempty"`
}

type TypesWebhookExecution

type TypesWebhookExecution struct {
	Created       int32                          `json:"created,omitempty"`
	Duration      int32                          `json:"duration,omitempty"`
	Error_        string                         `json:"error,omitempty"`
	Id            int32                          `json:"id,omitempty"`
	Request       *TypesWebhookExecutionRequest  `json:"request,omitempty"`
	Response      *TypesWebhookExecutionResponse `json:"response,omitempty"`
	Result        *EnumWebhookExecutionResult    `json:"result,omitempty"`
	RetriggerOf   int32                          `json:"retrigger_of,omitempty"`
	Retriggerable bool                           `json:"retriggerable,omitempty"`
	TriggerType   *EnumWebhookTrigger            `json:"trigger_type,omitempty"`
	WebhookId     int32                          `json:"webhook_id,omitempty"`
}

type TypesWebhookExecutionRequest

type TypesWebhookExecutionRequest struct {
	Body    string `json:"body,omitempty"`
	Headers string `json:"headers,omitempty"`
	Url     string `json:"url,omitempty"`
}

type TypesWebhookExecutionResponse

type TypesWebhookExecutionResponse struct {
	Body       string `json:"body,omitempty"`
	Headers    string `json:"headers,omitempty"`
	Status     string `json:"status,omitempty"`
	StatusCode int32  `json:"status_code,omitempty"`
}

type UploadApiRepoArtifactDownloadOpts

type UploadApiRepoArtifactDownloadOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type UploadApiRepoArtifactUploadOpts

type UploadApiRepoArtifactUploadOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type UploadApiService

type UploadApiService service

func (*UploadApiService) RepoArtifactDownload

func (a *UploadApiService) RepoArtifactDownload(ctx context.Context, accountIdentifier string, repoIdentifier string, fileRef string, localVarOptionals *UploadApiRepoArtifactDownloadOpts) (*http.Response, error)

func (*UploadApiService) RepoArtifactUpload

func (a *UploadApiService) RepoArtifactUpload(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *UploadApiRepoArtifactUploadOpts) (UploadResult, *http.Response, error)

type UploadResult

type UploadResult struct {
	FilePath string `json:"file_path,omitempty"`
}

type UsererrorError

type UsererrorError struct {
	Message string `json:"message,omitempty"`
	// manually changed object to interface
	Values map[string]interface{} `json:"values,omitempty"`
}

type WebhookApiCreateWebhookOpts

type WebhookApiCreateWebhookOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type WebhookApiDeleteWebhookOpts added in v0.3.80

type WebhookApiDeleteWebhookOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type WebhookApiGetWebhookExecutionOpts

type WebhookApiGetWebhookExecutionOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type WebhookApiGetWebhookOpts added in v0.3.80

type WebhookApiGetWebhookOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

type WebhookApiListWebhookExecutionsOpts

type WebhookApiListWebhookExecutionsOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type WebhookApiListWebhooksOpts

type WebhookApiListWebhooksOpts struct {
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
	Query             optional.String
	Sort              optional.String
	Order             optional.String
	Page              optional.Int32
	Limit             optional.Int32
}

type WebhookApiService

type WebhookApiService service

func (*WebhookApiService) CreateWebhook

func (a *WebhookApiService) CreateWebhook(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *WebhookApiCreateWebhookOpts) (OpenapiWebhookType, *http.Response, error)

func (*WebhookApiService) DeleteWebhook

func (a *WebhookApiService) DeleteWebhook(ctx context.Context, accountIdentifier string, repoIdentifier string, webhookIdentifier string, localVarOptionals *WebhookApiDeleteWebhookOpts) (*http.Response, error)

func (*WebhookApiService) GetWebhook

func (a *WebhookApiService) GetWebhook(ctx context.Context, accountIdentifier string, repoIdentifier string, webhookIdentifier string, localVarOptionals *WebhookApiGetWebhookOpts) (OpenapiWebhookType, *http.Response, error)

func (*WebhookApiService) GetWebhookExecution

func (a *WebhookApiService) GetWebhookExecution(ctx context.Context, accountIdentifier string, repoIdentifier string, webhookIdentifier string, webhookExecutionId int32, localVarOptionals *WebhookApiGetWebhookExecutionOpts) (TypesWebhookExecution, *http.Response, error)

func (*WebhookApiService) ListWebhookExecutions

func (a *WebhookApiService) ListWebhookExecutions(ctx context.Context, accountIdentifier string, repoIdentifier string, webhookIdentifier string, localVarOptionals *WebhookApiListWebhookExecutionsOpts) ([]TypesWebhookExecution, *http.Response, error)

func (*WebhookApiService) ListWebhooks

func (a *WebhookApiService) ListWebhooks(ctx context.Context, accountIdentifier string, repoIdentifier string, localVarOptionals *WebhookApiListWebhooksOpts) ([]OpenapiWebhookType, *http.Response, error)

func (*WebhookApiService) UpdateWebhook

func (a *WebhookApiService) UpdateWebhook(ctx context.Context, accountIdentifier string, repoIdentifier string, webhookIdentifier string, localVarOptionals *WebhookApiUpdateWebhookOpts) (OpenapiWebhookType, *http.Response, error)

type WebhookApiUpdateWebhookOpts

type WebhookApiUpdateWebhookOpts struct {
	Body              optional.Interface
	OrgIdentifier     optional.String
	ProjectIdentifier optional.String
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL