gen

package
v1.135.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package gen provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudActivity added in v1.72.1

type CloudActivity struct {
	Approval *CloudActivityApproval `json:"approval,omitempty"`
	Comment  *CloudActivityComment  `json:"comment,omitempty"`
	Update   *CloudActivityUpdate   `json:"update,omitempty"`
}

CloudActivity A PR activity event on Bitbucket Cloud

type CloudActivityApproval added in v1.72.1

type CloudActivityApproval struct {
	Date string `json:"date"`

	// User User ref in PR activity events
	User CloudActivityUser `json:"user"`
}

CloudActivityApproval defines model for CloudActivityApproval.

type CloudActivityComment added in v1.72.1

type CloudActivityComment struct {
	// Author User ref in PR activity events
	Author    CloudActivityUser `json:"author"`
	CreatedOn time.Time         `json:"created_on"`
}

CloudActivityComment defines model for CloudActivityComment.

type CloudActivityUpdate added in v1.72.1

type CloudActivityUpdate struct {
	// Author User ref in PR activity events
	Author CloudActivityUser `json:"author"`
	Date   string            `json:"date"`
}

CloudActivityUpdate defines model for CloudActivityUpdate.

type CloudActivityUser added in v1.72.1

type CloudActivityUser struct {
	AccountID   string `json:"account_id"`
	DisplayName string `json:"display_name"`
	Nickname    string `json:"nickname"`
}

CloudActivityUser User ref in PR activity events

type CloudAddCommitComment added in v1.72.1

type CloudAddCommitComment struct {
	Content CloudCommitCommentContent `json:"content"`
}

CloudAddCommitComment Request body for adding a commit comment

type CloudAddPRComment added in v1.72.1

type CloudAddPRComment struct {
	Content CloudPRCommentContent `json:"content"`

	// Inline Inline anchor for a PR comment
	Inline *CloudInline    `json:"inline,omitempty"`
	Parent *CloudParentRef `json:"parent,omitempty"`
}

CloudAddPRComment Request body for adding a PR comment

type CloudAutoMerge

type CloudAutoMerge struct {
	// MergeStrategy Merge strategy: merge_commit, squash, or fast_forward. Maps to CLI vocabulary: merge, squash, rebase.
	MergeStrategy string `json:"merge_strategy"`
}

CloudAutoMerge Auto-merge configuration for a Cloud pull request

type CloudAutoMergeRequest

type CloudAutoMergeRequest struct {
	// MergeStrategy Merge strategy to apply when auto-merging
	MergeStrategy *string `json:"merge_strategy,omitempty"`
}

CloudAutoMergeRequest Request body for enabling auto-merge on a Bitbucket Cloud pull request

type CloudBranch added in v1.72.1

type CloudBranch struct {
	Name string `json:"name"`

	// Target Target commit of a branch
	Target CloudBranchTarget `json:"target"`
}

CloudBranch A Bitbucket Cloud branch

type CloudBranchName

type CloudBranchName struct {
	// Name Branch name
	Name string `json:"name"`
}

CloudBranchName defines model for CloudBranchName.

type CloudBranchRef

type CloudBranchRef struct {
	Branch CloudBranchName `json:"branch"`
	Commit CloudCommitRef  `json:"commit"`
}

CloudBranchRef A reference to a branch and its latest commit

type CloudBranchRule added in v1.72.1

type CloudBranchRule struct {
	ID      int    `json:"id"`
	Kind    string `json:"kind"`
	Pattern string `json:"pattern"`
	Value   int    `json:"value"`
}

CloudBranchRule A branch restriction rule on Bitbucket Cloud

type CloudBranchTarget added in v1.72.1

type CloudBranchTarget struct {
	Hash string `json:"hash"`
}

CloudBranchTarget Target commit of a branch

type CloudCodeSearchFile added in v1.72.1

type CloudCodeSearchFile struct {
	Commit CloudCodeSearchFileCommit `json:"commit"`
	Links  CloudCodeSearchFileLinks  `json:"links"`
	Path   string                    `json:"path"`
}

