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 ¶
- type RestActivity
- type RestActivityUser
- type RestAddCommitComment
- type RestAddDeployKeyBody
- type RestAddPRComment
- type RestAddReaction
- type RestAddReactionEmoticon
- type RestAnnotation
- type RestAnnotationsPage
- type RestApplicationProperties
- type RestAutoMerge
- type RestAutoMergeRequest
- type RestBranch
- type RestBrowseEntry
- type RestBrowseEntryPath
- type RestCommentAnchor
- type RestCommentAuthor
- type RestCommentBody
- type RestCommit
- type RestCommitAuthor
- type RestCommitChange
- type RestCommitChangePath
- type RestCommitComment
- type RestCommitCommentAuthor
- type RestCommitStatus
- type RestCondition
- type RestConditionMatcher
- type RestConditionMatcherType
- type RestCreateConditionBody
- type RestCreateMatcher
- type RestCreateMatcherType
- type RestCreatePullRequestRequest
- type RestCreateRepoInput
- type RestCreateReviewer
- type RestCreateTag
- type RestCreateWebhook
- type RestDefaultReviewerUser
- type RestDeployKey
- type RestDiff
- type RestDiffEnvelope
- type RestDiffHunk
- type RestDiffLine
- type RestDiffPath
- type RestDiffResponse
- type RestDiffSegment
- type RestEditCommitComment
- type RestEditPRComment
- type RestEditRepoInput
- type RestInboxPR
- type RestInboxPRAuthor
- type RestInboxPRAuthorUser
- type RestInboxPRFromRef
- type RestInboxPRLinks
- type RestInboxPRProject
- type RestInboxPRRepo
- type RestInboxPRSelfLink
- type RestInboxPRToRef
- type RestLoggingConfig
- type RestMergeCheck
- type RestMergePullRequestRequest
- type RestPRActivity
- type RestPRComment
- type RestPRParticipant
- type RestPRParticipantUser
- type RestParentRef
- type RestPermGroup
- type RestPermGroupInner
- type RestPermUser
- type RestPermUserInner
- type RestPullRequest
- type RestPullRequestAuthor
- type RestPullRequestLinks
- type RestPullRequestReviewer
- type RestPullRequestReviewerInput
- type RestReaction
- type RestReactionEmoticon
- type RestReactionUser
- type RestReactionsPage
- type RestRef
- type RestRefInput
- type RestReport
- type RestReportDatum
- type RestReportUpsert
- type RestRepository
- type RestRepositoryLinks
- type RestRepositoryProject
- type RestRepositorySelfLink
- type RestRestriction
- type RestRestrictionCreate
- type RestRestrictionCreateMatcher
- type RestRestrictionCreateMatcherKind
- type RestRestrictionMatcher
- type RestRestrictionMatcherType
- type RestRestrictionUser
- type RestReviewerPR
- type RestReviewerRef
- type RestReviewerUser
- type RestSSHKey
- type RestSSHKeyInput
- type RestSelfLink
- type RestServerPRComment
- type RestSetCommentState
- type RestSuggestionApplyResponse
- type RestTag
- type RestTransferBody
- type RestTransferProject
- type RestUserRef
- type RestWatcher
- type RestWebhook
- type RestWebhookConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestActivity ¶ added in v1.72.1
type RestActivity struct {
Action string `json:"action"`
CreatedDate int64 `json:"createdDate"`
User RestActivityUser `json:"user"`
}
RestActivity A Server PR activity event
type RestActivityUser ¶ added in v1.72.1
RestActivityUser defines model for RestActivityUser.
type RestAddCommitComment ¶ added in v1.72.1
type RestAddCommitComment struct {
Text string `json:"text"`
}
RestAddCommitComment Request body for adding a commit comment
type RestAddDeployKeyBody ¶ added in v1.72.1
type RestAddDeployKeyBody struct {
Key RestSSHKeyInput `json:"key"`
}
RestAddDeployKeyBody Request body for adding a deploy key on Server
type RestAddPRComment ¶ added in v1.72.1
type RestAddPRComment struct {
// Anchor Where an inline comment is anchored in the diff
Anchor *RestCommentAnchor `json:"anchor,omitempty"`
Parent *RestParentRef `json:"parent,omitempty"`
Severity *string `json:"severity,omitempty"`
Text string `json:"text"`
}
RestAddPRComment Request body for adding a PR comment
type RestAddReaction ¶ added in v1.72.1
type RestAddReaction struct {
Emoticon RestAddReactionEmoticon `json:"emoticon"`
}
RestAddReaction Request body for adding a reaction
type RestAddReactionEmoticon ¶ added in v1.72.1
type RestAddReactionEmoticon struct {
Value string `json:"value"`
}
RestAddReactionEmoticon defines model for RestAddReactionEmoticon.
type RestAnnotation ¶ added in v1.72.1
type RestAnnotation struct {
ExternalID string `json:"externalId"`
Line int `json:"line"`
Link string `json:"link"`
Message string `json:"message"`
Path string `json:"path"`
Severity string `json:"severity"`
Type string `json:"type"`
}
RestAnnotation A Code Insights annotation
type RestAnnotationsPage ¶ added in v1.72.1
type RestAnnotationsPage struct {
Annotations []RestAnnotation `json:"annotations"`
}
RestAnnotationsPage Response page for annotations
type RestApplicationProperties ¶ added in v1.72.1
type RestApplicationProperties struct {
Version string `json:"version"`
}
RestApplicationProperties Server application properties response
type RestAutoMerge ¶
type RestAutoMerge struct {
// MergeStrategy Merge strategy (merge, squash, fast-forward)
MergeStrategy string `json:"mergeStrategy"`
}
RestAutoMerge Auto-merge configuration for a pull request on Bitbucket Server/DC
type RestAutoMergeRequest ¶
type RestAutoMergeRequest struct {
// MergeStrategy Merge strategy to use when auto-merging
MergeStrategy string `json:"mergeStrategy"`
}
RestAutoMergeRequest Request body for enabling auto-merge on a pull request
type RestBranch ¶ added in v1.72.1
type RestBranch struct {
DisplayID string `json:"displayId"`
ID string `json:"id"`
IsDefault bool `json:"isDefault"`
LatestCommit string `json:"latestCommit"`
}
RestBranch A Bitbucket Server branch
type RestBrowseEntry ¶ added in v1.72.1
type RestBrowseEntry struct {
ContentID string `json:"contentId"`
LatestCommit string `json:"latestCommit"`
Path RestBrowseEntryPath `json:"path"`
Size int64 `json:"size"`
Type string `json:"type"`
}
RestBrowseEntry An entry in a Server browse listing
type RestBrowseEntryPath ¶ added in v1.72.1
type RestBrowseEntryPath struct {
ToString string `json:"toString"`
}
RestBrowseEntryPath defines model for RestBrowseEntryPath.
type RestCommentAnchor ¶ added in v1.72.1
type RestCommentAnchor struct {
FileType string `json:"fileType"`
FromHash string `json:"fromHash"`
Line int `json:"line"`
LineType string `json:"lineType"`
Path string `json:"path"`
SrcPath string `json:"srcPath"`
ToHash string `json:"toHash"`
}
RestCommentAnchor Where an inline comment is anchored in the diff
type RestCommentAuthor ¶ added in v1.72.1
RestCommentAuthor defines model for RestCommentAuthor.
type RestCommentBody ¶ added in v1.72.1
RestCommentBody Minimal comment shape for fetching a single comment
type RestCommit ¶ added in v1.72.1
type RestCommit struct {
Author RestCommitAuthor `json:"author"`
AuthorTimestamp int64 `json:"authorTimestamp"`
ID string `json:"id"`
Message string `json:"message"`
}
RestCommit A Bitbucket Server commit
type RestCommitAuthor ¶ added in v1.72.1
type RestCommitAuthor struct {
EmailAddress string `json:"emailAddress"`
Name string `json:"name"`
}
RestCommitAuthor defines model for RestCommitAuthor.
type RestCommitChange ¶ added in v1.72.1
type RestCommitChange struct {
Path RestCommitChangePath `json:"path"`
Type string `json:"type"`
}
RestCommitChange A file change in a Server commit
type RestCommitChangePath ¶ added in v1.72.1
type RestCommitChangePath struct {
ToString string `json:"toString"`
}
RestCommitChangePath defines model for RestCommitChangePath.
type RestCommitComment ¶ added in v1.72.1
type RestCommitComment struct {
Author RestCommitCommentAuthor `json:"author"`
CreatedDate int64 `json:"createdDate"`
ID int `json:"id"`
Text string `json:"text"`
UpdatedDate int64 `json:"updatedDate"`
Version int `json:"version"`
}
RestCommitComment A comment on a Bitbucket Server commit
type RestCommitCommentAuthor ¶ added in v1.72.1
type RestCommitCommentAuthor struct {
DisplayName string `json:"displayName"`
Slug string `json:"slug"`
}
RestCommitCommentAuthor defines model for RestCommitCommentAuthor.
type RestCommitStatus ¶ added in v1.72.1
type RestCommitStatus struct {
Description string `json:"description"`
Key string `json:"key"`
Name string `json:"name"`
State string `json:"state"`
URL string `json:"url"`
}
RestCommitStatus A build/CI status on a Server commit
type RestCondition ¶ added in v1.72.1
type RestCondition struct {
ID int `json:"id"`
RequiredApprovals int `json:"requiredApprovals"`
Reviewers []RestReviewerRef `json:"reviewers"`
// SourceMatcher A source/target matcher in a reviewer condition
SourceMatcher RestConditionMatcher `json:"sourceMatcher"`
// TargetMatcher A source/target matcher in a reviewer condition
TargetMatcher RestConditionMatcher `json:"targetMatcher"`
}
RestCondition A reviewer group condition
type RestConditionMatcher ¶ added in v1.72.1
type RestConditionMatcher struct {
DisplayID string `json:"displayId"`
ID string `json:"id"`
Type RestConditionMatcherType `json:"type"`
}
RestConditionMatcher A source/target matcher in a reviewer condition
type RestConditionMatcherType ¶ added in v1.72.1
type RestConditionMatcherType struct {
ID string `json:"id"`
}
RestConditionMatcherType defines model for RestConditionMatcherType.
type RestCreateConditionBody ¶ added in v1.72.1
type RestCreateConditionBody struct {
RequiredApprovals int `json:"requiredApprovals"`
Reviewers []RestCreateReviewer `json:"reviewers"`
SourceMatcher RestCreateMatcher `json:"sourceMatcher"`
TargetMatcher RestCreateMatcher `json:"targetMatcher"`
}
RestCreateConditionBody Request body for creating a reviewer condition
type RestCreateMatcher ¶ added in v1.72.1
type RestCreateMatcher struct {
ID string `json:"id"`
Type RestCreateMatcherType `json:"type"`
}
RestCreateMatcher defines model for RestCreateMatcher.
type RestCreateMatcherType ¶ added in v1.72.1
type RestCreateMatcherType struct {
ID string `json:"id"`
}
RestCreateMatcherType defines model for RestCreateMatcherType.
type RestCreatePullRequestRequest ¶
type RestCreatePullRequestRequest struct {
Description string `json:"description"`
Draft bool `json:"draft"`
FromRef RestRefInput `json:"fromRef"`
Reviewers *[]RestPullRequestReviewerInput `json:"reviewers,omitempty"`
Title string `json:"title"`
ToRef RestRefInput `json:"toRef"`
}
RestCreatePullRequestRequest Request body for creating a pull request
type RestCreateRepoInput ¶ added in v1.72.1
type RestCreateRepoInput struct {
Description string `json:"description"`
Name string `json:"name"`
Public bool `json:"public"`
ScmID string `json:"scmId"`
}
RestCreateRepoInput Request body for creating a Server repository
type RestCreateReviewer ¶ added in v1.72.1
type RestCreateReviewer struct {
Slug string `json:"slug"`
}
RestCreateReviewer defines model for RestCreateReviewer.
type RestCreateTag ¶ added in v1.72.1
type RestCreateTag struct {
Message string `json:"message"`
Name string `json:"name"`
StartPoint string `json:"startPoint"`
}
RestCreateTag Request body for creating a Server tag
type RestCreateWebhook ¶ added in v1.72.1
type RestCreateWebhook struct {
Active bool `json:"active"`
Configuration *RestWebhookConfig `json:"configuration,omitempty"`
Events []string `json:"events"`
Name string `json:"name"`
URL string `json:"url"`
}
RestCreateWebhook Request body for creating a Server webhook
type RestDefaultReviewerUser ¶ added in v1.72.1
type RestDefaultReviewerUser struct {
DisplayName string `json:"displayName"`
EmailAddress string `json:"emailAddress"`
Slug string `json:"slug"`
}
RestDefaultReviewerUser User shape from the default-reviewers CRUD endpoint
type RestDeployKey ¶ added in v1.72.1
type RestDeployKey struct {
ID int `json:"id"`
// Key Nested SSH key object in Server deploy key response
Key RestSSHKey `json:"key"`
Label string `json:"label"`
}
RestDeployKey A Server deploy key
type RestDiff ¶ added in v1.72.1
type RestDiff struct {
// Destination A path reference in a Server diff
Destination *RestDiffPath `json:"destination,omitempty"`
Hunks []RestDiffHunk `json:"hunks"`
// Source A path reference in a Server diff
Source *RestDiffPath `json:"source,omitempty"`
}
RestDiff defines model for RestDiff.
type RestDiffEnvelope ¶ added in v1.72.1
RestDiffEnvelope Response from the Server diff endpoint for inline comments
type RestDiffHunk ¶ added in v1.72.1
type RestDiffHunk struct {
DestinationLine int `json:"destinationLine"`
DestinationSpan int `json:"destinationSpan"`
Segments []RestDiffSegment `json:"segments"`
SourceLine int `json:"sourceLine"`
SourceSpan int `json:"sourceSpan"`
}
RestDiffHunk defines model for RestDiffHunk.
type RestDiffLine ¶ added in v1.72.1
type RestDiffLine struct {
Destination *int `json:"destination,omitempty"`
Line string `json:"line"`
Source *int `json:"source,omitempty"`
Truncated *bool `json:"truncated,omitempty"`
}
RestDiffLine defines model for RestDiffLine.
type RestDiffPath ¶ added in v1.72.1
type RestDiffPath struct {
Components *[]string `json:"components,omitempty"`
Extension *string `json:"extension,omitempty"`
Name string `json:"name"`
Parent *string `json:"parent,omitempty"`
ToString string `json:"toString"`
}
RestDiffPath A path reference in a Server diff
type RestDiffResponse ¶ added in v1.72.1
type RestDiffResponse struct {
Diffs []RestDiff `json:"diffs"`
}
RestDiffResponse Server diff endpoint response
type RestDiffSegment ¶ added in v1.72.1
type RestDiffSegment struct {
Lines []RestDiffLine `json:"lines"`
Type string `json:"type"`
}
RestDiffSegment defines model for RestDiffSegment.
type RestEditCommitComment ¶ added in v1.72.1
RestEditCommitComment Request body for editing a commit comment
type RestEditPRComment ¶ added in v1.72.1
RestEditPRComment Request body for editing a PR comment
type RestEditRepoInput ¶ added in v1.93.2
type RestEditRepoInput struct {
Description *string `json:"description,omitempty"`
}
RestEditRepoInput Request body for editing a Server repository's metadata
type RestInboxPR ¶ added in v1.72.1
type RestInboxPR struct {
Author RestInboxPRAuthor `json:"author"`
FromRef RestInboxPRFromRef `json:"fromRef"`
ID int `json:"id"`
Links RestInboxPRLinks `json:"links"`
State string `json:"state"`
Title string `json:"title"`
ToRef RestInboxPRToRef `json:"toRef"`
}
RestInboxPR A PR from the Server inbox endpoint
type RestInboxPRAuthor ¶ added in v1.72.1
type RestInboxPRAuthor struct {
User RestInboxPRAuthorUser `json:"user"`
}
RestInboxPRAuthor defines model for RestInboxPRAuthor.
type RestInboxPRAuthorUser ¶ added in v1.72.1
type RestInboxPRAuthorUser struct {
DisplayName string `json:"displayName"`
Slug string `json:"slug"`
}
RestInboxPRAuthorUser defines model for RestInboxPRAuthorUser.
type RestInboxPRFromRef ¶ added in v1.72.1
type RestInboxPRFromRef struct {
LatestCommit string `json:"latestCommit"`
}
RestInboxPRFromRef defines model for RestInboxPRFromRef.
type RestInboxPRLinks ¶ added in v1.72.1
type RestInboxPRLinks struct {
Self []RestInboxPRSelfLink `json:"self"`
}
RestInboxPRLinks defines model for RestInboxPRLinks.
type RestInboxPRProject ¶ added in v1.72.1
type RestInboxPRProject struct {
Key string `json:"key"`
}
RestInboxPRProject defines model for RestInboxPRProject.
type RestInboxPRRepo ¶ added in v1.72.1
type RestInboxPRRepo struct {
Project RestInboxPRProject `json:"project"`
Slug string `json:"slug"`
}
RestInboxPRRepo defines model for RestInboxPRRepo.
type RestInboxPRSelfLink ¶ added in v1.72.1
type RestInboxPRSelfLink struct {
Href string `json:"href"`
}
RestInboxPRSelfLink defines model for RestInboxPRSelfLink.
type RestInboxPRToRef ¶ added in v1.72.1
type RestInboxPRToRef struct {
Repository RestInboxPRRepo `json:"repository"`
}
RestInboxPRToRef defines model for RestInboxPRToRef.
type RestLoggingConfig ¶ added in v1.72.1
type RestLoggingConfig struct {
AsyncLogging bool `json:"asyncLogging"`
LogLevel string `json:"logLevel"`
}
RestLoggingConfig Bitbucket Server logging configuration
type RestMergeCheck ¶ added in v1.72.1
type RestMergeCheck struct {
Key string `json:"key"`
MinSeverity string `json:"minSeverity"`
MustPass bool `json:"mustPass"`
ReportKey string `json:"reportKey"`
}
RestMergeCheck A Code Insights merge check configuration
type RestMergePullRequestRequest ¶
type RestMergePullRequestRequest struct {
// Message Custom merge commit message
Message *string `json:"message,omitempty"`
// Strategy Merge strategy
Strategy *string `json:"strategy,omitempty"`
// Version Current PR version for optimistic concurrency
Version int `json:"version"`
}
RestMergePullRequestRequest Request body for merging a pull request
type RestPRActivity ¶ added in v1.72.1
type RestPRActivity struct {
Action string `json:"action"`
// Comment A comment on a Server pull request (with all fields required for adapter use)
Comment RestServerPRComment `json:"comment"`
// CommentAnchor Where an inline comment is anchored in the diff
CommentAnchor *RestCommentAnchor `json:"commentAnchor,omitempty"`
}
RestPRActivity Wrapper for comment activity in a Server PR
type RestPRComment ¶ added in v1.72.1
type RestPRComment struct {
Author *RestCommentAuthor `json:"author,omitempty"`
Comments *[]RestPRComment `json:"comments,omitempty"`
CreatedDate *int64 `json:"createdDate,omitempty"`
ID *int `json:"id,omitempty"`
Severity *string `json:"severity,omitempty"`
State *string `json:"state,omitempty"`
Text *string `json:"text,omitempty"`
UpdatedDate *int64 `json:"updatedDate,omitempty"`
Version *int `json:"version,omitempty"`
}
RestPRComment A comment on a Server pull request
type RestPRParticipant ¶ added in v1.72.1
type RestPRParticipant struct {
Approved bool `json:"approved"`
Role string `json:"role"`
Status string `json:"status"`
User RestPRParticipantUser `json:"user"`
}
RestPRParticipant A participant on a Server pull request
type RestPRParticipantUser ¶ added in v1.72.1
type RestPRParticipantUser struct {
DisplayName string `json:"displayName"`
Slug string `json:"slug"`
}
RestPRParticipantUser defines model for RestPRParticipantUser.
type RestParentRef ¶ added in v1.72.1
type RestParentRef struct {
ID int `json:"id"`
}
RestParentRef defines model for RestParentRef.
type RestPermGroup ¶ added in v1.72.1
type RestPermGroup struct {
Group RestPermGroupInner `json:"group"`
Permission string `json:"permission"`
}
RestPermGroup A group permission grant
type RestPermGroupInner ¶ added in v1.72.1
type RestPermGroupInner struct {
Name string `json:"name"`
}
RestPermGroupInner defines model for RestPermGroupInner.
type RestPermUser ¶ added in v1.72.1
type RestPermUser struct {
Permission string `json:"permission"`
User RestPermUserInner `json:"user"`
}
RestPermUser A user permission grant
type RestPermUserInner ¶ added in v1.72.1
RestPermUserInner defines model for RestPermUserInner.
type RestPullRequest ¶
type RestPullRequest struct {
Author RestPullRequestAuthor `json:"author"`
// AutoMerge Auto-merge configuration for a pull request on Bitbucket Server/DC
AutoMerge *RestAutoMerge `json:"autoMerge,omitempty"`
// Description Pull request description
Description string `json:"description"`
// Draft Whether the pull request is a draft
Draft bool `json:"draft"`
FromRef RestRef `json:"fromRef"`
// ID Pull request ID
ID int `json:"id"`
Links RestPullRequestLinks `json:"links"`
Reviewers []RestPullRequestReviewer `json:"reviewers"`
// State Pull request state (OPEN, MERGED, DECLINED)
State string `json:"state"`
// Title Pull request title
Title string `json:"title"`
ToRef RestRef `json:"toRef"`
// Version Optimistic concurrency version
Version int `json:"version"`
}
RestPullRequest A Bitbucket Data Center pull request
type RestPullRequestAuthor ¶
type RestPullRequestAuthor struct {
User RestUserRef `json:"user"`
}
RestPullRequestAuthor defines model for RestPullRequestAuthor.
type RestPullRequestLinks ¶
type RestPullRequestLinks struct {
Self []RestSelfLink `json:"self"`
}
RestPullRequestLinks defines model for RestPullRequestLinks.
type RestPullRequestReviewer ¶
type RestPullRequestReviewer struct {
User RestUserRef `json:"user"`
}
RestPullRequestReviewer defines model for RestPullRequestReviewer.
type RestPullRequestReviewerInput ¶
type RestPullRequestReviewerInput struct {
User struct {
// Name User slug
Name string `json:"name"`
} `json:"user"`
}
RestPullRequestReviewerInput defines model for RestPullRequestReviewerInput.
type RestReaction ¶ added in v1.72.1
type RestReaction struct {
Emoticon RestReactionEmoticon `json:"emoticon"`
User RestReactionUser `json:"user"`
}
RestReaction A reaction on a Server PR comment
type RestReactionEmoticon ¶ added in v1.72.1
type RestReactionEmoticon struct {
Value string `json:"value"`
}
RestReactionEmoticon defines model for RestReactionEmoticon.
type RestReactionUser ¶ added in v1.72.1
RestReactionUser defines model for RestReactionUser.
type RestReactionsPage ¶ added in v1.72.1
type RestReactionsPage struct {
IsLastPage bool `json:"isLastPage"`
Size *int `json:"size,omitempty"`
Values []RestReaction `json:"values"`
}
RestReactionsPage Paged response for reactions
type RestRef ¶
type RestRef struct {
// DisplayID Short ref name (e.g. main)
DisplayID string `json:"displayId"`
// ID Full ref name (e.g. refs/heads/main)
ID string `json:"id"`
// LatestCommit The SHA1 of the latest commit on this ref
LatestCommit string `json:"latestCommit"`
}
RestRef defines model for RestRef.
type RestRefInput ¶
type RestRefInput struct {
// ID Full ref name (e.g. refs/heads/main)
ID string `json:"id"`
}
RestRefInput defines model for RestRefInput.
type RestReport ¶ added in v1.72.1
type RestReport struct {
CreatedDate *int64 `json:"createdDate,omitempty"`
Data []RestReportDatum `json:"data"`
Details string `json:"details"`
Key string `json:"key"`
Link string `json:"link"`
LogoURL string `json:"logoUrl"`
ReportType string `json:"reportType"`
Reporter string `json:"reporter"`
Result string `json:"result"`
Title string `json:"title"`
UpdatedDate *int64 `json:"updatedDate,omitempty"`
}
RestReport A Code Insights report
type RestReportDatum ¶ added in v1.72.1
type RestReportDatum struct {
Title string `json:"title"`
Type string `json:"type"`
Value interface{} `json:"value"`
}
RestReportDatum A single data point in a Code Insights report
type RestReportUpsert ¶ added in v1.72.1
type RestReportUpsert struct {
Data []RestReportDatum `json:"data"`
Details string `json:"details"`
Link string `json:"link"`
LogoURL string `json:"logoUrl"`
ReportType string `json:"reportType"`
Reporter string `json:"reporter"`
Result string `json:"result"`
Title string `json:"title"`
}
RestReportUpsert Request body for creating/updating a Code Insights report
type RestRepository ¶ added in v1.72.1
type RestRepository struct {
ID int `json:"id"`
Links RestRepositoryLinks `json:"links"`
Name string `json:"name"`
Project RestRepositoryProject `json:"project"`
Public bool `json:"public"`
ScmID string `json:"scmId"`
Slug string `json:"slug"`
State string `json:"state"`
}
RestRepository A Bitbucket Server repository
type RestRepositoryLinks ¶ added in v1.72.1
type RestRepositoryLinks struct {
Self []RestRepositorySelfLink `json:"self"`
}
RestRepositoryLinks defines model for RestRepositoryLinks.
type RestRepositoryProject ¶ added in v1.72.1
RestRepositoryProject defines model for RestRepositoryProject.
type RestRepositorySelfLink ¶ added in v1.72.1
type RestRepositorySelfLink struct {
Href string `json:"href"`
}
RestRepositorySelfLink defines model for RestRepositorySelfLink.
type RestRestriction ¶ added in v1.72.1
type RestRestriction struct {
Groups []string `json:"groups"`
ID int `json:"id"`
Matcher RestRestrictionMatcher `json:"matcher"`
Type string `json:"type"`
Users []RestRestrictionUser `json:"users"`
}
RestRestriction A branch restriction rule on Bitbucket Server
type RestRestrictionCreate ¶ added in v1.72.1
type RestRestrictionCreate struct {
Groups []string `json:"groups"`
Matcher RestRestrictionCreateMatcher `json:"matcher"`
Type string `json:"type"`
Users []string `json:"users"`
}
RestRestrictionCreate Request body for creating a branch restriction
type RestRestrictionCreateMatcher ¶ added in v1.72.1
type RestRestrictionCreateMatcher struct {
ID string `json:"id"`
Type RestRestrictionCreateMatcherKind `json:"type"`
}
RestRestrictionCreateMatcher defines model for RestRestrictionCreateMatcher.
type RestRestrictionCreateMatcherKind ¶ added in v1.72.1
type RestRestrictionCreateMatcherKind struct {
ID string `json:"id"`
}
RestRestrictionCreateMatcherKind defines model for RestRestrictionCreateMatcherKind.
type RestRestrictionMatcher ¶ added in v1.72.1
type RestRestrictionMatcher struct {
ID string `json:"id"`
Type RestRestrictionMatcherType `json:"type"`
}
RestRestrictionMatcher defines model for RestRestrictionMatcher.
type RestRestrictionMatcherType ¶ added in v1.72.1
type RestRestrictionMatcherType struct {
ID string `json:"id"`
}
RestRestrictionMatcherType defines model for RestRestrictionMatcherType.
type RestRestrictionUser ¶ added in v1.72.1
type RestRestrictionUser struct {
Name string `json:"name"`
}
RestRestrictionUser defines model for RestRestrictionUser.
type RestReviewerPR ¶ added in v1.72.1
type RestReviewerPR struct {
Description string `json:"description"`
Reviewers []RestPullRequestReviewerInput `json:"reviewers"`
Title string `json:"title"`
}
RestReviewerPR PR body used when PUTting reviewers back onto a PR
type RestReviewerRef ¶ added in v1.72.1
RestReviewerRef A reviewer reference in a condition
type RestReviewerUser ¶ added in v1.72.1
RestReviewerUser User shape from the default-reviewers reviewer endpoint
type RestSSHKey ¶ added in v1.72.1
RestSSHKey Nested SSH key object in Server deploy key response
type RestSSHKeyInput ¶ added in v1.72.1
RestSSHKeyInput defines model for RestSSHKeyInput.
type RestSelfLink ¶
type RestSelfLink struct {
Href string `json:"href"`
}
RestSelfLink defines model for RestSelfLink.
type RestServerPRComment ¶ added in v1.72.1
type RestServerPRComment struct {
Author RestCommentAuthor `json:"author"`
Comments []RestServerPRComment `json:"comments"`
CreatedDate int64 `json:"createdDate"`
ID int `json:"id"`
Severity string `json:"severity"`
State string `json:"state"`
Text string `json:"text"`
UpdatedDate int64 `json:"updatedDate"`
Version int `json:"version"`
}
RestServerPRComment A comment on a Server pull request (with all fields required for adapter use)
type RestSetCommentState ¶ added in v1.72.1
RestSetCommentState Request body for setting a comment's state
type RestSuggestionApplyResponse ¶ added in v1.72.1
type RestSuggestionApplyResponse struct {
CommitHash string `json:"commitHash"`
CommitMessage string `json:"commitMessage"`
}
RestSuggestionApplyResponse Response from the suggestion apply endpoint
type RestTag ¶ added in v1.72.1
type RestTag struct {
DisplayID string `json:"displayId"`
DisplayMessage string `json:"displayMessage"`
LatestCommit string `json:"latestCommit"`
}
RestTag A Bitbucket Server tag
type RestTransferBody ¶ added in v1.72.1
type RestTransferBody struct {
Project RestTransferProject `json:"project"`
}
RestTransferBody Request body for transferring a Server repository
type RestTransferProject ¶ added in v1.72.1
type RestTransferProject struct {
Key string `json:"key"`
}
RestTransferProject defines model for RestTransferProject.
type RestUserRef ¶
type RestUserRef struct {
// DisplayName Human-readable display name
DisplayName string `json:"displayName"`
// Name User slug (login name)
Name string `json:"name"`
// Slug User slug
Slug string `json:"slug"`
}
RestUserRef defines model for RestUserRef.
type RestWatcher ¶ added in v1.72.1
RestWatcher A user watching a Server repository
type RestWebhook ¶ added in v1.72.1
type RestWebhook struct {
Active bool `json:"active"`
Events []string `json:"events"`
ID int `json:"id"`
Name *string `json:"name,omitempty"`
URL string `json:"url"`
}
RestWebhook A Bitbucket Server webhook
type RestWebhookConfig ¶ added in v1.72.1
type RestWebhookConfig struct {
Secret string `json:"secret"`
}
RestWebhookConfig defines model for RestWebhookConfig.