CloudCodeSearchFile defines model for CloudCodeSearchFile.

type CloudCodeSearchFileCommit added in v1.72.1

type CloudCodeSearchFileCommit struct {
	Repository CloudCodeSearchFileRepo `json:"repository"`
}

CloudCodeSearchFileCommit defines model for CloudCodeSearchFileCommit.

type CloudCodeSearchFileLinks struct {
	Self CloudCodeSearchFileSelfLink `json:"self"`
}

CloudCodeSearchFileLinks defines model for CloudCodeSearchFileLinks.

type CloudCodeSearchFileRepo added in v1.72.1

type CloudCodeSearchFileRepo struct {
	FullName string `json:"full_name"`
}

CloudCodeSearchFileRepo defines model for CloudCodeSearchFileRepo.

type CloudCodeSearchFileSelfLink struct {
	Href string `json:"href"`
}

CloudCodeSearchFileSelfLink defines model for CloudCodeSearchFileSelfLink.

type CloudCodeSearchHit added in v1.72.1

type CloudCodeSearchHit struct {
	ContentMatchCount int                  `json:"content_match_count"`
	ContentMatches    []CloudContentMatch  `json:"content_matches"`
	File              CloudCodeSearchFile  `json:"file"`
	PathMatches       []CloudSearchSegment `json:"path_matches"`
}

CloudCodeSearchHit A code search result hit

type CloudCommit added in v1.72.1

type CloudCommit struct {
	// Author Author of a Cloud commit
	Author  CloudCommitAuthor `json:"author"`
	Date    time.Time         `json:"date"`
	Hash    string            `json:"hash"`
	Links   CloudCommitLinks  `json:"links"`
	Message string            `json:"message"`
}

CloudCommit A Bitbucket Cloud commit

type CloudCommitAuthor added in v1.72.1

type CloudCommitAuthor struct {
	Raw string `json:"raw"`

	// User Nested user within commit author
	User CloudCommitAuthorUser `json:"user"`
}

CloudCommitAuthor Author of a Cloud commit

type CloudCommitAuthorUser added in v1.72.1

type CloudCommitAuthorUser struct {
	AccountID   string `json:"account_id"`
	DisplayName string `json:"display_name"`
}

CloudCommitAuthorUser Nested user within commit author

type CloudCommitComment added in v1.72.1

type CloudCommitComment struct {
	Content   CloudCommitCommentContent `json:"content"`
	CreatedOn time.Time                 `json:"created_on"`
	ID        int                       `json:"id"`
	UpdatedOn time.Time                 `json:"updated_on"`
	User      CloudCommitCommentUser    `json:"user"`
}

CloudCommitComment A comment on a Bitbucket Cloud commit

type CloudCommitCommentContent added in v1.72.1

type CloudCommitCommentContent struct {
	Raw string `json:"raw"`
}

CloudCommitCommentContent defines model for CloudCommitCommentContent.

type CloudCommitCommentUser added in v1.72.1

type CloudCommitCommentUser struct {
	AccountID   string `json:"account_id"`
	DisplayName string `json:"display_name"`
	Nickname    string `json:"nickname"`
}

CloudCommitCommentUser defines model for CloudCommitCommentUser.

type CloudCommitLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudCommitLinks defines model for CloudCommitLinks.

type CloudCommitRef

type CloudCommitRef struct {
	// Hash Commit hash
	Hash string `json:"hash"`
}

CloudCommitRef defines model for CloudCommitRef.

type CloudCommitStatus added in v1.72.1

type CloudCommitStatus struct {
	Description string `json:"description"`
	Key         string `json:"key"`
	Name        string `json:"name"`
	State       string `json:"state"`
	URL         string `json:"url"`
}

CloudCommitStatus A build/CI status on a Cloud commit

type CloudCommitStatusBody added in v1.72.1

type CloudCommitStatusBody struct {
	Description string `json:"description"`
	Key         string `json:"key"`
	Name        string `json:"name"`
	State       string `json:"state"`
	URL         string `json:"url"`
}

CloudCommitStatusBody Request body for reporting a commit status

type CloudContentLine added in v1.72.1

type CloudContentLine struct {
	Line     int                  `json:"line"`
	Segments []CloudSearchSegment `json:"segments"`
}

CloudContentLine A matched line in a code search result

type CloudContentMatch added in v1.72.1

type CloudContentMatch struct {
	Lines []CloudContentLine `json:"lines"`
}

CloudContentMatch defines model for CloudContentMatch.

type CloudCreateBranchRef

type CloudCreateBranchRef struct {
	Branch CloudBranchName `json:"branch"`
}

CloudCreateBranchRef defines model for CloudCreateBranchRef.

type CloudCreatePullRequest

type CloudCreatePullRequest struct {
	Description string                 `json:"description"`
	Destination CloudCreateBranchRef   `json:"destination"`
	Draft       bool                   `json:"draft"`
	Reviewers   *[]CloudCreateReviewer `json:"reviewers,omitempty"`
	Source      CloudCreateBranchRef   `json:"source"`
	Title       string                 `json:"title"`
}

CloudCreatePullRequest Request body for creating a pull request on Bitbucket Cloud

type CloudCreateRepo added in v1.72.1

type CloudCreateRepo struct {
	IsPrivate bool   `json:"is_private"`
	Name      string `json:"name"`
	Scm       string `json:"scm"`
}

CloudCreateRepo Request body for creating a repository on Cloud

type CloudCreateReviewer

type CloudCreateReviewer struct {
	Username string `json:"username"`
}

CloudCreateReviewer Reviewer shape for PR creation. Cloud accepts either username or uuid. bitbottle uses username.

type CloudCreateTag added in v1.72.1

type CloudCreateTag struct {
	Message *string        `json:"message,omitempty"`
	Name    string         `json:"name"`
	Target  CloudTagTarget `json:"target"`
}

CloudCreateTag Request body for creating a Cloud tag

type CloudCreateWebhook added in v1.72.1

type CloudCreateWebhook struct {
	Active      bool     `json:"active"`
	Description string   `json:"description"`
	Events      []string `json:"events"`
	Secret      *string  `json:"secret,omitempty"`
	URL         string   `json:"url"`
}

CloudCreateWebhook Request body for creating a Cloud webhook

type CloudCurrentUser added in v1.72.1

type CloudCurrentUser struct {
	AccountID string `json:"account_id"`
	Nickname  string `json:"nickname"`
}

CloudCurrentUser Minimal current user shape from GET /user

type CloudDashboardPR added in v1.72.1

type CloudDashboardPR struct {
	Author CloudDashboardPRAuthor `json:"author"`
	ID     int                    `json:"id"`
	Links  CloudDashboardPRLinks  `json:"links"`
	Source CloudDashboardPRSource `json:"source"`
	State  string                 `json:"state"`
	Title  string                 `json:"title"`
}

CloudDashboardPR A PR entry from the Cloud dashboard endpoint

type CloudDashboardPRAuthor added in v1.72.1

type CloudDashboardPRAuthor struct {
	DisplayName string `json:"display_name"`
	Nickname    string `json:"nickname"`
}

CloudDashboardPRAuthor defines model for CloudDashboardPRAuthor.

type CloudDashboardPRLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudDashboardPRLinks defines model for CloudDashboardPRLinks.

type CloudDashboardPRRepo added in v1.72.1

type CloudDashboardPRRepo struct {
	FullName string `json:"full_name"`
}

CloudDashboardPRRepo defines model for CloudDashboardPRRepo.

type CloudDashboardPRSource added in v1.72.1

type CloudDashboardPRSource struct {
	Commit     CloudCommitRef       `json:"commit"`
	Repository CloudDashboardPRRepo `json:"repository"`
}

CloudDashboardPRSource defines model for CloudDashboardPRSource.

type CloudDeployKey added in v1.72.1

type CloudDeployKey struct {
	ID       int    `json:"id"`
	Key      string `json:"key"`
	Label    string `json:"label"`
	ReadOnly bool   `json:"read_only"`
}

CloudDeployKey A deploy key on a Cloud repository

type CloudDeployment added in v1.72.1

type CloudDeployment struct {
	// Environment A Bitbucket Cloud deployment environment
	Environment CloudEnvironment       `json:"environment"`
	Release     CloudDeploymentRelease `json:"release"`
	State       CloudDeploymentState   `json:"state"`
	UUID        string                 `json:"uuid"`
}

CloudDeployment A Bitbucket Cloud deployment

type CloudDeploymentRelease added in v1.72.1

type CloudDeploymentRelease struct {
	Commit CloudCommitRef `json:"commit"`
	Name   string         `json:"name"`
	URL    string         `json:"url"`
}

CloudDeploymentRelease defines model for CloudDeploymentRelease.

type CloudDeploymentState added in v1.72.1

type CloudDeploymentState struct {
	Name string `json:"name"`
}

CloudDeploymentState defines model for CloudDeploymentState.

type CloudDestinationRef

type CloudDestinationRef struct {
	Branch CloudBranchName `json:"branch"`
}

CloudDestinationRef A reference to a destination branch

type CloudDiffStatEntry added in v1.72.1

type CloudDiffStatEntry struct {
	LinesAdded   int                `json:"lines_added"`
	LinesRemoved int                `json:"lines_removed"`
	New          *CloudDiffStatPath `json:"new,omitempty"`
	Old          *CloudDiffStatPath `json:"old,omitempty"`
	Status       string             `json:"status"`
}

CloudDiffStatEntry A single file entry in a Cloud diffstat response

type CloudDiffStatPath added in v1.72.1

type CloudDiffStatPath struct {
	Path string `json:"path"`
}

CloudDiffStatPath defines model for CloudDiffStatPath.

type CloudEditRepoInput added in v1.93.2

type CloudEditRepoInput struct {
	Description *string `json:"description,omitempty"`
	ForkPolicy  *string `json:"fork_policy,omitempty"`
	HasIssues   *bool   `json:"has_issues,omitempty"`
	HasWiki     *bool   `json:"has_wiki,omitempty"`
	Language    *string `json:"language,omitempty"`
	Website     *string `json:"website,omitempty"`
}

CloudEditRepoInput Request body for editing a Cloud repository's metadata

type CloudEffectiveDefaultReviewer added in v1.72.1

type CloudEffectiveDefaultReviewer struct {
	User CloudEffectiveDefaultReviewerUser `json:"user"`
}

CloudEffectiveDefaultReviewer An effective default reviewer entry

type CloudEffectiveDefaultReviewerUser added in v1.72.1

type CloudEffectiveDefaultReviewerUser struct {
	AccountID   string `json:"account_id"`
	DisplayName string `json:"display_name"`
	Nickname    string `json:"nickname"`
}

CloudEffectiveDefaultReviewerUser defines model for CloudEffectiveDefaultReviewerUser.

type CloudEnvVariable added in v1.72.1

type CloudEnvVariable struct {
	Key     string `json:"key"`
	Secured bool   `json:"secured"`
	UUID    string `json:"uuid"`
	Value   string `json:"value"`
}

CloudEnvVariable A pipeline environment variable

type CloudEnvironment added in v1.72.1

type CloudEnvironment struct {
	EnvironmentType CloudEnvironmentType `json:"environment_type"`
	Name            string               `json:"name"`
	Rank            int                  `json:"rank"`
	UUID            string               `json:"uuid"`
}

CloudEnvironment A Bitbucket Cloud deployment environment

type CloudEnvironmentType added in v1.72.1

type CloudEnvironmentType struct {
	Name string `json:"name"`
}

CloudEnvironmentType defines model for CloudEnvironmentType.

type CloudForkBody added in v1.72.1

type CloudForkBody struct {
	Name      *string            `json:"name,omitempty"`
	Workspace CloudForkWorkspace `json:"workspace"`
}

CloudForkBody Request body for forking a repository on Cloud

type CloudForkWorkspace added in v1.72.1

type CloudForkWorkspace struct {
	Slug string `json:"slug"`
}

CloudForkWorkspace defines model for CloudForkWorkspace.

type CloudHTMLLink struct {
	Href string `json:"href"`
}

CloudHTMLLink defines model for CloudHTMLLink.

type CloudInline added in v1.72.1

type CloudInline struct {
	From      *int   `json:"from,omitempty"`
	Path      string `json:"path"`
	StartFrom *int   `json:"start_from,omitempty"`
	StartTo   *int   `json:"start_to,omitempty"`
	To        *int   `json:"to,omitempty"`
}

CloudInline Inline anchor for a PR comment

type CloudIssue added in v1.72.1

type CloudIssue struct {
	// Assignee A user referenced in an issue (reporter/assignee)
	Assignee  *CloudIssueUser   `json:"assignee,omitempty"`
	Content   CloudIssueContent `json:"content"`
	CreatedOn string            `json:"created_on"`
	ID        int               `json:"id"`
	Kind      string            `json:"kind"`
	Links     CloudIssueLinks   `json:"links"`
	Priority  string            `json:"priority"`

	// Reporter A user referenced in an issue (reporter/assignee)
	Reporter  *CloudIssueUser `json:"reporter,omitempty"`
	State     string          `json:"state"`
	Title     string          `json:"title"`
	UpdatedOn string          `json:"updated_on"`
}

CloudIssue A Bitbucket Cloud issue

type CloudIssueComment added in v1.72.1

type CloudIssueComment struct {
	// Author A user referenced in an issue (reporter/assignee)
	Author    *CloudIssueUser   `json:"author,omitempty"`
	Content   CloudIssueContent `json:"content"`
	CreatedOn string            `json:"created_on"`
	ID        int               `json:"id"`
	UpdatedOn string            `json:"updated_on"`
}

CloudIssueComment A comment on a Bitbucket Cloud issue

type CloudIssueContent added in v1.72.1

type CloudIssueContent struct {
	Raw string `json:"raw"`
}

CloudIssueContent defines model for CloudIssueContent.

type CloudIssueLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudIssueLinks defines model for CloudIssueLinks.

type CloudIssueUser added in v1.72.1

type CloudIssueUser struct {
	DisplayName string `json:"display_name"`
	Username    string `json:"username"`
}

CloudIssueUser A user referenced in an issue (reporter/assignee)

type CloudMergePullRequest

type CloudMergePullRequest struct {
	// MergeStrategy Merge strategy override
	MergeStrategy *string `json:"merge_strategy,omitempty"`
}

CloudMergePullRequest Request body for merging a pull request on Bitbucket Cloud

type CloudPRComment added in v1.72.1

type CloudPRComment struct {
	Content   CloudPRCommentContent `json:"content"`
	CreatedOn time.Time             `json:"created_on"`
	ID        int                   `json:"id"`

	// Inline Inline anchor for a PR comment
	Inline     *CloudInline       `json:"inline,omitempty"`
	Parent     *CloudParentRef    `json:"parent,omitempty"`
	Resolution *CloudResolution   `json:"resolution,omitempty"`
	UpdatedOn  time.Time          `json:"updated_on"`
	User       CloudPRCommentUser `json:"user"`
}

CloudPRComment A comment on a Bitbucket Cloud pull request

type CloudPRCommentContent added in v1.72.1

type CloudPRCommentContent struct {
	Raw string `json:"raw"`
}

CloudPRCommentContent defines model for CloudPRCommentContent.

type CloudPRCommentUser added in v1.72.1

type CloudPRCommentUser struct {
	AccountID   string `json:"account_id"`
	DisplayName string `json:"display_name"`
	Nickname    string `json:"nickname"`
}

CloudPRCommentUser defines model for CloudPRCommentUser.

type CloudPRParticipant added in v1.72.1

type CloudPRParticipant struct {
	Approved bool   `json:"approved"`
	Role     string `json:"role"`
	State    string `json:"state"`

	// User A Bitbucket Cloud user reference
	User CloudUser `json:"user"`
}

CloudPRParticipant A participant on a Cloud pull request

type CloudParentRef added in v1.72.1

type CloudParentRef struct {
	ID int `json:"id"`
}

CloudParentRef defines model for CloudParentRef.

type CloudPipeline added in v1.72.1

type CloudPipeline struct {
	BuildNumber       int                 `json:"build_number"`
	CreatedOn         string              `json:"created_on"`
	DurationInSeconds int                 `json:"duration_in_seconds"`
	Links             CloudPipelineLinks  `json:"links"`
	State             CloudPipelineState  `json:"state"`
	Target            CloudPipelineTarget `json:"target"`
	UUID              string              `json:"uuid"`
}

CloudPipeline A Bitbucket Cloud pipeline run

type CloudPipelineCache added in v1.72.1

type CloudPipelineCache struct {
	CreatedOn     string `json:"created_on"`
	FileSizeBytes int64  `json:"file_size_bytes"`
	Name          string `json:"name"`
	Path          string `json:"path"`
	UUID          string `json:"uuid"`
}

CloudPipelineCache A pipeline cache entry

type CloudPipelineLinks struct {
	Self CloudPipelineSelfLink `json:"self"`
}

CloudPipelineLinks defines model for CloudPipelineLinks.

type CloudPipelineSchedule added in v1.72.1

type CloudPipelineSchedule struct {
	CronExpression string `json:"cron_expression"`
	Enabled        bool   `json:"enabled"`

	// Target Target for a pipeline schedule
	Target CloudScheduleTarget `json:"target"`
	UUID   string              `json:"uuid"`
}

CloudPipelineSchedule A pipeline schedule entry

type CloudPipelineScheduleCreate added in v1.72.1

type CloudPipelineScheduleCreate struct {
	CronExpression string `json:"cron_expression"`
	Enabled        bool   `json:"enabled"`

	// Target Target for a pipeline schedule
	Target CloudScheduleTarget `json:"target"`
}

CloudPipelineScheduleCreate Request body for creating a pipeline schedule

type CloudPipelineSelfLink struct {
	Href string `json:"href"`
}

CloudPipelineSelfLink defines model for CloudPipelineSelfLink.

type CloudPipelineState added in v1.72.1

type CloudPipelineState struct {
	Name   string                   `json:"name"`
	Result CloudPipelineStateResult `json:"result"`
}

CloudPipelineState defines model for CloudPipelineState.

type CloudPipelineStateResult added in v1.72.1

type CloudPipelineStateResult struct {
	Name string `json:"name"`
}

CloudPipelineStateResult defines model for CloudPipelineStateResult.

type CloudPipelineStep added in v1.72.1

type CloudPipelineStep struct {
	DurationInSeconds int                    `json:"duration_in_seconds"`
	Name              string                 `json:"name"`
	State             CloudPipelineStepState `json:"state"`
	UUID              string                 `json:"uuid"`
}

CloudPipelineStep A step in a Bitbucket Cloud pipeline run

type CloudPipelineStepResult added in v1.72.1

type CloudPipelineStepResult struct {
	Name string `json:"name"`
}

CloudPipelineStepResult defines model for CloudPipelineStepResult.

type CloudPipelineStepState added in v1.72.1

type CloudPipelineStepState struct {
	Name   string                  `json:"name"`
	Result CloudPipelineStepResult `json:"result"`
}

CloudPipelineStepState defines model for CloudPipelineStepState.

type CloudPipelineTarget added in v1.72.1

type CloudPipelineTarget struct {
	RefName string `json:"ref_name"`
	RefType string `json:"ref_type"`
}

CloudPipelineTarget defines model for CloudPipelineTarget.

type CloudPipelineVariable added in v1.72.1

type CloudPipelineVariable struct {
	Key     string `json:"key"`
	Secured bool   `json:"secured"`
	UUID    string `json:"uuid"`
	Value   string `json:"value"`
}

CloudPipelineVariable A repository-level pipeline variable

type CloudProject added in v1.72.1

type CloudProject struct {
	Key   string            `json:"key"`
	Links CloudProjectLinks `json:"links"`
	Name  string            `json:"name"`
	UUID  string            `json:"uuid"`
}

CloudProject A project in a Cloud workspace

type CloudProjectLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudProjectLinks defines model for CloudProjectLinks.

type CloudPullRequest

type CloudPullRequest struct {
	// Author A Bitbucket Cloud user reference
	Author CloudUser `json:"author"`

	// AutoMerge Auto-merge configuration for a Cloud pull request
	AutoMerge *CloudAutoMerge `json:"auto_merge,omitempty"`

	// Description Pull request description
	Description string `json:"description"`

	// Destination A reference to a destination branch
	Destination CloudDestinationRef `json:"destination"`

	// Draft Whether the pull request is a draft
	Draft bool `json:"draft"`

	// ID Pull request ID
	ID        int                        `json:"id"`
	Links     CloudPullRequestLinks      `json:"links"`
	Reviewers []CloudPullRequestReviewer `json:"reviewers"`

	// Source A reference to a branch and its latest commit
	Source CloudBranchRef `json:"source"`

	// State Pull request state
	State string `json:"state"`

	// Title Pull request title
	Title string `json:"title"`
}

CloudPullRequest A Bitbucket Cloud pull request

type CloudPullRequestLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudPullRequestLinks defines model for CloudPullRequestLinks.

type CloudPullRequestReviewer

type CloudPullRequestReviewer struct {
	// AccountID Atlassian account ID
	AccountID string `json:"account_id"`
}

CloudPullRequestReviewer defines model for CloudPullRequestReviewer.

type CloudRepo added in v1.72.1

type CloudRepo struct {
	Description string         `json:"description"`
	FullName    string         `json:"full_name"`
	IsPrivate   bool           `json:"is_private"`
	Links       CloudRepoLinks `json:"links"`
	Name        string         `json:"name"`
	Scm         string         `json:"scm"`
	Slug        string         `json:"slug"`
}

CloudRepo A Bitbucket Cloud repository

type CloudRepoLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudRepoLinks defines model for CloudRepoLinks.

type CloudResolution added in v1.72.1

type CloudResolution struct {
	Type string `json:"type"`
}

CloudResolution defines model for CloudResolution.

type CloudRunPipelineInput added in v1.72.1

type CloudRunPipelineInput struct {
	Target CloudRunPipelineTarget `json:"target"`
}

CloudRunPipelineInput Request body for running a pipeline

type CloudRunPipelineTarget added in v1.72.1

type CloudRunPipelineTarget struct {
	RefName string `json:"ref_name"`
	RefType string `json:"ref_type"`
	Type    string `json:"type"`
}

CloudRunPipelineTarget defines model for CloudRunPipelineTarget.

type CloudSSHKey added in v1.72.1

type CloudSSHKey struct {
	ID    int    `json:"id"`
	Key   string `json:"key"`
	Label string `json:"label"`
}

CloudSSHKey A Cloud user SSH key

type CloudScheduleTarget added in v1.72.1

type CloudScheduleTarget struct {
	Branch  string `json:"branch"`
	RefName string `json:"ref_name"`
	RefType string `json:"ref_type"`
	Type    string `json:"type"`
}

CloudScheduleTarget Target for a pipeline schedule

type CloudSearchSegment added in v1.72.1

type CloudSearchSegment struct {
	Match bool   `json:"match"`
	Text  string `json:"text"`
}

CloudSearchSegment A text segment in a code search result

type CloudSrcEntry added in v1.72.1

type CloudSrcEntry struct {
	Commit CloudSrcEntryCommit `json:"commit"`
	Path   string              `json:"path"`
	Size   int64               `json:"size"`
	Type   string              `json:"type"`
}

CloudSrcEntry A directory listing entry from Cloud's /src endpoint

type CloudSrcEntryCommit added in v1.72.1

type CloudSrcEntryCommit struct {
	Hash string `json:"hash"`
}

CloudSrcEntryCommit defines model for CloudSrcEntryCommit.

type CloudTag added in v1.72.1

type CloudTag struct {
	Links   CloudTagLinks  `json:"links"`
	Message string         `json:"message"`
	Name    string         `json:"name"`
	Target  CloudTagTarget `json:"target"`
}

CloudTag A Bitbucket Cloud tag

type CloudTagLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudTagLinks defines model for CloudTagLinks.

type CloudTagTarget added in v1.72.1

type CloudTagTarget struct {
	Hash string `json:"hash"`
}

CloudTagTarget defines model for CloudTagTarget.

type CloudTransferBody added in v1.72.1

type CloudTransferBody struct {
	NewOwner CloudTransferOwner `json:"new_owner"`
}

CloudTransferBody Request body for transferring a Cloud repository

type CloudTransferOwner added in v1.72.1

type CloudTransferOwner struct {
	Username string `json:"username"`
}

CloudTransferOwner defines model for CloudTransferOwner.

type CloudTriggerBody added in v1.72.1

type CloudTriggerBody struct {
	// Target Target for a pipeline trigger
	Target    CloudTriggerTarget     `json:"target"`
	Variables *[]CloudTriggerVarItem `json:"variables,omitempty"`
}

CloudTriggerBody Request body for triggering a pipeline

type CloudTriggerResponse added in v1.72.1

type CloudTriggerResponse struct {
	Links CloudTriggerResponseLinks `json:"links"`
	State CloudTriggerResponseState `json:"state"`
	UUID  string                    `json:"uuid"`
}

CloudTriggerResponse Response from triggering a pipeline

type CloudTriggerResponseLinks struct {
	Self *CloudTriggerResponseSelfLink `json:"self,omitempty"`
}

CloudTriggerResponseLinks defines model for CloudTriggerResponseLinks.

type CloudTriggerResponseSelfLink struct {
	Href string `json:"href"`
}

CloudTriggerResponseSelfLink defines model for CloudTriggerResponseSelfLink.

type CloudTriggerResponseState added in v1.72.1

type CloudTriggerResponseState struct {
	Name string `json:"name"`
}

CloudTriggerResponseState defines model for CloudTriggerResponseState.

type CloudTriggerTarget added in v1.72.1

type CloudTriggerTarget struct {
	RefName string `json:"ref_name"`
	RefType string `json:"ref_type"`
	Type    string `json:"type"`
}

CloudTriggerTarget Target for a pipeline trigger

type CloudTriggerVarItem added in v1.72.1

type CloudTriggerVarItem struct {
	Key     string `json:"key"`
	Secured bool   `json:"secured"`
	Value   string `json:"value"`
}

CloudTriggerVarItem A variable passed to a triggered pipeline

type CloudUser

type CloudUser struct {
	// AccountID Atlassian account ID (UUID)
	AccountID string `json:"account_id"`

	// DisplayName Human-readable display name
	DisplayName string `json:"display_name"`

	// Nickname User's nickname / slug
	Nickname string `json:"nickname"`
}

CloudUser A Bitbucket Cloud user reference

type CloudWebhook added in v1.72.1

type CloudWebhook struct {
	Active bool     `json:"active"`
	Events []string `json:"events"`
	URL    string   `json:"url"`
	UUID   string   `json:"uuid"`
}

CloudWebhook A Bitbucket Cloud webhook

type CloudWorkspace added in v1.72.1

type CloudWorkspace struct {
	Links CloudWorkspaceLinks `json:"links"`
	Name  string              `json:"name"`
	Slug  string              `json:"slug"`
	UUID  string              `json:"uuid"`
}

CloudWorkspace A Bitbucket Cloud workspace

type CloudWorkspaceLinks struct {
	HTML CloudHTMLLink `json:"html"`
}

CloudWorkspaceLinks defines model for CloudWorkspaceLinks.

type CloudWorkspaceMember added in v1.72.1

type CloudWorkspaceMember struct {
	// User A Bitbucket Cloud user reference
	User      CloudUser                     `json:"user"`
	Workspace CloudWorkspaceMemberWorkspace `json:"workspace"`
}

CloudWorkspaceMember A member of a Cloud workspace

type CloudWorkspaceMemberWorkspace added in v1.72.1

type CloudWorkspaceMemberWorkspace struct {
	Slug string `json:"slug"`
}

CloudWorkspaceMemberWorkspace defines model for CloudWorkspaceMemberWorkspace.

Jump to

Keyboard shortcuts

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