Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AnnotatedTagsApiService
- func (a *AnnotatedTagsApiService) Create(ctx context.Context, body GitAnnotatedTag, project string, repositoryId string, ...) (GitAnnotatedTag, *http.Response, error)
- func (a *AnnotatedTagsApiService) Get(ctx context.Context, project string, repositoryId string, objectId string, ...) (GitAnnotatedTag, *http.Response, error)
- type AssociatedWorkItem
- type AsyncGitOperationNotification
- type AsyncRefOperationCommitLevelEventNotification
- type AsyncRefOperationCompletedNotification
- type AsyncRefOperationConflictNotification
- type AsyncRefOperationGeneralFailureNotification
- type AsyncRefOperationProgressNotification
- type AsyncRefOperationTimeoutNotification
- type Attachment
- type AutoCompleteUpdatedEvent
- type BasicAuth
- type BlobsApiService
- type BranchUpdatedEvent
- type Change
- type ChangeCountDictionary
- type ChangeList
- type ChangeListSearchCriteria
- type CheckinNote
- type CherryPicksApiService
- func (a *CherryPicksApiService) Create(ctx context.Context, body GitAsyncRefOperationParameters, project string, ...) (GitCherryPick, *http.Response, error)
- func (a *CherryPicksApiService) GetCherryPick(ctx context.Context, project string, cherryPickId int32, repositoryId string, ...) (GitCherryPick, *http.Response, error)
- func (a *CherryPicksApiService) GetCherryPickForRefName(ctx context.Context, project string, repositoryId string, refName string, ...) (GitCherryPick, *http.Response, error)
- type Comment
- type CommentIterationContext
- type CommentPosition
- type CommentThread
- type CommentThreadContext
- type CommentTrackingCriteria
- type CommitsApiService
- func (a *CommitsApiService) Get(ctx context.Context, commitId string, repositoryId string, project string, ...) (GitCommit, *http.Response, error)
- func (a *CommitsApiService) GetChanges(ctx context.Context, commitId string, repositoryId string, project string, ...) (GitCommitChanges, *http.Response, error)
- func (a *CommitsApiService) GetCommitsBatch(ctx context.Context, body GitQueryCommitsCriteria, repositoryId string, ...) ([]GitCommitRef, *http.Response, error)
- func (a *CommitsApiService) GetPushCommits(ctx context.Context, repositoryId string, pushId int32, project string, ...) ([]GitCommitRef, *http.Response, error)
- type CompletionErrorsEvent
- type Configuration
- type CreateOpts
- type CreateOptsRepos
- type CreatePRLabelsOpts
- type CreatePullRequestOpts
- type DeleteOpts
- type DiffsApiService
- type DiscussionsUpdatedEvent
- type FileContentMetadata
- type ForksApiService
- func (a *ForksApiService) Create(ctx context.Context, body GitForkSyncRequestParameters, ...) (GitForkSyncRequest, *http.Response, error)
- func (a *ForksApiService) Get(ctx context.Context, repositoryNameOrId string, forkSyncOperationId int32, ...) (GitForkSyncRequest, *http.Response, error)
- func (a *ForksApiService) GetForkSyncRequests(ctx context.Context, repositoryNameOrId string, project string, ...) ([]GitForkSyncRequest, *http.Response, error)
- func (a *ForksApiService) List(ctx context.Context, repositoryNameOrId string, collectionId string, ...) ([]GitRepositoryRef, *http.Response, error)
- type GenericSwaggerError
- type GetBlobOpts
- type GetBlobsZipOpts
- type GetChangesOpts
- type GetCommitsBatchOpts
- type GetCommitsOpts
- type GetDiffsOpts
- type GetForkSyncRequestsOpts
- type GetForksOpts
- type GetOpts
- type GetOptsTrees
- type GetPRIterationChangesOpts
- type GetPullRequestLabelsOpts
- type GetPullRequestOpts
- type GetPullRequestsByProjectOpts
- type GetPullRequestsOpts
- type GetPushCommitsOpts
- type GetPushesOpts
- type GitAnnotatedTag
- type GitAsyncRefOperation
- type GitAsyncRefOperationDetail
- type GitAsyncRefOperationParameters
- type GitAsyncRefOperationSource
- type GitBaseVersionDescriptor
- type GitBlobRef
- type GitBranchStats
- type GitChange
- type GitCherryPick
- type GitCommit
- type GitCommitChanges
- type GitCommitDiffs
- type GitCommitRef
- type GitCommitToCreate
- type GitConflict
- type GitConflictAddAdd
- type GitConflictAddRename
- type GitConflictDeleteEdit
- type GitConflictDeleteRename
- type GitConflictDirectoryFile
- type GitConflictEditDelete
- type GitConflictEditEdit
- type GitConflictFileDirectory
- type GitConflictRename1to2
- type GitConflictRename2to1
- type GitConflictRenameAdd
- type GitConflictRenameDelete
- type GitConflictRenameRename
- type GitConflictUpdateResult
- type GitDeletedRepository
- type GitFilePathsCollection
- type GitForkOperationStatusDetail
- type GitForkRef
- type GitForkSyncRequest
- type GitForkSyncRequestParameters
- type GitForkTeamProjectReference
- type GitImportFailedEvent
- type GitImportGitSource
- type GitImportRequest
- type GitImportRequestParameters
- type GitImportStatusDetail
- type GitImportSucceededEvent
- type GitImportTfvcSource
- type GitItem
- type GitItemDescriptor
- type GitItemRequestData
- type GitLastChangeItem
- type GitLastChangeTreeItems
- type GitMergeOriginRef
- type GitObject
- type GitPathAction
- type GitPathToItemsCollection
- type GitPullRequest
- type GitPullRequestChange
- type GitPullRequestCommentThread
- type GitPullRequestCommentThreadContext
- type GitPullRequestCompletionOptions
- type GitPullRequestIteration
- type GitPullRequestIterationChanges
- type GitPullRequestMergeOptions
- type GitPullRequestQuery
- type GitPullRequestQueryInput
- type GitPullRequestReviewFileContentInfo
- type GitPullRequestSearchCriteria
- type GitPullRequestStatus
- type GitPush
- type GitPushEventData
- type GitPushRef
- type GitPushSearchCriteria
- type GitQueryBranchStatsCriteria
- type GitQueryCommitsCriteria
- type GitQueryRefsCriteria
- type GitRecycleBinRepositoryDetails
- type GitRef
- type GitRefFavorite
- type GitRefUpdate
- type GitRefUpdateResult
- type GitRepository
- type GitRepositoryCreateOptions
- type GitRepositoryRef
- type GitRepositoryStats
- type GitResolutionMergeContent
- type GitResolutionPathConflict
- type GitResolutionPickOneAction
- type GitResolutionRename1to2
- type GitRevert
- type GitStatus
- type GitStatusContext
- type GitSuggestion
- type GitTargetVersionDescriptor
- type GitTemplate
- type GitTreeDiff
- type GitTreeDiffEntry
- type GitTreeDiffResponse
- type GitTreeEntryRef
- type GitTreeRef
- type GitUserDate
- type GitVersionDescriptor
- type GlobalGitRepositoryKey
- type GraphSubjectBase
- type HistoryEntry
- type IdentityRef
- type IdentityRefWithVote
- type ImportRepositoryValidation
- type ImportRequestsApiService
- func (a *ImportRequestsApiService) Create(ctx context.Context, body GitImportRequest, project string, ...) (GitImportRequest, *http.Response, error)
- func (a *ImportRequestsApiService) Get(ctx context.Context, project string, repositoryId string, ...) (GitImportRequest, *http.Response, error)
- func (a *ImportRequestsApiService) Query(ctx context.Context, project string, repositoryId string, apiVersion string, ...) ([]GitImportRequest, *http.Response, error)
- func (a *ImportRequestsApiService) Update(ctx context.Context, body GitImportRequest, project string, ...) (GitImportRequest, *http.Response, error)
- type IncludedGitCommit
- type ItemContent
- type ItemDetailsOptions
- type ItemModel
- type ItemsApiService
- func (a *ItemsApiService) GetItemsBatch(ctx context.Context, body GitItemRequestData, repositoryId string, ...) ([][]interface{}, *http.Response, error)
- func (a *ItemsApiService) List(ctx context.Context, repositoryId string, project string, apiVersion string, ...) ([]GitItem, *http.Response, error)
- type JsonPatchDocument
- type JsonPatchOperation
- type LabelsUpdatedEvent
- type ListItemsOpts
- type ListMergeBasesOpts
- type ListOpts
- type ListOptsStats
- type ListPRIterationsOpts
- type ListPRLabelsOpts
- type ListPRThreadsOpts
- type ListPolicyConfigOpts
- type ListPushesOpts
- type ListRefOpts
- type ListRefsFavoritesOpts
- type ListReposOpts
- type ListStatusesOpts
- type MergeBasesApiService
- type MergeCompletedEvent
- type PolicyConfiguration
- type PolicyConfigurationRef
- type PolicyConfigurationsApiService
- type PolicyEvaluationUpdatedEvent
- type PolicyTypeRef
- type PropertiesCollection
- type PullRequestAttachmentsApiService
- func (a *PullRequestAttachmentsApiService) Create(ctx context.Context, body string, fileName string, repositoryId string, ...) (Attachment, *http.Response, error)
- func (a *PullRequestAttachmentsApiService) Delete(ctx context.Context, fileName string, repositoryId string, pullRequestId int32, ...) (*http.Response, error)
- func (a *PullRequestAttachmentsApiService) Get(ctx context.Context, fileName string, repositoryId string, pullRequestId int32, ...) (string, *http.Response, error)
- func (a *PullRequestAttachmentsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) ([]Attachment, *http.Response, error)
- type PullRequestCommentLikesApiService
- func (a *PullRequestCommentLikesApiService) Create(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, ...) (*http.Response, error)
- func (a *PullRequestCommentLikesApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, ...) (*http.Response, error)
- func (a *PullRequestCommentLikesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, ...) ([]IdentityRef, *http.Response, error)
- type PullRequestCommitsApiService
- func (a *PullRequestCommitsApiService) GetPullRequestCommits(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) ([]GitCommitRef, *http.Response, error)
- func (a *PullRequestCommitsApiService) GetPullRequestIterationCommits(ctx context.Context, repositoryId string, pullRequestId int32, ...) ([]GitCommitRef, *http.Response, error)
- type PullRequestCreatedEvent
- type PullRequestIterationChangesApiService
- type PullRequestIterationStatusesApiService
- func (a *PullRequestIterationStatusesApiService) Create(ctx context.Context, body GitPullRequestStatus, repositoryId string, ...) (GitPullRequestStatus, *http.Response, error)
- func (a *PullRequestIterationStatusesApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, ...) (*http.Response, error)
- func (a *PullRequestIterationStatusesApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, ...) (GitPullRequestStatus, *http.Response, error)
- func (a *PullRequestIterationStatusesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, ...) ([]GitPullRequestStatus, *http.Response, error)
- func (a *PullRequestIterationStatusesApiService) Update(ctx context.Context, body JsonPatchDocument, repositoryId string, ...) (*http.Response, error)
- type PullRequestIterationsApiService
- func (a *PullRequestIterationsApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, ...) (GitPullRequestIteration, *http.Response, error)
- func (a *PullRequestIterationsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) ([]GitPullRequestIteration, *http.Response, error)
- type PullRequestLabelsApiService
- func (a *PullRequestLabelsApiService) Create(ctx context.Context, body WebApiCreateTagRequestData, repositoryId string, ...) (WebApiTagDefinition, *http.Response, error)
- func (a *PullRequestLabelsApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, ...) (*http.Response, error)
- func (a *PullRequestLabelsApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, ...) (WebApiTagDefinition, *http.Response, error)
- func (a *PullRequestLabelsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) ([]WebApiTagDefinition, *http.Response, error)
- type PullRequestPropertiesApiService
- func (a *PullRequestPropertiesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) (PropertiesCollection, *http.Response, error)
- func (a *PullRequestPropertiesApiService) Update(ctx context.Context, body JsonPatchDocument, repositoryId string, ...) (PropertiesCollection, *http.Response, error)
- type PullRequestQueryApiService
- type PullRequestReviewersApiService
- func (a *PullRequestReviewersApiService) CreatePullRequestReviewer(ctx context.Context, body IdentityRefWithVote, repositoryId string, ...) (IdentityRefWithVote, *http.Response, error)
- func (a *PullRequestReviewersApiService) CreatePullRequestReviewers(ctx context.Context, body []IdentityRef, repositoryId string, ...) ([]IdentityRefWithVote, *http.Response, error)
- func (a *PullRequestReviewersApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, ...) (*http.Response, error)
- func (a *PullRequestReviewersApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, ...) (IdentityRefWithVote, *http.Response, error)
- func (a *PullRequestReviewersApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) ([]IdentityRefWithVote, *http.Response, error)
- func (a *PullRequestReviewersApiService) Update(ctx context.Context, body []IdentityRefWithVote, repositoryId string, ...) (*http.Response, error)
- type PullRequestShareApiService
- type PullRequestStatusesApiService
- func (a *PullRequestStatusesApiService) Create(ctx context.Context, body GitPullRequestStatus, repositoryId string, ...) (GitPullRequestStatus, *http.Response, error)
- func (a *PullRequestStatusesApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, statusId int32, ...) (*http.Response, error)
- func (a *PullRequestStatusesApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, statusId int32, ...) (GitPullRequestStatus, *http.Response, error)
- func (a *PullRequestStatusesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) ([]GitPullRequestStatus, *http.Response, error)
- func (a *PullRequestStatusesApiService) Update(ctx context.Context, body JsonPatchDocument, repositoryId string, ...) (*http.Response, error)
- type PullRequestTabExtensionConfig
- type PullRequestThreadCommentsApiService
- func (a *PullRequestThreadCommentsApiService) Create(ctx context.Context, body Comment, repositoryId string, pullRequestId int32, ...) (Comment, *http.Response, error)
- func (a *PullRequestThreadCommentsApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, ...) (*http.Response, error)
- func (a *PullRequestThreadCommentsApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, ...) (Comment, *http.Response, error)
- func (a *PullRequestThreadCommentsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, ...) ([]Comment, *http.Response, error)
- func (a *PullRequestThreadCommentsApiService) Update(ctx context.Context, body Comment, repositoryId string, pullRequestId int32, ...) (Comment, *http.Response, error)
- type PullRequestThreadsApiService
- func (a *PullRequestThreadsApiService) Create(ctx context.Context, body GitPullRequestCommentThread, repositoryId string, ...) (GitPullRequestCommentThread, *http.Response, error)
- func (a *PullRequestThreadsApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, ...) (GitPullRequestCommentThread, *http.Response, error)
- func (a *PullRequestThreadsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) ([]GitPullRequestCommentThread, *http.Response, error)
- func (a *PullRequestThreadsApiService) Update(ctx context.Context, body GitPullRequestCommentThread, repositoryId string, ...) (GitPullRequestCommentThread, *http.Response, error)
- type PullRequestWorkItemsApiService
- type PullRequestsApiService
- func (a *PullRequestsApiService) Create(ctx context.Context, body GitPullRequest, repositoryId string, project string, ...) (GitPullRequest, *http.Response, error)
- func (a *PullRequestsApiService) GetPullRequest(ctx context.Context, repositoryId string, pullRequestId int32, project string, ...) (GitPullRequest, *http.Response, error)
- func (a *PullRequestsApiService) GetPullRequestById(ctx context.Context, pullRequestId int32, project string, apiVersion string) (GitPullRequest, *http.Response, error)
- func (a *PullRequestsApiService) GetPullRequests(ctx context.Context, repositoryId string, project string, apiVersion string, ...) ([]GitPullRequest, *http.Response, error)
- func (a *PullRequestsApiService) GetPullRequestsByProject(ctx context.Context, project string, apiVersion string, ...) ([]GitPullRequest, *http.Response, error)
- func (a *PullRequestsApiService) Update(ctx context.Context, body GitPullRequest, repositoryId string, ...) (GitPullRequest, *http.Response, error)
- type PushesApiService
- func (a *PushesApiService) Create(ctx context.Context, body GitPush, repositoryId string, project string, ...) (GitPush, *http.Response, error)
- func (a *PushesApiService) Get(ctx context.Context, repositoryId string, pushId int32, project string, ...) (GitPush, *http.Response, error)
- func (a *PushesApiService) List(ctx context.Context, repositoryId string, project string, apiVersion string, ...) ([]GitPush, *http.Response, error)
- type QueryOpts
- type RealTimePullRequestEvent
- type ReferenceLinks
- type RefsApiService
- func (a *RefsApiService) List(ctx context.Context, repositoryId string, project string, apiVersion string, ...) ([]GitRef, *http.Response, error)
- func (a *RefsApiService) UpdateRef(ctx context.Context, body GitRefUpdate, repositoryId string, filter string, ...) (GitRef, *http.Response, error)
- func (a *RefsApiService) UpdateRefs(ctx context.Context, body []GitRefUpdate, repositoryId string, project string, ...) ([]GitRefUpdateResult, *http.Response, error)
- type RefsFavoritesApiService
- func (a *RefsFavoritesApiService) Create(ctx context.Context, body GitRefFavorite, project string, apiVersion string) (GitRefFavorite, *http.Response, error)
- func (a *RefsFavoritesApiService) Delete(ctx context.Context, project string, favoriteId int32, apiVersion string) (*http.Response, error)
- func (a *RefsFavoritesApiService) Get(ctx context.Context, project string, favoriteId int32, apiVersion string) (GitRefFavorite, *http.Response, error)
- func (a *RefsFavoritesApiService) List(ctx context.Context, project string, apiVersion string, ...) ([]GitRefFavorite, *http.Response, error)
- type RepositoriesApiService
- func (a *RepositoriesApiService) Create(ctx context.Context, body GitRepositoryCreateOptions, project string, ...) (GitRepository, *http.Response, error)
- func (a *RepositoriesApiService) Delete(ctx context.Context, repositoryId string, project string, apiVersion string) (*http.Response, error)
- func (a *RepositoriesApiService) DeleteRepositoryFromRecycleBin(ctx context.Context, project string, repositoryId string, apiVersion string) (*http.Response, error)
- func (a *RepositoriesApiService) GetDeletedRepositories(ctx context.Context, project string, apiVersion string) ([]GitDeletedRepository, *http.Response, error)
- func (a *RepositoriesApiService) GetRecycleBinRepositories(ctx context.Context, project string, apiVersion string) ([]GitDeletedRepository, *http.Response, error)
- func (a *RepositoriesApiService) GetRepository(ctx context.Context, repositoryId string, project string, apiVersion string) (GitRepository, *http.Response, error)
- func (a *RepositoriesApiService) List(ctx context.Context, project string, apiVersion string, ...) ([]GitRepository, *http.Response, error)
- func (a *RepositoriesApiService) RestoreRepositoryFromRecycleBin(ctx context.Context, body GitRecycleBinRepositoryDetails, project string, ...) (GitRepository, *http.Response, error)
- func (a *RepositoriesApiService) Update(ctx context.Context, body GitRepository, repositoryId string, project string, ...) (GitRepository, *http.Response, error)
- type ResourceRef
- type RetargetEvent
- type RevertsApiService
- func (a *RevertsApiService) Create(ctx context.Context, body GitAsyncRefOperationParameters, project string, ...) (GitRevert, *http.Response, error)
- func (a *RevertsApiService) GetRevert(ctx context.Context, project string, revertId int32, repositoryId string, ...) (GitRevert, *http.Response, error)
- func (a *RevertsApiService) GetRevertForRefName(ctx context.Context, project string, repositoryId string, refName string, ...) (GitRevert, *http.Response, error)
- type ReviewerVoteUpdatedEvent
- type ReviewersUpdatedEvent
- type ReviewersVotesResetEvent
- type ShareNotificationContext
- type SourceToTargetRef
- type StatsApiService
- type StatusAddedEvent
- type StatusUpdatedEvent
- type StatusesApiService
- func (a *StatusesApiService) Create(ctx context.Context, body GitStatus, commitId string, repositoryId string, ...) (GitStatus, *http.Response, error)
- func (a *StatusesApiService) List(ctx context.Context, commitId string, repositoryId string, project string, ...) ([]GitStatus, *http.Response, error)
- type StatusesDeletedEvent
- type SuggestionsApiService
- type SupportedIde
- type TeamProjectCollectionReference
- type TeamProjectReference
- type TfvcBranch
- type TfvcBranchMapping
- type TfvcBranchRef
- type TfvcChange
- type TfvcChangeset
- type TfvcChangesetRef
- type TfvcChangesetSearchCriteria
- type TfvcChangesetsRequestData
- type TfvcCheckinEventData
- type TfvcHistoryEntry
- type TfvcItem
- type TfvcItemDescriptor
- type TfvcItemPreviousHash
- type TfvcItemRequestData
- type TfvcLabel
- type TfvcLabelRef
- type TfvcLabelRequestData
- type TfvcMappingFilter
- type TfvcMergeSource
- type TfvcPolicyFailureInfo
- type TfvcPolicyOverrideInfo
- type TfvcShallowBranchRef
- type TfvcShelveset
- type TfvcShelvesetRef
- type TfvcShelvesetRequestData
- type TfvcStatistics
- type TfvcVersionDescriptor
- type TitleDescriptionUpdatedEvent
- type TreesApiService
- type UpdateRefOpts
- type UpdateRefsOpts
- type UpdateRefsRequest
- type VersionControlProjectInfo
- type VersionedPolicyConfigurationRef
- type VssJsonCollectionWrapper
- type VssJsonCollectionWrapperBase
- type WebApiCreateTagRequestData
- type WebApiTagDefinition
Constants ¶
This section is empty.
Variables ¶
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 ¶
Types ¶
type APIClient ¶
type APIClient struct { AnnotatedTagsApi *AnnotatedTagsApiService BlobsApi *BlobsApiService CherryPicksApi *CherryPicksApiService CommitsApi *CommitsApiService DiffsApi *DiffsApiService ForksApi *ForksApiService ImportRequestsApi *ImportRequestsApiService ItemsApi *ItemsApiService MergeBasesApi *MergeBasesApiService PolicyConfigurationsApi *PolicyConfigurationsApiService PullRequestAttachmentsApi *PullRequestAttachmentsApiService PullRequestCommentLikesApi *PullRequestCommentLikesApiService PullRequestCommitsApi *PullRequestCommitsApiService PullRequestIterationChangesApi *PullRequestIterationChangesApiService PullRequestIterationStatusesApi *PullRequestIterationStatusesApiService PullRequestIterationsApi *PullRequestIterationsApiService PullRequestLabelsApi *PullRequestLabelsApiService PullRequestPropertiesApi *PullRequestPropertiesApiService PullRequestQueryApi *PullRequestQueryApiService PullRequestReviewersApi *PullRequestReviewersApiService PullRequestStatusesApi *PullRequestStatusesApiService PullRequestThreadCommentsApi *PullRequestThreadCommentsApiService PullRequestThreadsApi *PullRequestThreadsApiService PullRequestWorkItemsApi *PullRequestWorkItemsApiService PullRequestsApi *PullRequestsApiService PushesApi *PushesApiService RefsApi *RefsApiService RefsFavoritesApi *RefsFavoritesApiService RepositoriesApi *RepositoriesApiService RevertsApi *RevertsApiService StatsApi *StatsApiService StatusesApi *StatusesApiService SuggestionsApi *SuggestionsApiService TreesApi *TreesApiService // contains filtered or unexported fields }
APIClient manages communication with the Git API v5.0-preview 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 ¶
Change base path to allow switching to mocks
type APIKey ¶
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 AnnotatedTagsApiService ¶
type AnnotatedTagsApiService service
func (*AnnotatedTagsApiService) Create ¶
func (a *AnnotatedTagsApiService) Create(ctx context.Context, body GitAnnotatedTag, project string, repositoryId string, apiVersion string) (GitAnnotatedTag, *http.Response, error)
AnnotatedTagsApiService Create an annotated tag. Repositories have both a name and an identifier. Identifiers are globally unique, but several projects may contain a repository of the same name. You don't need to include the project if you specify a repository by ID. However, if you specify a repository by name, you must also specify the project (by name or ID).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Object containing details of tag to be created.
- @param project Project ID or project name
- @param repositoryId ID or name of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitAnnotatedTag
func (*AnnotatedTagsApiService) Get ¶
func (a *AnnotatedTagsApiService) Get(ctx context.Context, project string, repositoryId string, objectId string, apiVersion string) (GitAnnotatedTag, *http.Response, error)
AnnotatedTagsApiService Get an annotated tag. Repositories have both a name and an identifier. Identifiers are globally unique, but several projects may contain a repository of the same name. You don't need to include the project if you specify a repository by ID. However, if you specify a repository by name, you must also specify the project (by name or ID).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param repositoryId ID or name of the repository.
- @param objectId ObjectId (Sha1Id) of tag to get.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitAnnotatedTag
type AssociatedWorkItem ¶
type AssociatedWorkItem struct { AssignedTo string `json:"assignedTo,omitempty"` // Id of associated the work item. Id int32 `json:"id,omitempty"` State string `json:"state,omitempty"` Title string `json:"title,omitempty"` // REST Url of the work item. Url string `json:"url,omitempty"` WebUrl string `json:"webUrl,omitempty"` WorkItemType string `json:"workItemType,omitempty"` }
type AsyncGitOperationNotification ¶
type AsyncGitOperationNotification struct {
OperationId int32 `json:"operationId,omitempty"`
}
type AsyncRefOperationCommitLevelEventNotification ¶
type AsyncRefOperationCommitLevelEventNotification struct {
OperationId int32 `json:"operationId,omitempty"`
}
type AsyncRefOperationCompletedNotification ¶
type AsyncRefOperationCompletedNotification struct {
OperationId int32 `json:"operationId,omitempty"`
}
type AsyncRefOperationConflictNotification ¶
type AsyncRefOperationConflictNotification struct {
OperationId int32 `json:"operationId,omitempty"`
}
type AsyncRefOperationGeneralFailureNotification ¶
type AsyncRefOperationGeneralFailureNotification struct {
OperationId int32 `json:"operationId,omitempty"`
}
type AsyncRefOperationProgressNotification ¶
type AsyncRefOperationProgressNotification struct {
OperationId int32 `json:"operationId,omitempty"`
}
type AsyncRefOperationTimeoutNotification ¶
type AsyncRefOperationTimeoutNotification struct {
OperationId int32 `json:"operationId,omitempty"`
}
type Attachment ¶
type Attachment struct { // Links to other related objects. Links *ReferenceLinks `json:"_links,omitempty"` // The person that uploaded this attachment. Author *IdentityRef `json:"author,omitempty"` // Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. ContentHash string `json:"contentHash,omitempty"` // The time the attachment was uploaded. CreatedDate time.Time `json:"createdDate,omitempty"` // The description of the attachment. Description string `json:"description,omitempty"` // The display name of the attachment. Can't be null or empty. DisplayName string `json:"displayName,omitempty"` // Id of the attachment. Id int32 `json:"id,omitempty"` // Extended properties. Properties *PropertiesCollection `json:"properties,omitempty"` // The url to download the content of the attachment. Url string `json:"url,omitempty"` }
Meta data for a file attached to an artifact.
type AutoCompleteUpdatedEvent ¶
type AutoCompleteUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for an auto-complete update on a pull request
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 BlobsApiService ¶
type BlobsApiService service
func (*BlobsApiService) GetBlob ¶
func (a *BlobsApiService) GetBlob(ctx context.Context, repositoryId string, sha1 string, project string, apiVersion string, localVarOptionals *GetBlobOpts) (GitBlobRef, *http.Response, error)
func (*BlobsApiService) GetBlobsZip ¶
type BranchUpdatedEvent ¶
type BranchUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a source/target branch update on a pull request
type Change ¶
type Change struct { // The type of change that was made to the item. ChangeType string `json:"changeType,omitempty"` // Current version. Item string `json:"item,omitempty"` // Content of the item after the change. NewContent *ItemContent `json:"newContent,omitempty"` // Path of the item on the server. SourceServerItem string `json:"sourceServerItem,omitempty"` // URL to retrieve the item. Url string `json:"url,omitempty"` }
type ChangeCountDictionary ¶
type ChangeCountDictionary struct { }
type ChangeList ¶
type ChangeList struct { AllChangesIncluded bool `json:"allChangesIncluded,omitempty"` ChangeCounts map[string]int32 `json:"changeCounts,omitempty"` Changes []Change `json:"changes,omitempty"` Comment string `json:"comment,omitempty"` CommentTruncated bool `json:"commentTruncated,omitempty"` CreationDate time.Time `json:"creationDate,omitempty"` Notes []CheckinNote `json:"notes,omitempty"` Owner string `json:"owner,omitempty"` OwnerDisplayName string `json:"ownerDisplayName,omitempty"` OwnerId string `json:"ownerId,omitempty"` SortDate time.Time `json:"sortDate,omitempty"` Version string `json:"version,omitempty"` }
type ChangeListSearchCriteria ¶
type ChangeListSearchCriteria struct { // If provided, a version descriptor to compare against base CompareVersion string `json:"compareVersion,omitempty"` // If true, don't include delete history entries ExcludeDeletes bool `json:"excludeDeletes,omitempty"` // Whether or not to follow renames for the given item being queried FollowRenames bool `json:"followRenames,omitempty"` // If provided, only include history entries created after this date (string) FromDate string `json:"fromDate,omitempty"` // If provided, a version descriptor for the earliest change list to include FromVersion string `json:"fromVersion,omitempty"` // Path of item to search under. If the itemPaths memebr is used then it will take precedence over this. ItemPath string `json:"itemPath,omitempty"` // List of item paths to search under. If this member is used then itemPath will be ignored. ItemPaths []string `json:"itemPaths,omitempty"` // Version of the items to search ItemVersion string `json:"itemVersion,omitempty"` // Number of results to skip (used when clicking more...) Skip int32 `json:"skip,omitempty"` // If provided, only include history entries created before this date (string) ToDate string `json:"toDate,omitempty"` // If provided, the maximum number of history entries to return Top int32 `json:"top,omitempty"` // If provided, a version descriptor for the latest change list to include ToVersion string `json:"toVersion,omitempty"` // Alias or display name of user who made the changes User string `json:"user,omitempty"` }
Criteria used in a search for change lists
type CheckinNote ¶
type CherryPicksApiService ¶
type CherryPicksApiService service
func (*CherryPicksApiService) Create ¶
func (a *CherryPicksApiService) Create(ctx context.Context, body GitAsyncRefOperationParameters, project string, repositoryId string, apiVersion string) (GitCherryPick, *http.Response, error)
CherryPicksApiService Cherry pick a specific commit or commits that are associated to a pull request into a new branch.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
- @param project Project ID or project name
- @param repositoryId ID of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitCherryPick
func (*CherryPicksApiService) GetCherryPick ¶
func (a *CherryPicksApiService) GetCherryPick(ctx context.Context, project string, cherryPickId int32, repositoryId string, apiVersion string) (GitCherryPick, *http.Response, error)
CherryPicksApiService Retrieve information about a cherry pick by cherry pick Id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param cherryPickId ID of the cherry pick.
- @param repositoryId ID of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitCherryPick
func (*CherryPicksApiService) GetCherryPickForRefName ¶
func (a *CherryPicksApiService) GetCherryPickForRefName(ctx context.Context, project string, repositoryId string, refName string, apiVersion string) (GitCherryPick, *http.Response, error)
CherryPicksApiService Retrieve information about a cherry pick for a specific branch.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param repositoryId ID of the repository.
- @param refName The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitCherryPick
type Comment ¶
type Comment struct { // Links to other related objects. Links *ReferenceLinks `json:"_links,omitempty"` // The author of the comment. Author *IdentityRef `json:"author,omitempty"` // The comment type at the time of creation. CommentType string `json:"commentType,omitempty"` // The comment content. Content string `json:"content,omitempty"` // The comment ID. IDs start at 1 and are unique to a pull request. Id int32 `json:"id,omitempty"` // Whether or not this comment was soft-deleted. IsDeleted bool `json:"isDeleted,omitempty"` // The date the comment's content was last updated. LastContentUpdatedDate time.Time `json:"lastContentUpdatedDate,omitempty"` // The date the comment was last updated. LastUpdatedDate time.Time `json:"lastUpdatedDate,omitempty"` // The ID of the parent comment. This is used for replies. ParentCommentId int32 `json:"parentCommentId,omitempty"` // The date the comment was first published. PublishedDate time.Time `json:"publishedDate,omitempty"` // A list of the users who have liked this comment. UsersLiked []IdentityRef `json:"usersLiked,omitempty"` }
Represents a comment which is one of potentially many in a comment thread.
type CommentIterationContext ¶
type CommentIterationContext struct { // The iteration of the file on the left side of the diff when the thread was created. If this value is equal to SecondComparingIteration, then this version is the common commit between the source and target branches of the pull request. FirstComparingIteration int32 `json:"firstComparingIteration,omitempty"` // The iteration of the file on the right side of the diff when the thread was created. SecondComparingIteration int32 `json:"secondComparingIteration,omitempty"` }
Comment iteration context is used to identify which diff was being viewed when the thread was created.
type CommentPosition ¶
type CommentThread ¶
type CommentThread struct { // Links to other related objects. Links *ReferenceLinks `json:"_links,omitempty"` // A list of the comments. Comments []Comment `json:"comments,omitempty"` // The comment thread id. Id int32 `json:"id,omitempty"` // Set of identities related to this thread Identities map[string]IdentityRef `json:"identities,omitempty"` // Specify if the thread is deleted which happens when all comments are deleted. IsDeleted bool `json:"isDeleted,omitempty"` // The time this thread was last updated. LastUpdatedDate time.Time `json:"lastUpdatedDate,omitempty"` // Optional properties associated with the thread as a collection of key-value pairs. Properties *PropertiesCollection `json:"properties,omitempty"` // The time this thread was published. PublishedDate time.Time `json:"publishedDate,omitempty"` // The status of the comment thread. Status string `json:"status,omitempty"` // Specify thread context such as position in left/right file. ThreadContext *CommentThreadContext `json:"threadContext,omitempty"` }
Represents a comment thread of a pull request. A thread contains meta data about the file it was left on along with one or more comments (an initial comment and the subsequent replies).
type CommentThreadContext ¶
type CommentThreadContext struct { // File path relative to the root of the repository. It's up to the client to use any path format. FilePath string `json:"filePath,omitempty"` // Position of last character of the thread's span in left file. LeftFileEnd *CommentPosition `json:"leftFileEnd,omitempty"` // Position of first character of the thread's span in left file. LeftFileStart *CommentPosition `json:"leftFileStart,omitempty"` // Position of last character of the thread's span in right file. RightFileEnd *CommentPosition `json:"rightFileEnd,omitempty"` // Position of first character of the thread's span in right file. RightFileStart *CommentPosition `json:"rightFileStart,omitempty"` }
type CommentTrackingCriteria ¶
type CommentTrackingCriteria struct { // The iteration of the file on the left side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. FirstComparingIteration int32 `json:"firstComparingIteration,omitempty"` // Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. OrigFilePath string `json:"origFilePath,omitempty"` // Original position of last character of the thread's span in left file. OrigLeftFileEnd *CommentPosition `json:"origLeftFileEnd,omitempty"` // Original position of first character of the thread's span in left file. OrigLeftFileStart *CommentPosition `json:"origLeftFileStart,omitempty"` // Original position of last character of the thread's span in right file. OrigRightFileEnd *CommentPosition `json:"origRightFileEnd,omitempty"` // Original position of first character of the thread's span in right file. OrigRightFileStart *CommentPosition `json:"origRightFileStart,omitempty"` // The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. SecondComparingIteration int32 `json:"secondComparingIteration,omitempty"` }
Comment tracking criteria is used to identify which iteration context the thread has been tracked to (if any) along with some detail about the original position and filename.
type CommitsApiService ¶
type CommitsApiService service
func (*CommitsApiService) GetChanges ¶
func (a *CommitsApiService) GetChanges(ctx context.Context, commitId string, repositoryId string, project string, apiVersion string, localVarOptionals *GetChangesOpts) (GitCommitChanges, *http.Response, error)
func (*CommitsApiService) GetCommitsBatch ¶
func (a *CommitsApiService) GetCommitsBatch(ctx context.Context, body GitQueryCommitsCriteria, repositoryId string, project string, apiVersion string, localVarOptionals *GetCommitsBatchOpts) ([]GitCommitRef, *http.Response, error)
func (*CommitsApiService) GetPushCommits ¶
func (a *CommitsApiService) GetPushCommits(ctx context.Context, repositoryId string, pushId int32, project string, apiVersion string, localVarOptionals *GetPushCommitsOpts) ([]GitCommitRef, *http.Response, error)
type CompletionErrorsEvent ¶
type CompletionErrorsEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a completion errors on a pull request
type Configuration ¶
type Configuration struct { 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 *http.Client }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type CreateOpts ¶
type CreateOptsRepos ¶
type CreatePRLabelsOpts ¶
type CreatePullRequestOpts ¶
type DeleteOpts ¶
type DiffsApiService ¶
type DiffsApiService service
func (*DiffsApiService) Get ¶
func (a *DiffsApiService) Get(ctx context.Context, repositoryId string, project string, apiVersion string, localVarOptionals *GetDiffsOpts) (GitCommitDiffs, *http.Response, error)
type DiscussionsUpdatedEvent ¶
type DiscussionsUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a discussions update on a pull request
type FileContentMetadata ¶
type FileContentMetadata struct { ContentType string `json:"contentType,omitempty"` Encoding int32 `json:"encoding,omitempty"` Extension string `json:"extension,omitempty"` FileName string `json:"fileName,omitempty"` IsBinary bool `json:"isBinary,omitempty"` IsImage bool `json:"isImage,omitempty"` VsLink string `json:"vsLink,omitempty"` }
type ForksApiService ¶
type ForksApiService service
func (*ForksApiService) Create ¶
func (a *ForksApiService) Create(ctx context.Context, body GitForkSyncRequestParameters, repositoryNameOrId string, project string, apiVersion string, localVarOptionals *CreateOpts) (GitForkSyncRequest, *http.Response, error)
func (*ForksApiService) Get ¶
func (a *ForksApiService) Get(ctx context.Context, repositoryNameOrId string, forkSyncOperationId int32, project string, apiVersion string, localVarOptionals *GetForksOpts) (GitForkSyncRequest, *http.Response, error)
func (*ForksApiService) GetForkSyncRequests ¶
func (a *ForksApiService) GetForkSyncRequests(ctx context.Context, repositoryNameOrId string, project string, apiVersion string, localVarOptionals *GetForkSyncRequestsOpts) ([]GitForkSyncRequest, *http.Response, error)
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 GetBlobOpts ¶
type GetBlobsZipOpts ¶
type GetCommitsBatchOpts ¶
type GetCommitsOpts ¶
type GetDiffsOpts ¶
type GetForkSyncRequestsOpts ¶
type GetForksOpts ¶
type GetOptsTrees ¶
type GetPullRequestOpts ¶
type GetPullRequestsByProjectOpts ¶
type GetPullRequestsByProjectOpts struct { SearchCriteriaIncludeLinks optional.Bool SearchCriteriaSourceRefName optional.String SearchCriteriaSourceRepositoryId optional.Interface SearchCriteriaTargetRefName optional.String SearchCriteriaStatus optional.String SearchCriteriaReviewerId optional.Interface SearchCriteriaCreatorId optional.Interface SearchCriteriaRepositoryId optional.Interface MaxCommentLength optional.Int32 Skip optional.Int32 Top optional.Int32 }
type GetPullRequestsOpts ¶
type GetPullRequestsOpts struct { SearchCriteriaIncludeLinks optional.Bool SearchCriteriaSourceRefName optional.String SearchCriteriaSourceRepositoryId optional.Interface SearchCriteriaTargetRefName optional.String SearchCriteriaStatus optional.String SearchCriteriaReviewerId optional.Interface SearchCriteriaCreatorId optional.Interface SearchCriteriaRepositoryId optional.Interface MaxCommentLength optional.Int32 Skip optional.Int32 Top optional.Int32 }
type GetPushCommitsOpts ¶
type GetPushesOpts ¶
type GitAnnotatedTag ¶
type GitAnnotatedTag struct { // The tagging Message Message string `json:"message,omitempty"` // The name of the annotated tag. Name string `json:"name,omitempty"` // The objectId (Sha1Id) of the tag. ObjectId string `json:"objectId,omitempty"` // User info and date of tagging. TaggedBy *GitUserDate `json:"taggedBy,omitempty"` // Tagged git object. TaggedObject *GitObject `json:"taggedObject,omitempty"` Url string `json:"url,omitempty"` }
A Git annotated tag.
type GitAsyncRefOperation ¶
type GitAsyncRefOperation struct { Links *ReferenceLinks `json:"_links,omitempty"` DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"` Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"` Status string `json:"status,omitempty"` // A URL that can be used to make further requests for status about the operation Url string `json:"url,omitempty"` }
type GitAsyncRefOperationDetail ¶
type GitAsyncRefOperationDetail struct { // Indicates if there was a conflict generated when trying to cherry pick or revert the changes. Conflict bool `json:"conflict,omitempty"` // The current commit from the list of commits that are being cherry picked or reverted. CurrentCommitId string `json:"currentCommitId,omitempty"` // Detailed information about why the cherry pick or revert failed to complete. FailureMessage string `json:"failureMessage,omitempty"` // A number between 0 and 1 indicating the percent complete of the operation. Progress float64 `json:"progress,omitempty"` // Provides a status code that indicates the reason the cherry pick or revert failed. Status string `json:"status,omitempty"` // Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation. Timedout bool `json:"timedout,omitempty"` }
Information about the progress of a cherry pick or revert operation.
type GitAsyncRefOperationParameters ¶
type GitAsyncRefOperationParameters struct { // Proposed target branch name for the cherry pick or revert operation. GeneratedRefName string `json:"generatedRefName,omitempty"` // The target branch for the cherry pick or revert operation. OntoRefName string `json:"ontoRefName,omitempty"` // The git repository for the cherry pick or revert operation. Repository *GitRepository `json:"repository,omitempty"` // Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). Source *GitAsyncRefOperationSource `json:"source,omitempty"` }
Parameters that are provided in the request body when requesting to cherry pick or revert.
type GitAsyncRefOperationSource ¶
type GitAsyncRefOperationSource struct { // A list of commits to cherry pick or revert CommitList []GitCommitRef `json:"commitList,omitempty"` // Id of the pull request to cherry pick or revert PullRequestId int32 `json:"pullRequestId,omitempty"` }
GitAsyncRefOperationSource specifies the pull request or list of commits to use when making a cherry pick and revert operation request. Only one should be provided.
type GitBaseVersionDescriptor ¶
type GitBaseVersionDescriptor struct { // Version string identifier (name of tag/branch, SHA1 of commit) Version string `json:"version,omitempty"` // Version options - Specify additional modifiers to version (e.g Previous) VersionOptions string `json:"versionOptions,omitempty"` // Version type (branch, tag, or commit). Determines how Id is interpreted VersionType string `json:"versionType,omitempty"` }
type GitBlobRef ¶
type GitBlobRef struct { Links *ReferenceLinks `json:"_links,omitempty"` // SHA1 hash of git object ObjectId string `json:"objectId,omitempty"` // Size of blob content (in bytes) Size int64 `json:"size,omitempty"` Url string `json:"url,omitempty"` }
type GitBranchStats ¶
type GitBranchStats struct { // Number of commits ahead. AheadCount int32 `json:"aheadCount,omitempty"` // Number of commits behind. BehindCount int32 `json:"behindCount,omitempty"` // Current commit. Commit *GitCommitRef `json:"commit,omitempty"` // True if this is the result for the base version. IsBaseVersion bool `json:"isBaseVersion,omitempty"` // Name of the ref. Name string `json:"name,omitempty"` }
Ahead and behind counts for a particular ref.
type GitChange ¶
type GitChange struct { // The type of change that was made to the item. ChangeType string `json:"changeType,omitempty"` // Current version. Item string `json:"item,omitempty"` // Content of the item after the change. NewContent *ItemContent `json:"newContent,omitempty"` // Path of the item on the server. SourceServerItem string `json:"sourceServerItem,omitempty"` // URL to retrieve the item. Url string `json:"url,omitempty"` }
type GitCherryPick ¶
type GitCherryPick struct { Links *ReferenceLinks `json:"_links,omitempty"` DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"` Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"` Status string `json:"status,omitempty"` // A URL that can be used to make further requests for status about the operation Url string `json:"url,omitempty"` }
This object is returned from Cherry Pick operations and provides the id and status of the operation
type GitCommit ¶
type GitCommit struct { // A collection of related REST reference links. Links *ReferenceLinks `json:"_links,omitempty"` // Author of the commit. Author *GitUserDate `json:"author,omitempty"` // Counts of the types of changes (edits, deletes, etc.) included with the commit. ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"` // An enumeration of the changes included with the commit. Changes []GitChange `json:"changes,omitempty"` // Comment or message of the commit. Comment string `json:"comment,omitempty"` // Indicates if the comment is truncated from the full Git commit comment message. CommentTruncated bool `json:"commentTruncated,omitempty"` // ID (SHA-1) of the commit. CommitId string `json:"commitId,omitempty"` // Committer of the commit. Committer *GitUserDate `json:"committer,omitempty"` // An enumeration of the parent commit IDs for this commit. Parents []string `json:"parents,omitempty"` // The push associated with this commit. Push *GitPushRef `json:"push,omitempty"` // Remote URL path to the commit. RemoteUrl string `json:"remoteUrl,omitempty"` // A list of status metadata from services and extensions that may associate additional information to the commit. Statuses []GitStatus `json:"statuses,omitempty"` // REST URL for this resource. Url string `json:"url,omitempty"` // A list of workitems associated with this commit. WorkItems []ResourceRef `json:"workItems,omitempty"` }
type GitCommitChanges ¶
type GitCommitChanges struct { ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"` Changes []GitChange `json:"changes,omitempty"` }
type GitCommitDiffs ¶
type GitCommitDiffs struct { AheadCount int32 `json:"aheadCount,omitempty"` AllChangesIncluded bool `json:"allChangesIncluded,omitempty"` BaseCommit string `json:"baseCommit,omitempty"` BehindCount int32 `json:"behindCount,omitempty"` ChangeCounts map[string]int32 `json:"changeCounts,omitempty"` Changes []GitChange `json:"changes,omitempty"` CommonCommit string `json:"commonCommit,omitempty"` TargetCommit string `json:"targetCommit,omitempty"` }
type GitCommitRef ¶
type GitCommitRef struct { // A collection of related REST reference links. Links *ReferenceLinks `json:"_links,omitempty"` // Author of the commit. Author *GitUserDate `json:"author,omitempty"` // Counts of the types of changes (edits, deletes, etc.) included with the commit. ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"` // An enumeration of the changes included with the commit. Changes []GitChange `json:"changes,omitempty"` // Comment or message of the commit. Comment string `json:"comment,omitempty"` // Indicates if the comment is truncated from the full Git commit comment message. CommentTruncated bool `json:"commentTruncated,omitempty"` // ID (SHA-1) of the commit. CommitId string `json:"commitId,omitempty"` // Committer of the commit. Committer *GitUserDate `json:"committer,omitempty"` // An enumeration of the parent commit IDs for this commit. Parents []string `json:"parents,omitempty"` // The push associated with this commit. Push *GitPushRef `json:"push,omitempty"` // Remote URL path to the commit. RemoteUrl string `json:"remoteUrl,omitempty"` // A list of status metadata from services and extensions that may associate additional information to the commit. Statuses []GitStatus `json:"statuses,omitempty"` // REST URL for this resource. Url string `json:"url,omitempty"` // A list of workitems associated with this commit. WorkItems []ResourceRef `json:"workItems,omitempty"` }
Provides properties that describe a Git commit and associated metadata.
type GitCommitToCreate ¶
type GitCommitToCreate struct { BaseRef *GitRef `json:"baseRef,omitempty"` Comment string `json:"comment,omitempty"` PathActions []GitPathAction `json:"pathActions,omitempty"` }
type GitConflict ¶
type GitConflict struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
type GitConflictAddAdd ¶
type GitConflictAddAdd struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for AddAdd conflict
type GitConflictAddRename ¶
type GitConflictAddRename struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for RenameAdd conflict
type GitConflictDeleteEdit ¶
type GitConflictDeleteEdit struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for EditDelete conflict
type GitConflictDeleteRename ¶
type GitConflictDeleteRename struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for RenameDelete conflict
type GitConflictDirectoryFile ¶
type GitConflictDirectoryFile struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for FileDirectory conflict
type GitConflictEditDelete ¶
type GitConflictEditDelete struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for DeleteEdit conflict
type GitConflictEditEdit ¶
type GitConflictEditEdit struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for EditEdit conflict
type GitConflictFileDirectory ¶
type GitConflictFileDirectory struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for DirectoryFile conflict
type GitConflictRename1to2 ¶
type GitConflictRename1to2 struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for Rename1to2 conflict
type GitConflictRename2to1 ¶
type GitConflictRename2to1 struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for Rename2to1 conflict
type GitConflictRenameAdd ¶
type GitConflictRenameAdd struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for AddRename conflict
type GitConflictRenameDelete ¶
type GitConflictRenameDelete struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for DeleteRename conflict
type GitConflictRenameRename ¶
type GitConflictRenameRename struct { Links *ReferenceLinks `json:"_links,omitempty"` ConflictId int32 `json:"conflictId,omitempty"` ConflictPath string `json:"conflictPath,omitempty"` ConflictType string `json:"conflictType,omitempty"` MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"` MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"` MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"` MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"` ResolutionError string `json:"resolutionError,omitempty"` ResolutionStatus string `json:"resolutionStatus,omitempty"` ResolvedBy *IdentityRef `json:"resolvedBy,omitempty"` ResolvedDate time.Time `json:"resolvedDate,omitempty"` Url string `json:"url,omitempty"` }
Data object for RenameRename conflict
type GitConflictUpdateResult ¶
type GitConflictUpdateResult struct { // Conflict ID that was provided by input ConflictId int32 `json:"conflictId,omitempty"` // Reason for failing CustomMessage string `json:"customMessage,omitempty"` // New state of the conflict after updating UpdatedConflict *GitConflict `json:"updatedConflict,omitempty"` // Status of the update on the server UpdateStatus string `json:"updateStatus,omitempty"` }
type GitDeletedRepository ¶
type GitDeletedRepository struct { CreatedDate time.Time `json:"createdDate,omitempty"` DeletedBy *IdentityRef `json:"deletedBy,omitempty"` DeletedDate time.Time `json:"deletedDate,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Project *TeamProjectReference `json:"project,omitempty"` }
type GitFilePathsCollection ¶
type GitForkOperationStatusDetail ¶
type GitForkOperationStatusDetail struct { // All valid steps for the forking process AllSteps []string `json:"allSteps,omitempty"` // Index into AllSteps for the current step CurrentStep int32 `json:"currentStep,omitempty"` // Error message if the operation failed. ErrorMessage string `json:"errorMessage,omitempty"` }
Status information about a requested fork operation.
type GitForkRef ¶
type GitForkRef struct { Links *ReferenceLinks `json:"_links,omitempty"` Creator *IdentityRef `json:"creator,omitempty"` IsLocked bool `json:"isLocked,omitempty"` IsLockedBy *IdentityRef `json:"isLockedBy,omitempty"` Name string `json:"name,omitempty"` ObjectId string `json:"objectId,omitempty"` PeeledObjectId string `json:"peeledObjectId,omitempty"` Statuses []GitStatus `json:"statuses,omitempty"` Url string `json:"url,omitempty"` }
Information about a fork ref.
type GitForkSyncRequest ¶
type GitForkSyncRequest struct { // Collection of related links Links *ReferenceLinks `json:"_links,omitempty"` DetailedStatus *GitForkOperationStatusDetail `json:"detailedStatus,omitempty"` // Unique identifier for the operation. OperationId int32 `json:"operationId,omitempty"` // Fully-qualified identifier for the source repository. Source *GlobalGitRepositoryKey `json:"source,omitempty"` // If supplied, the set of ref mappings to use when performing a \"sync\" or create. If missing, all refs will be synchronized. SourceToTargetRefs []SourceToTargetRef `json:"sourceToTargetRefs,omitempty"` Status string `json:"status,omitempty"` }
Request to sync data between two forks.
type GitForkSyncRequestParameters ¶
type GitForkSyncRequestParameters struct { // Fully-qualified identifier for the source repository. Source *GlobalGitRepositoryKey `json:"source,omitempty"` // If supplied, the set of ref mappings to use when performing a \"sync\" or create. If missing, all refs will be synchronized. SourceToTargetRefs []SourceToTargetRef `json:"sourceToTargetRefs,omitempty"` }
Parameters for creating a fork request
type GitForkTeamProjectReference ¶
type GitForkTeamProjectReference struct { // Project abbreviation. Abbreviation string `json:"abbreviation,omitempty"` // The project's description (if any). Description string `json:"description,omitempty"` // Project identifier. Id string `json:"id,omitempty"` // Project name. Name string `json:"name,omitempty"` // Project revision. Revision int64 `json:"revision,omitempty"` // Project state. State string `json:"state,omitempty"` // Url to the full version of the object. Url string `json:"url,omitempty"` // Project visibility. Visibility string `json:"visibility,omitempty"` }
type GitImportFailedEvent ¶
type GitImportFailedEvent struct { SourceRepositoryName string `json:"sourceRepositoryName,omitempty"` TargetRepository *GitRepository `json:"targetRepository,omitempty"` }
type GitImportGitSource ¶
type GitImportGitSource struct { // Tells if this is a sync request or not Overwrite bool `json:"overwrite,omitempty"` // Url for the source repo Url string `json:"url,omitempty"` }
Parameter for creating a git import request when source is Git version control
type GitImportRequest ¶
type GitImportRequest struct { // Links to related resources. Links *ReferenceLinks `json:"_links,omitempty"` // Detailed status of the import, including the current step and an error message, if applicable. DetailedStatus *GitImportStatusDetail `json:"detailedStatus,omitempty"` // The unique identifier for this import request. ImportRequestId int32 `json:"importRequestId,omitempty"` // Parameters for creating the import request. Parameters *GitImportRequestParameters `json:"parameters,omitempty"` // The target repository for this import. Repository *GitRepository `json:"repository,omitempty"` // Current status of the import. Status string `json:"status,omitempty"` // A link back to this import request resource. Url string `json:"url,omitempty"` }
A request to import data from a remote source control system.
type GitImportRequestParameters ¶
type GitImportRequestParameters struct { // Option to delete service endpoint when import is done DeleteServiceEndpointAfterImportIsDone bool `json:"deleteServiceEndpointAfterImportIsDone,omitempty"` // Source for importing git repository GitSource *GitImportGitSource `json:"gitSource,omitempty"` // Service Endpoint for connection to external endpoint ServiceEndpointId string `json:"serviceEndpointId,omitempty"` // Source for importing tfvc repository TfvcSource *GitImportTfvcSource `json:"tfvcSource,omitempty"` }
Parameters for creating an import request
type GitImportStatusDetail ¶
type GitImportStatusDetail struct { // All valid steps for the import process AllSteps []string `json:"allSteps,omitempty"` // Index into AllSteps for the current step CurrentStep int32 `json:"currentStep,omitempty"` // Error message if the operation failed. ErrorMessage string `json:"errorMessage,omitempty"` }
Additional status information about an import request.
type GitImportSucceededEvent ¶
type GitImportSucceededEvent struct { SourceRepositoryName string `json:"sourceRepositoryName,omitempty"` TargetRepository *GitRepository `json:"targetRepository,omitempty"` }
type GitImportTfvcSource ¶
type GitImportTfvcSource struct { // Set true to import History, false otherwise ImportHistory bool `json:"importHistory,omitempty"` // Get history for last n days (max allowed value is 180 days) ImportHistoryDurationInDays int32 `json:"importHistoryDurationInDays,omitempty"` // Path which we want to import (this can be copied from Path Control in Explorer) Path string `json:"path,omitempty"` }
Parameter for creating a git import request when source is tfvc version control
type GitItem ¶
type GitItem struct { Links *ReferenceLinks `json:"_links,omitempty"` Content string `json:"content,omitempty"` ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"` IsFolder bool `json:"isFolder,omitempty"` IsSymLink bool `json:"isSymLink,omitempty"` Path string `json:"path,omitempty"` Url string `json:"url,omitempty"` }
type GitItemDescriptor ¶
type GitItemDescriptor struct { // Path to item Path string `json:"path,omitempty"` // Specifies whether to include children (OneLevel), all descendants (Full), or None RecursionLevel string `json:"recursionLevel,omitempty"` // Version string (interpretation based on VersionType defined in subclass Version string `json:"version,omitempty"` // Version modifiers (e.g. previous) VersionOptions string `json:"versionOptions,omitempty"` // How to interpret version (branch,tag,commit) VersionType string `json:"versionType,omitempty"` }
type GitItemRequestData ¶
type GitItemRequestData struct { // Whether to include metadata for all items IncludeContentMetadata bool `json:"includeContentMetadata,omitempty"` // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` // Collection of items to fetch, including path, version, and recursion level ItemDescriptors []GitItemDescriptor `json:"itemDescriptors,omitempty"` // Whether to include shallow ref to commit that last changed each item LatestProcessedChange bool `json:"latestProcessedChange,omitempty"` }
type GitLastChangeItem ¶
type GitLastChangeTreeItems ¶
type GitLastChangeTreeItems struct { // The list of commits referenced by Items, if they were requested. Commits []GitCommitRef `json:"commits,omitempty"` // The last change of items. Items []GitLastChangeItem `json:"items,omitempty"` // The last explored time, in case the result is not comprehensive. Null otherwise. LastExploredTime time.Time `json:"lastExploredTime,omitempty"` }
type GitMergeOriginRef ¶
type GitMergeOriginRef struct {
PullRequestId int32 `json:"pullRequestId,omitempty"`
}
type GitObject ¶
type GitObject struct { // Object Id (Sha1Id). ObjectId string `json:"objectId,omitempty"` // Type of object (Commit, Tree, Blob, Tag) ObjectType string `json:"objectType,omitempty"` }
Git object identifier and type information.
type GitPathAction ¶
type GitPullRequest ¶
type GitPullRequest struct { // Links to other related objects. Links *ReferenceLinks `json:"_links,omitempty"` // A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: “`vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}“` ArtifactId string `json:"artifactId,omitempty"` // If set, auto-complete is enabled for this pull request and this is the identity that enabled it. AutoCompleteSetBy *IdentityRef `json:"autoCompleteSetBy,omitempty"` // The user who closed the pull request. ClosedBy *IdentityRef `json:"closedBy,omitempty"` // The date when the pull request was closed (completed, abandoned, or merged externally). ClosedDate time.Time `json:"closedDate,omitempty"` // The code review ID of the pull request. Used internally. CodeReviewId int32 `json:"codeReviewId,omitempty"` // The commits contained in the pull request. Commits []GitCommitRef `json:"commits,omitempty"` // Options which affect how the pull request will be merged when it is completed. CompletionOptions *GitPullRequestCompletionOptions `json:"completionOptions,omitempty"` // The most recent date at which the pull request entered the queue to be completed. Used internally. CompletionQueueTime time.Time `json:"completionQueueTime,omitempty"` // The identity of the user who created the pull request. CreatedBy *IdentityRef `json:"createdBy,omitempty"` // The date when the pull request was created. CreationDate time.Time `json:"creationDate,omitempty"` // The description of the pull request. Description string `json:"description,omitempty"` // If this is a PR from a fork this will contain information about its source. ForkSource *GitForkRef `json:"forkSource,omitempty"` // The labels associated with the pull request. Labels []WebApiTagDefinition `json:"labels,omitempty"` // The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. LastMergeCommit *GitCommitRef `json:"lastMergeCommit,omitempty"` // The commit at the head of the source branch at the time of the last pull request merge. LastMergeSourceCommit *GitCommitRef `json:"lastMergeSourceCommit,omitempty"` // The commit at the head of the target branch at the time of the last pull request merge. LastMergeTargetCommit *GitCommitRef `json:"lastMergeTargetCommit,omitempty"` // If set, pull request merge failed for this reason. MergeFailureMessage string `json:"mergeFailureMessage,omitempty"` // The type of failure (if any) of the pull request merge. MergeFailureType string `json:"mergeFailureType,omitempty"` // The ID of the job used to run the pull request merge. Used internally. MergeId string `json:"mergeId,omitempty"` // Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. MergeOptions *GitPullRequestMergeOptions `json:"mergeOptions,omitempty"` // The current status of the pull request merge. MergeStatus string `json:"mergeStatus,omitempty"` // The ID of the pull request. PullRequestId int32 `json:"pullRequestId,omitempty"` // Used internally. RemoteUrl string `json:"remoteUrl,omitempty"` // The repository containing the target branch of the pull request. Repository *GitRepository `json:"repository,omitempty"` // A list of reviewers on the pull request along with the state of their votes. Reviewers []IdentityRefWithVote `json:"reviewers,omitempty"` // The name of the source branch of the pull request. SourceRefName string `json:"sourceRefName,omitempty"` // The status of the pull request. Status string `json:"status,omitempty"` // If true, this pull request supports multiple iterations. Iteration support means individual pushes to the source branch of the pull request can be reviewed and comments left in one iteration will be tracked across future iterations. SupportsIterations bool `json:"supportsIterations,omitempty"` // The name of the target branch of the pull request. TargetRefName string `json:"targetRefName,omitempty"` // The title of the pull request. Title string `json:"title,omitempty"` // Used internally. Url string `json:"url,omitempty"` // Any work item references associated with this pull request. WorkItemRefs []ResourceRef `json:"workItemRefs,omitempty"` }
Represents all the data associated with a pull request.
type GitPullRequestChange ¶
type GitPullRequestChange struct { // The type of change that was made to the item. ChangeType string `json:"changeType,omitempty"` // Current version. Item string `json:"item,omitempty"` // Content of the item after the change. NewContent *ItemContent `json:"newContent,omitempty"` // Path of the item on the server. SourceServerItem string `json:"sourceServerItem,omitempty"` // URL to retrieve the item. Url string `json:"url,omitempty"` }
Change made in a pull request.
type GitPullRequestCommentThread ¶
type GitPullRequestCommentThread struct { // Links to other related objects. Links *ReferenceLinks `json:"_links,omitempty"` // A list of the comments. Comments []Comment `json:"comments,omitempty"` // The comment thread id. Id int32 `json:"id,omitempty"` // Set of identities related to this thread Identities map[string]IdentityRef `json:"identities,omitempty"` // Specify if the thread is deleted which happens when all comments are deleted. IsDeleted bool `json:"isDeleted,omitempty"` // The time this thread was last updated. LastUpdatedDate time.Time `json:"lastUpdatedDate,omitempty"` // Optional properties associated with the thread as a collection of key-value pairs. Properties *PropertiesCollection `json:"properties,omitempty"` // The time this thread was published. PublishedDate time.Time `json:"publishedDate,omitempty"` // The status of the comment thread. Status string `json:"status,omitempty"` // Specify thread context such as position in left/right file. ThreadContext *CommentThreadContext `json:"threadContext,omitempty"` }
Represents a comment thread of a pull request. A thread contains meta data about the file it was left on (if any) along with one or more comments (an initial comment and the subsequent replies).
type GitPullRequestCommentThreadContext ¶
type GitPullRequestCommentThreadContext struct { // Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. ChangeTrackingId int32 `json:"changeTrackingId,omitempty"` // The iteration context being viewed when the thread was created. IterationContext *CommentIterationContext `json:"iterationContext,omitempty"` // The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. TrackingCriteria *CommentTrackingCriteria `json:"trackingCriteria,omitempty"` }
Comment thread context contains details about what diffs were being viewed at the time of thread creation and whether or not the thread has been tracked from that original diff.
type GitPullRequestCompletionOptions ¶
type GitPullRequestCompletionOptions struct { // If true, policies will be explicitly bypassed while the pull request is completed. BypassPolicy bool `json:"bypassPolicy,omitempty"` // If policies are bypassed, this reason is stored as to why bypass was used. BypassReason string `json:"bypassReason,omitempty"` // If true, the source branch of the pull request will be deleted after completion. DeleteSourceBranch bool `json:"deleteSourceBranch,omitempty"` // If set, this will be used as the commit message of the merge commit. MergeCommitMessage string `json:"mergeCommitMessage,omitempty"` // If true, the commits in the pull request will be squash-merged into the specified target branch on completion. SquashMerge bool `json:"squashMerge,omitempty"` // If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved) TransitionWorkItems bool `json:"transitionWorkItems,omitempty"` // If true, the current completion attempt was triggered via auto-complete. Used internally. TriggeredByAutoComplete bool `json:"triggeredByAutoComplete,omitempty"` }
Preferences about how the pull request should be completed.
type GitPullRequestIteration ¶
type GitPullRequestIteration struct { // A collection of related REST reference links. Links *ReferenceLinks `json:"_links,omitempty"` // Author of the pull request iteration. Author *IdentityRef `json:"author,omitempty"` // Changes included with the pull request iteration. ChangeList []GitPullRequestChange `json:"changeList,omitempty"` // The commits included with the pull request iteration. Commits []GitCommitRef `json:"commits,omitempty"` // The first common Git commit of the source and target refs. CommonRefCommit *GitCommitRef `json:"commonRefCommit,omitempty"` // The creation date of the pull request iteration. CreatedDate time.Time `json:"createdDate,omitempty"` // Description of the pull request iteration. Description string `json:"description,omitempty"` // Indicates if the Commits property contains a truncated list of commits in this pull request iteration. HasMoreCommits bool `json:"hasMoreCommits,omitempty"` // ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request. Id int32 `json:"id,omitempty"` // If the iteration reason is Retarget, this is the refName of the new target NewTargetRefName string `json:"newTargetRefName,omitempty"` // The Git push information associated with this pull request iteration. Push *GitPushRef `json:"push,omitempty"` // The reason for which the pull request iteration was created. Reason string `json:"reason,omitempty"` // The source Git commit of this iteration. SourceRefCommit *GitCommitRef `json:"sourceRefCommit,omitempty"` // The target Git commit of this iteration. TargetRefCommit *GitCommitRef `json:"targetRefCommit,omitempty"` // The updated date of the pull request iteration. UpdatedDate time.Time `json:"updatedDate,omitempty"` }
Provides properties that describe a Git pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request.
type GitPullRequestIterationChanges ¶
type GitPullRequestIterationChanges struct { // Changes made in the iteration. ChangeEntries []GitPullRequestChange `json:"changeEntries,omitempty"` // Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. NextSkip int32 `json:"nextSkip,omitempty"` // Value to specify as top to get the next page of changes. This will be zero if there are no more changes. NextTop int32 `json:"nextTop,omitempty"` }
Collection of changes made in a pull request.
type GitPullRequestMergeOptions ¶
type GitPullRequestMergeOptions struct { DetectRenameFalsePositives bool `json:"detectRenameFalsePositives,omitempty"` // If true, rename detection will not be performed during the merge. DisableRenames bool `json:"disableRenames,omitempty"` }
The options which are used when a pull request merge is created.
type GitPullRequestQuery ¶
type GitPullRequestQuery struct { // The queries to perform. Queries []GitPullRequestQueryInput `json:"queries,omitempty"` // The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. Results []map[string][]GitPullRequest `json:"results,omitempty"` }
A set of pull request queries and their results.
type GitPullRequestQueryInput ¶
type GitPullRequestQueryInput struct { // The list of commit IDs to search for. Items []string `json:"items,omitempty"` // The type of query to perform. Type_ string `json:"type,omitempty"` }
Pull request query input parameters.
type GitPullRequestReviewFileContentInfo ¶
type GitPullRequestReviewFileContentInfo struct { Links *ReferenceLinks `json:"_links,omitempty"` // The file change path. Path string `json:"path,omitempty"` // Content hash of on-disk representation of file content. Its calculated by the client by using SHA1 hash function. Ensure that uploaded file has same encoding as in source control. SHA1Hash string `json:"sHA1Hash,omitempty"` }
type GitPullRequestSearchCriteria ¶
type GitPullRequestSearchCriteria struct { // If set, search for pull requests that were created by this identity. CreatorId string `json:"creatorId,omitempty"` // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` // If set, search for pull requests whose target branch is in this repository. RepositoryId string `json:"repositoryId,omitempty"` // If set, search for pull requests that have this identity as a reviewer. ReviewerId string `json:"reviewerId,omitempty"` // If set, search for pull requests from this branch. SourceRefName string `json:"sourceRefName,omitempty"` // If set, search for pull requests whose source branch is in this repository. SourceRepositoryId string `json:"sourceRepositoryId,omitempty"` // If set, search for pull requests that are in this state. Defaults to Active if unset. Status string `json:"status,omitempty"` // If set, search for pull requests into this branch. TargetRefName string `json:"targetRefName,omitempty"` }
Pull requests can be searched for matching this criteria.
type GitPullRequestStatus ¶
type GitPullRequestStatus struct { // Reference links. Links *ReferenceLinks `json:"_links,omitempty"` // Context of the status. Context *GitStatusContext `json:"context,omitempty"` // Identity that created the status. CreatedBy *IdentityRef `json:"createdBy,omitempty"` // Creation date and time of the status. CreationDate time.Time `json:"creationDate,omitempty"` // Status description. Typically describes current state of the status. Description string `json:"description,omitempty"` // Status identifier. Id int32 `json:"id,omitempty"` // State of the status. State string `json:"state,omitempty"` // URL with status details. TargetUrl string `json:"targetUrl,omitempty"` // Last update date and time of the status. UpdatedDate time.Time `json:"updatedDate,omitempty"` }
This class contains the metadata of a service/extension posting pull request status. Status can be associated with a pull request or an iteration.
type GitPush ¶
type GitPush struct { Links *ReferenceLinks `json:"_links,omitempty"` Date time.Time `json:"date,omitempty"` PushedBy *IdentityRef `json:"pushedBy,omitempty"` PushId int32 `json:"pushId,omitempty"` Url string `json:"url,omitempty"` }
type GitPushEventData ¶
type GitPushEventData struct { AfterId string `json:"afterId,omitempty"` BeforeId string `json:"beforeId,omitempty"` Branch string `json:"branch,omitempty"` Commits []GitCommit `json:"commits,omitempty"` Repository *GitRepository `json:"repository,omitempty"` }
type GitPushRef ¶
type GitPushRef struct { Links *ReferenceLinks `json:"_links,omitempty"` Date time.Time `json:"date,omitempty"` PushedBy *IdentityRef `json:"pushedBy,omitempty"` PushId int32 `json:"pushId,omitempty"` Url string `json:"url,omitempty"` }
type GitPushSearchCriteria ¶
type GitPushSearchCriteria struct { FromDate time.Time `json:"fromDate,omitempty"` // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` IncludeRefUpdates bool `json:"includeRefUpdates,omitempty"` PusherId string `json:"pusherId,omitempty"` RefName string `json:"refName,omitempty"` ToDate time.Time `json:"toDate,omitempty"` }
type GitQueryBranchStatsCriteria ¶
type GitQueryBranchStatsCriteria struct { BaseCommit *GitVersionDescriptor `json:"baseCommit,omitempty"` TargetCommits []GitVersionDescriptor `json:"targetCommits,omitempty"` }
type GitQueryCommitsCriteria ¶
type GitQueryCommitsCriteria struct { // Number of entries to skip Skip int32 `json:"$skip,omitempty"` // Maximum number of entries to retrieve Top int32 `json:"$top,omitempty"` // Alias or display name of the author Author string `json:"author,omitempty"` // If provided, the earliest commit in the graph to search CompareVersion *GitVersionDescriptor `json:"compareVersion,omitempty"` // Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path. ExcludeDeletes bool `json:"excludeDeletes,omitempty"` // If provided, a lower bound for filtering commits alphabetically FromCommitId string `json:"fromCommitId,omitempty"` // If provided, only include history entries created after this date (string) FromDate string `json:"fromDate,omitempty"` // What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified. HistoryMode string `json:"historyMode,omitempty"` // If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters. Ids []string `json:"ids,omitempty"` // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` // Whether to include the push information IncludePushData bool `json:"includePushData,omitempty"` // Whether to include the image Url for committers and authors IncludeUserImageUrl bool `json:"includeUserImageUrl,omitempty"` // Whether to include linked work items IncludeWorkItems bool `json:"includeWorkItems,omitempty"` // Path of item to search under ItemPath string `json:"itemPath,omitempty"` // If provided, identifies the commit or branch to search ItemVersion *GitVersionDescriptor `json:"itemVersion,omitempty"` // If provided, an upper bound for filtering commits alphabetically ToCommitId string `json:"toCommitId,omitempty"` // If provided, only include history entries created before this date (string) ToDate string `json:"toDate,omitempty"` // Alias or display name of the committer User string `json:"user,omitempty"` }
type GitQueryRefsCriteria ¶
type GitQueryRefsCriteria struct { // List of commit Ids to be searched CommitIds []string `json:"commitIds,omitempty"` // List of complete or partial names for refs to be searched RefNames []string `json:"refNames,omitempty"` // Type of search on refNames, if provided SearchType string `json:"searchType,omitempty"` }
type GitRecycleBinRepositoryDetails ¶
type GitRecycleBinRepositoryDetails struct { // Setting to false will undo earlier deletion and restore the repository. Deleted bool `json:"deleted,omitempty"` }
type GitRef ¶
type GitRef struct { Links *ReferenceLinks `json:"_links,omitempty"` Creator *IdentityRef `json:"creator,omitempty"` IsLocked bool `json:"isLocked,omitempty"` IsLockedBy *IdentityRef `json:"isLockedBy,omitempty"` Name string `json:"name,omitempty"` ObjectId string `json:"objectId,omitempty"` PeeledObjectId string `json:"peeledObjectId,omitempty"` Statuses []GitStatus `json:"statuses,omitempty"` Url string `json:"url,omitempty"` }
type GitRefFavorite ¶
type GitRefFavorite struct { Links *ReferenceLinks `json:"_links,omitempty"` Id int32 `json:"id,omitempty"` IdentityId string `json:"identityId,omitempty"` Name string `json:"name,omitempty"` RepositoryId string `json:"repositoryId,omitempty"` Type_ string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type GitRefUpdate ¶
type GitRefUpdateResult ¶
type GitRefUpdateResult struct { // Custom message for the result object For instance, Reason for failing. CustomMessage string `json:"customMessage,omitempty"` // Whether the ref is locked or not IsLocked bool `json:"isLocked,omitempty"` // Ref name Name string `json:"name,omitempty"` // New object ID NewObjectId string `json:"newObjectId,omitempty"` // Old object ID OldObjectId string `json:"oldObjectId,omitempty"` // Name of the plugin that rejected the updated. RejectedBy string `json:"rejectedBy,omitempty"` // Repository ID RepositoryId string `json:"repositoryId,omitempty"` // True if the ref update succeeded, false otherwise Success bool `json:"success,omitempty"` // Status of the update from the TFS server. UpdateStatus string `json:"updateStatus,omitempty"` }
type GitRepository ¶
type GitRepository struct { Links *ReferenceLinks `json:"_links,omitempty"` DefaultBranch string `json:"defaultBranch,omitempty"` Id string `json:"id,omitempty"` // True if the repository was created as a fork IsFork bool `json:"isFork,omitempty"` Name string `json:"name,omitempty"` ParentRepository *GitRepositoryRef `json:"parentRepository,omitempty"` Project *TeamProjectReference `json:"project,omitempty"` RemoteUrl string `json:"remoteUrl,omitempty"` // Compressed size (bytes) of the repository. Size int64 `json:"size,omitempty"` SshUrl string `json:"sshUrl,omitempty"` Url string `json:"url,omitempty"` ValidRemoteUrls []string `json:"validRemoteUrls,omitempty"` }
type GitRepositoryCreateOptions ¶
type GitRepositoryCreateOptions struct { Name string `json:"name,omitempty"` ParentRepository *GitRepositoryRef `json:"parentRepository,omitempty"` Project *TeamProjectReference `json:"project,omitempty"` }
type GitRepositoryRef ¶
type GitRepositoryRef struct { // Team Project Collection where this Fork resides Collection *TeamProjectCollectionReference `json:"collection,omitempty"` Id string `json:"id,omitempty"` // True if the repository was created as a fork IsFork bool `json:"isFork,omitempty"` Name string `json:"name,omitempty"` Project *TeamProjectReference `json:"project,omitempty"` RemoteUrl string `json:"remoteUrl,omitempty"` SshUrl string `json:"sshUrl,omitempty"` Url string `json:"url,omitempty"` }
type GitRepositoryStats ¶
type GitResolutionMergeContent ¶
type GitResolutionMergeContent struct { MergeType string `json:"mergeType,omitempty"` UserMergedBlob *GitBlobRef `json:"userMergedBlob,omitempty"` UserMergedContent []string `json:"userMergedContent,omitempty"` }
type GitResolutionPickOneAction ¶
type GitResolutionPickOneAction struct {
Action string `json:"action,omitempty"`
}
type GitResolutionRename1to2 ¶
type GitResolutionRename1to2 struct { MergeType string `json:"mergeType,omitempty"` UserMergedBlob *GitBlobRef `json:"userMergedBlob,omitempty"` UserMergedContent []string `json:"userMergedContent,omitempty"` }
type GitRevert ¶
type GitRevert struct { Links *ReferenceLinks `json:"_links,omitempty"` DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"` Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"` Status string `json:"status,omitempty"` // A URL that can be used to make further requests for status about the operation Url string `json:"url,omitempty"` }
type GitStatus ¶
type GitStatus struct { // Reference links. Links *ReferenceLinks `json:"_links,omitempty"` // Context of the status. Context *GitStatusContext `json:"context,omitempty"` // Identity that created the status. CreatedBy *IdentityRef `json:"createdBy,omitempty"` // Creation date and time of the status. CreationDate time.Time `json:"creationDate,omitempty"` // Status description. Typically describes current state of the status. Description string `json:"description,omitempty"` // Status identifier. Id int32 `json:"id,omitempty"` // State of the status. State string `json:"state,omitempty"` // URL with status details. TargetUrl string `json:"targetUrl,omitempty"` // Last update date and time of the status. UpdatedDate time.Time `json:"updatedDate,omitempty"` }
This class contains the metadata of a service/extension posting a status.
type GitStatusContext ¶
type GitStatusContext struct { // Genre of the status. Typically name of the service/tool generating the status, can be empty. Genre string `json:"genre,omitempty"` // Name identifier of the status, cannot be null or empty. Name string `json:"name,omitempty"` }
Status context that uniquely identifies the status.
type GitSuggestion ¶
type GitSuggestion struct { // Specific properties describing the suggestion. Properties map[string]interface{} `json:"properties,omitempty"` // The type of suggestion (e.g. pull request). Type_ string `json:"type,omitempty"` }
An object describing the git suggestion. Git suggestions are currently limited to suggested pull requests.
type GitTargetVersionDescriptor ¶
type GitTargetVersionDescriptor struct { // Version string identifier (name of tag/branch, SHA1 of commit) Version string `json:"version,omitempty"` // Version options - Specify additional modifiers to version (e.g Previous) VersionOptions string `json:"versionOptions,omitempty"` // Version type (branch, tag, or commit). Determines how Id is interpreted VersionType string `json:"versionType,omitempty"` }
type GitTemplate ¶
type GitTreeDiff ¶
type GitTreeDiff struct { // ObjectId of the base tree of this diff. BaseTreeId string `json:"baseTreeId,omitempty"` // List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. DiffEntries []GitTreeDiffEntry `json:"diffEntries,omitempty"` // ObjectId of the target tree of this diff. TargetTreeId string `json:"targetTreeId,omitempty"` // REST Url to this resource. Url string `json:"url,omitempty"` }
type GitTreeDiffEntry ¶
type GitTreeDiffEntry struct { // SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds. BaseObjectId string `json:"baseObjectId,omitempty"` // Type of change that affected this entry. ChangeType string `json:"changeType,omitempty"` // Object type of the tree entry. Blob, Tree or Commit(\"submodule\") ObjectType string `json:"objectType,omitempty"` // Relative path in base and target trees. Path string `json:"path,omitempty"` // SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes. TargetObjectId string `json:"targetObjectId,omitempty"` }
type GitTreeDiffResponse ¶
type GitTreeDiffResponse struct { // The HTTP client methods find the continuation token header in the response and populate this field. ContinuationToken []string `json:"continuationToken,omitempty"` TreeDiff *GitTreeDiff `json:"treeDiff,omitempty"` }
type GitTreeEntryRef ¶
type GitTreeEntryRef struct { // Blob or tree GitObjectType string `json:"gitObjectType,omitempty"` // Mode represented as octal string Mode string `json:"mode,omitempty"` // SHA1 hash of git object ObjectId string `json:"objectId,omitempty"` // Path relative to parent tree object RelativePath string `json:"relativePath,omitempty"` // Size of content Size int64 `json:"size,omitempty"` // url to retrieve tree or blob Url string `json:"url,omitempty"` }
type GitTreeRef ¶
type GitTreeRef struct { Links *ReferenceLinks `json:"_links,omitempty"` // SHA1 hash of git object ObjectId string `json:"objectId,omitempty"` // Sum of sizes of all children Size int64 `json:"size,omitempty"` // Blobs and trees under this tree TreeEntries []GitTreeEntryRef `json:"treeEntries,omitempty"` // Url to tree Url string `json:"url,omitempty"` }
type GitUserDate ¶
type GitUserDate struct { // Date of the Git operation. Date time.Time `json:"date,omitempty"` // Email address of the user performing the Git operation. Email string `json:"email,omitempty"` // Url for the user's avatar. ImageUrl string `json:"imageUrl,omitempty"` // Name of the user performing the Git operation. Name string `json:"name,omitempty"` }
User info and date for Git operations.
type GitVersionDescriptor ¶
type GitVersionDescriptor struct { // Version string identifier (name of tag/branch, SHA1 of commit) Version string `json:"version,omitempty"` // Version options - Specify additional modifiers to version (e.g Previous) VersionOptions string `json:"versionOptions,omitempty"` // Version type (branch, tag, or commit). Determines how Id is interpreted VersionType string `json:"versionType,omitempty"` }
type GlobalGitRepositoryKey ¶
type GlobalGitRepositoryKey struct { // Team Project Collection ID of the collection for the repository. CollectionId string `json:"collectionId,omitempty"` // Team Project ID of the project for the repository. ProjectId string `json:"projectId,omitempty"` // ID of the repository. RepositoryId string `json:"repositoryId,omitempty"` }
Globally unique key for a repository.
type GraphSubjectBase ¶
type GraphSubjectBase struct { // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. Links *ReferenceLinks `json:"_links,omitempty"` // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. Descriptor string `json:"descriptor,omitempty"` // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. DisplayName string `json:"displayName,omitempty"` // This url is the full route to the source resource of this graph subject. Url string `json:"url,omitempty"` }
type HistoryEntry ¶
type HistoryEntry struct { // The Change list (changeset/commit/shelveset) for this point in history ChangeList *ChangeList `json:"changeList,omitempty"` // The change made to the item from this change list (only relevant for File history, not folders) ItemChangeType string `json:"itemChangeType,omitempty"` // The path of the item at this point in history (only relevant for File history, not folders) ServerItem string `json:"serverItem,omitempty"` }
type IdentityRef ¶
type IdentityRef struct { // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. Links *ReferenceLinks `json:"_links,omitempty"` // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. Descriptor string `json:"descriptor,omitempty"` // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. DisplayName string `json:"displayName,omitempty"` // This url is the full route to the source resource of this graph subject. Url string `json:"url,omitempty"` // The Unique Name for the graph subject UniqueName string `json:"uniqueName,omitempty"` // The vsts identitier for the user. ID string `json:"id,omitempty"` }
type IdentityRefWithVote ¶
type IdentityRefWithVote struct { // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. Links *ReferenceLinks `json:"_links,omitempty"` // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. Descriptor string `json:"descriptor,omitempty"` // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. DisplayName string `json:"displayName,omitempty"` // This url is the full route to the source resource of this graph subject. Url string `json:"url,omitempty"` // The vote for the specific reviewer Vote int `json:"vote"` // The vsts identifier ID string `json:"id"` }
Identity information including a vote on a pull request.
type ImportRepositoryValidation ¶
type ImportRepositoryValidation struct { GitSource *GitImportGitSource `json:"gitSource,omitempty"` Password string `json:"password,omitempty"` TfvcSource *GitImportTfvcSource `json:"tfvcSource,omitempty"` Username string `json:"username,omitempty"` }
type ImportRequestsApiService ¶
type ImportRequestsApiService service
func (*ImportRequestsApiService) Create ¶
func (a *ImportRequestsApiService) Create(ctx context.Context, body GitImportRequest, project string, repositoryId string, apiVersion string) (GitImportRequest, *http.Response, error)
ImportRequestsApiService Create an import request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The import request to create.
- @param project Project ID or project name
- @param repositoryId The name or ID of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitImportRequest
func (*ImportRequestsApiService) Get ¶
func (a *ImportRequestsApiService) Get(ctx context.Context, project string, repositoryId string, importRequestId int32, apiVersion string) (GitImportRequest, *http.Response, error)
ImportRequestsApiService Retrieve a particular import request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param repositoryId The name or ID of the repository.
- @param importRequestId The unique identifier for the import request.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitImportRequest
func (*ImportRequestsApiService) Update ¶
func (a *ImportRequestsApiService) Update(ctx context.Context, body GitImportRequest, project string, repositoryId string, importRequestId int32, apiVersion string) (GitImportRequest, *http.Response, error)
ImportRequestsApiService Retry or abandon a failed import request. There can only be one active import request associated with a repository. Marking a failed import request abandoned makes it inactive.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned.
- @param project Project ID or project name
- @param repositoryId The name or ID of the repository.
- @param importRequestId The unique identifier for the import request to update.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitImportRequest
type IncludedGitCommit ¶
type ItemContent ¶
type ItemDetailsOptions ¶
type ItemDetailsOptions struct { // If true, include metadata about the file type IncludeContentMetadata bool `json:"includeContentMetadata,omitempty"` // Specifies whether to include children (OneLevel), all descendants (Full) or None for folder items RecursionLevel string `json:"recursionLevel,omitempty"` }
Optional details to include when returning an item model
type ItemModel ¶
type ItemModel struct { Links *ReferenceLinks `json:"_links,omitempty"` Content string `json:"content,omitempty"` ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"` IsFolder bool `json:"isFolder,omitempty"` IsSymLink bool `json:"isSymLink,omitempty"` Path string `json:"path,omitempty"` Url string `json:"url,omitempty"` }
type ItemsApiService ¶
type ItemsApiService service
func (*ItemsApiService) GetItemsBatch ¶
func (a *ItemsApiService) GetItemsBatch(ctx context.Context, body GitItemRequestData, repositoryId string, project string, apiVersion string) ([][]interface{}, *http.Response, error)
ItemsApiService Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references.
- @param repositoryId The name or ID of the repository
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return [][]ErrorUnknown
type JsonPatchOperation ¶
type JsonPatchOperation struct { // The path to copy from for the Move/Copy operation. From string `json:"from,omitempty"` // The patch operation Op string `json:"op,omitempty"` // The path for the operation Path string `json:"path,omitempty"` // The value for the operation. This is either a primitive or a JToken. Value *interface{} `json:"value,omitempty"` }
The JSON model for a JSON Patch operation
type LabelsUpdatedEvent ¶
type LabelsUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for updated labels on a pull request
type ListItemsOpts ¶
type ListItemsOpts struct { ScopePath optional.String RecursionLevel optional.String IncludeContentMetadata optional.Bool LatestProcessedChange optional.Bool Download optional.Bool IncludeLinks optional.Bool Format optional.String VersionDescriptorVersionOptions optional.String VersionDescriptorVersion optional.String VersionDescriptorVersionType optional.String }
type ListMergeBasesOpts ¶
type ListOptsStats ¶
type ListPRIterationsOpts ¶
type ListPRLabelsOpts ¶
type ListPRThreadsOpts ¶
type ListPolicyConfigOpts ¶
type ListPushesOpts ¶
type ListPushesOpts struct { Skip optional.Int32 Top optional.Int32 SearchCriteriaIncludeLinks optional.Bool SearchCriteriaIncludeRefUpdates optional.Bool SearchCriteriaRefName optional.String SearchCriteriaPusherId optional.Interface SearchCriteriaToDate optional.Time SearchCriteriaFromDate optional.Time }
type ListRefOpts ¶
type ListRefsFavoritesOpts ¶
type ListReposOpts ¶
type ListStatusesOpts ¶
type MergeBasesApiService ¶
type MergeBasesApiService service
func (*MergeBasesApiService) List ¶
func (a *MergeBasesApiService) List(ctx context.Context, repositoryNameOrId string, commitId string, otherCommitId string, project string, apiVersion string, localVarOptionals *ListMergeBasesOpts) ([]GitCommitRef, *http.Response, error)
type MergeCompletedEvent ¶
type MergeCompletedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a merge completed on a pull request
type PolicyConfiguration ¶
type PolicyConfiguration struct { // The policy configuration ID. Id int32 `json:"id,omitempty"` // The policy configuration type. Type_ *PolicyTypeRef `json:"type,omitempty"` // The URL where the policy configuration can be retrieved. Url string `json:"url,omitempty"` }
The full policy configuration with settings.
type PolicyConfigurationRef ¶
type PolicyConfigurationRef struct { // The policy configuration ID. Id int32 `json:"id,omitempty"` // The policy configuration type. Type_ *PolicyTypeRef `json:"type,omitempty"` // The URL where the policy configuration can be retrieved. Url string `json:"url,omitempty"` }
Policy configuration reference.
type PolicyConfigurationsApiService ¶
type PolicyConfigurationsApiService service
func (*PolicyConfigurationsApiService) List ¶
func (a *PolicyConfigurationsApiService) List(ctx context.Context, project string, apiVersion string, localVarOptionals *ListPolicyConfigOpts) ([]PolicyConfiguration, *http.Response, error)
type PolicyEvaluationUpdatedEvent ¶
type PolicyEvaluationUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a policy evaluation update on a pull request
type PolicyTypeRef ¶
type PolicyTypeRef struct { // Display name of the policy type. DisplayName string `json:"displayName,omitempty"` // The policy type ID. Id string `json:"id,omitempty"` // The URL where the policy type can be retrieved. Url string `json:"url,omitempty"` }
Policy type reference.
type PropertiesCollection ¶
type PropertiesCollection struct { // The count of properties in the collection. Count int32 `json:"count,omitempty"` Item *interface{} `json:"item,omitempty"` // The set of keys in the collection. Keys []string `json:"keys,omitempty"` // The set of values in the collection. Values []string `json:"values,omitempty"` }
The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a `TypeCode != TypeCode.Object`) except for `DBNull` are accepted. Values of type Byte[], Int32, Double, DateType and String preserve their type, other primitives are retuned as a String. Byte[] expected as base64 encoded string.
type PullRequestAttachmentsApiService ¶
type PullRequestAttachmentsApiService service
func (*PullRequestAttachmentsApiService) Create ¶
func (a *PullRequestAttachmentsApiService) Create(ctx context.Context, body string, fileName string, repositoryId string, pullRequestId int32, project string, apiVersion string) (Attachment, *http.Response, error)
PullRequestAttachmentsApiService Attach a new file to a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Stream to upload
- @param fileName The name of the file.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return Attachment
func (*PullRequestAttachmentsApiService) Delete ¶
func (a *PullRequestAttachmentsApiService) Delete(ctx context.Context, fileName string, repositoryId string, pullRequestId int32, project string, apiVersion string) (*http.Response, error)
PullRequestAttachmentsApiService Delete a pull request attachment.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param fileName The name of the attachment to delete.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*PullRequestAttachmentsApiService) Get ¶
func (a *PullRequestAttachmentsApiService) Get(ctx context.Context, fileName string, repositoryId string, pullRequestId int32, project string, apiVersion string) (string, *http.Response, error)
PullRequestAttachmentsApiService Get the file content of a pull request attachment.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param fileName The name of the attachment.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return string
func (*PullRequestAttachmentsApiService) List ¶
func (a *PullRequestAttachmentsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string) ([]Attachment, *http.Response, error)
PullRequestAttachmentsApiService Get a list of files attached to a given pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []Attachment
type PullRequestCommentLikesApiService ¶
type PullRequestCommentLikesApiService service
func (*PullRequestCommentLikesApiService) Create ¶
func (a *PullRequestCommentLikesApiService) Create(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, commentId int32, project string, apiVersion string) (*http.Response, error)
PullRequestCommentLikesApiService Add a like on a comment.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId The ID of the thread that contains the comment.
- @param commentId The ID of the comment.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*PullRequestCommentLikesApiService) Delete ¶
func (a *PullRequestCommentLikesApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, commentId int32, project string, apiVersion string) (*http.Response, error)
PullRequestCommentLikesApiService Delete a like on a comment.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId The ID of the thread that contains the comment.
- @param commentId The ID of the comment.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*PullRequestCommentLikesApiService) List ¶
func (a *PullRequestCommentLikesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, commentId int32, project string, apiVersion string) ([]IdentityRef, *http.Response, error)
PullRequestCommentLikesApiService Get likes for a comment.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId The ID of the thread that contains the comment.
- @param commentId The ID of the comment.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []IdentityRef
type PullRequestCommitsApiService ¶
type PullRequestCommitsApiService service
func (*PullRequestCommitsApiService) GetPullRequestCommits ¶
func (a *PullRequestCommitsApiService) GetPullRequestCommits(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string) ([]GitCommitRef, *http.Response, error)
PullRequestCommitsApiService Get the commits for the specified pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId ID or name of the repository.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []GitCommitRef
func (*PullRequestCommitsApiService) GetPullRequestIterationCommits ¶
func (a *PullRequestCommitsApiService) GetPullRequestIterationCommits(ctx context.Context, repositoryId string, pullRequestId int32, iterationId int32, project string, apiVersion string) ([]GitCommitRef, *http.Response, error)
PullRequestCommitsApiService Get the commits for the specified iteration of a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId ID or name of the repository.
- @param pullRequestId ID of the pull request.
- @param iterationId ID of the iteration from which to get the commits.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []GitCommitRef
type PullRequestCreatedEvent ¶
type PullRequestCreatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for pull request creation
type PullRequestIterationChangesApiService ¶
type PullRequestIterationChangesApiService service
func (*PullRequestIterationChangesApiService) Get ¶
func (a *PullRequestIterationChangesApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, iterationId int32, project string, apiVersion string, localVarOptionals *GetPRIterationChangesOpts) (GitPullRequestIterationChanges, *http.Response, error)
type PullRequestIterationStatusesApiService ¶
type PullRequestIterationStatusesApiService service
func (*PullRequestIterationStatusesApiService) Create ¶
func (a *PullRequestIterationStatusesApiService) Create(ctx context.Context, body GitPullRequestStatus, repositoryId string, pullRequestId int32, iterationId int32, project string, apiVersion string) (GitPullRequestStatus, *http.Response, error)
PullRequestIterationStatusesApiService Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body. The only required field for the status is `Context.Name` that uniquely identifies the status. Note that `iterationId` in the request body is optional since `iterationId` can be specified in the URL. A conflict between `iterationId` in the URL and `iterationId` in the request body will result in status code 400.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Pull request status to create.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param iterationId ID of the pull request iteration.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestStatus
func (*PullRequestIterationStatusesApiService) Delete ¶
func (a *PullRequestIterationStatusesApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, iterationId int32, statusId int32, project string, apiVersion string) (*http.Response, error)
PullRequestIterationStatusesApiService Delete pull request iteration status. You can remove multiple statuses in one call by using Update operation.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param iterationId ID of the pull request iteration.
- @param statusId ID of the pull request status.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*PullRequestIterationStatusesApiService) Get ¶
func (a *PullRequestIterationStatusesApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, iterationId int32, statusId int32, project string, apiVersion string) (GitPullRequestStatus, *http.Response, error)
PullRequestIterationStatusesApiService Get the specific pull request iteration status by ID. The status ID is unique within the pull request across all iterations.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param iterationId ID of the pull request iteration.
- @param statusId ID of the pull request status.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestStatus
func (*PullRequestIterationStatusesApiService) List ¶
func (a *PullRequestIterationStatusesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, iterationId int32, project string, apiVersion string) ([]GitPullRequestStatus, *http.Response, error)
PullRequestIterationStatusesApiService Get all the statuses associated with a pull request iteration.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param iterationId ID of the pull request iteration.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []GitPullRequestStatus
func (*PullRequestIterationStatusesApiService) Update ¶
func (a *PullRequestIterationStatusesApiService) Update(ctx context.Context, body JsonPatchDocument, repositoryId string, pullRequestId int32, iterationId int32, project string, apiVersion string) (*http.Response, error)
PullRequestIterationStatusesApiService Update pull request iteration statuses collection. The only supported operation type is `remove`. This operation allows to delete multiple statuses in one call. The path of the `remove` operation should refer to the ID of the pull request status. For example `path=\"/1\"` refers to the pull request status with ID 1.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Operations to apply to the pull request statuses in JSON Patch format.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param iterationId ID of the pull request iteration.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
type PullRequestIterationsApiService ¶
type PullRequestIterationsApiService service
func (*PullRequestIterationsApiService) Get ¶
func (a *PullRequestIterationsApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, iterationId int32, project string, apiVersion string) (GitPullRequestIteration, *http.Response, error)
PullRequestIterationsApiService Get the specified iteration for a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId ID or name of the repository.
- @param pullRequestId ID of the pull request.
- @param iterationId ID of the pull request iteration to return.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestIteration
func (*PullRequestIterationsApiService) List ¶
func (a *PullRequestIterationsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string, localVarOptionals *ListPRIterationsOpts) ([]GitPullRequestIteration, *http.Response, error)
type PullRequestLabelsApiService ¶
type PullRequestLabelsApiService service
func (*PullRequestLabelsApiService) Create ¶
func (a *PullRequestLabelsApiService) Create(ctx context.Context, body WebApiCreateTagRequestData, repositoryId string, pullRequestId int32, project string, apiVersion string, localVarOptionals *CreatePRLabelsOpts) (WebApiTagDefinition, *http.Response, error)
func (*PullRequestLabelsApiService) Get ¶
func (a *PullRequestLabelsApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, labelIdOrName string, project string, apiVersion string, localVarOptionals *GetPullRequestLabelsOpts) (WebApiTagDefinition, *http.Response, error)
func (*PullRequestLabelsApiService) List ¶
func (a *PullRequestLabelsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string, localVarOptionals *ListPRLabelsOpts) ([]WebApiTagDefinition, *http.Response, error)
type PullRequestPropertiesApiService ¶
type PullRequestPropertiesApiService service
func (*PullRequestPropertiesApiService) List ¶
func (a *PullRequestPropertiesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string) (PropertiesCollection, *http.Response, error)
PullRequestPropertiesApiService Get external properties of the pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return PropertiesCollection
func (*PullRequestPropertiesApiService) Update ¶
func (a *PullRequestPropertiesApiService) Update(ctx context.Context, body JsonPatchDocument, repositoryId string, pullRequestId int32, project string, apiVersion string) (PropertiesCollection, *http.Response, error)
PullRequestPropertiesApiService Create or update pull request external properties. The patch operation can be `add`, `replace` or `remove`. For `add` operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For `replace` operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For `remove` operation, the path cannot be empty. If the path does not exist, no action will be performed.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Properties to add, replace or remove in JSON Patch format.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return PropertiesCollection
type PullRequestQueryApiService ¶
type PullRequestQueryApiService service
func (*PullRequestQueryApiService) Get ¶
func (a *PullRequestQueryApiService) Get(ctx context.Context, body GitPullRequestQuery, repositoryId string, project string, apiVersion string) (GitPullRequestQuery, *http.Response, error)
PullRequestQueryApiService This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The list of queries to perform.
- @param repositoryId ID of the repository.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestQuery
type PullRequestReviewersApiService ¶
type PullRequestReviewersApiService service
func (*PullRequestReviewersApiService) CreatePullRequestReviewer ¶
func (a *PullRequestReviewersApiService) CreatePullRequestReviewer(ctx context.Context, body IdentityRefWithVote, repositoryId string, pullRequestId int32, reviewerId string, project string, apiVersion string) (IdentityRefWithVote, *http.Response, error)
PullRequestReviewersApiService Add a reviewer to a pull request or cast a vote.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Reviewer's vote.<br />If the reviewer's ID is included here, it must match the reviewerID parameter.<br />Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param reviewerId ID of the reviewer.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return IdentityRefWithVote
func (*PullRequestReviewersApiService) CreatePullRequestReviewers ¶
func (a *PullRequestReviewersApiService) CreatePullRequestReviewers(ctx context.Context, body []IdentityRef, repositoryId string, pullRequestId int32, project string, apiVersion string) ([]IdentityRefWithVote, *http.Response, error)
PullRequestReviewersApiService Add reviewers to a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Reviewers to add to the pull request.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []IdentityRefWithVote
func (*PullRequestReviewersApiService) Delete ¶
func (a *PullRequestReviewersApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, reviewerId string, project string, apiVersion string) (*http.Response, error)
PullRequestReviewersApiService Remove a reviewer from a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param reviewerId ID of the reviewer to remove.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*PullRequestReviewersApiService) Get ¶
func (a *PullRequestReviewersApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, reviewerId string, project string, apiVersion string) (IdentityRefWithVote, *http.Response, error)
PullRequestReviewersApiService Retrieve information about a particular reviewer on a pull request
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param reviewerId ID of the reviewer.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return IdentityRefWithVote
func (*PullRequestReviewersApiService) List ¶
func (a *PullRequestReviewersApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string) ([]IdentityRefWithVote, *http.Response, error)
PullRequestReviewersApiService Retrieve the reviewers for a pull request
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []IdentityRefWithVote
func (*PullRequestReviewersApiService) Update ¶
func (a *PullRequestReviewersApiService) Update(ctx context.Context, body []IdentityRefWithVote, repositoryId string, pullRequestId int32, project string, apiVersion string) (*http.Response, error)
PullRequestReviewersApiService Reset the votes of multiple reviewers on a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body IDs of the reviewers whose votes will be reset to zero
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
type PullRequestShareApiService ¶
type PullRequestShareApiService service
func (*PullRequestShareApiService) SharePullRequest ¶
func (a *PullRequestShareApiService) SharePullRequest(ctx context.Context, body ShareNotificationContext, repositoryId string, pullRequestId int32, project string, apiVersion string) (*http.Response, error)
PullRequestShareApiService Sends an e-mail notification about a specific pull request to a set of recipients
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
- @param repositoryId ID of the git repository.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
type PullRequestStatusesApiService ¶
type PullRequestStatusesApiService service
func (*PullRequestStatusesApiService) Create ¶
func (a *PullRequestStatusesApiService) Create(ctx context.Context, body GitPullRequestStatus, repositoryId string, pullRequestId int32, project string, apiVersion string) (GitPullRequestStatus, *http.Response, error)
PullRequestStatusesApiService Create a pull request status. The only required field for the status is `Context.Name` that uniquely identifies the status. Note that you can specify iterationId in the request body to post the status on the iteration.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Pull request status to create.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestStatus
func (*PullRequestStatusesApiService) Delete ¶
func (a *PullRequestStatusesApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, statusId int32, project string, apiVersion string) (*http.Response, error)
PullRequestStatusesApiService Delete pull request status. You can remove multiple statuses in one call by using Update operation.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param statusId ID of the pull request status.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*PullRequestStatusesApiService) Get ¶
func (a *PullRequestStatusesApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, statusId int32, project string, apiVersion string) (GitPullRequestStatus, *http.Response, error)
PullRequestStatusesApiService Get the specific pull request status by ID. The status ID is unique within the pull request across all iterations.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param statusId ID of the pull request status.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestStatus
func (*PullRequestStatusesApiService) List ¶
func (a *PullRequestStatusesApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string) ([]GitPullRequestStatus, *http.Response, error)
PullRequestStatusesApiService Get all the statuses associated with a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []GitPullRequestStatus
func (*PullRequestStatusesApiService) Update ¶
func (a *PullRequestStatusesApiService) Update(ctx context.Context, body JsonPatchDocument, repositoryId string, pullRequestId int32, project string, apiVersion string) (*http.Response, error)
PullRequestStatusesApiService Update pull request statuses collection. The only supported operation type is `remove`. This operation allows to delete multiple statuses in one call. The path of the `remove` operation should refer to the ID of the pull request status. For example `path=\"/1\"` refers to the pull request status with ID 1.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Operations to apply to the pull request statuses in JSON Patch format.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
type PullRequestTabExtensionConfig ¶
type PullRequestTabExtensionConfig struct { PullRequestId int32 `json:"pullRequestId,omitempty"` RepositoryId string `json:"repositoryId,omitempty"` }
Initial config contract sent to extensions creating tabs on the pull request page
type PullRequestThreadCommentsApiService ¶
type PullRequestThreadCommentsApiService service
func (*PullRequestThreadCommentsApiService) Create ¶
func (a *PullRequestThreadCommentsApiService) Create(ctx context.Context, body Comment, repositoryId string, pullRequestId int32, threadId int32, project string, apiVersion string) (Comment, *http.Response, error)
PullRequestThreadCommentsApiService Create a comment on a specific thread in a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The comment to create.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId ID of the thread that the desired comment is in.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return Comment
func (*PullRequestThreadCommentsApiService) Delete ¶
func (a *PullRequestThreadCommentsApiService) Delete(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, commentId int32, project string, apiVersion string) (*http.Response, error)
PullRequestThreadCommentsApiService Delete a comment associated with a specific thread in a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId ID of the thread that the desired comment is in.
- @param commentId ID of the comment.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*PullRequestThreadCommentsApiService) Get ¶
func (a *PullRequestThreadCommentsApiService) Get(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, commentId int32, project string, apiVersion string) (Comment, *http.Response, error)
PullRequestThreadCommentsApiService Retrieve a comment associated with a specific thread in a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId ID of the thread that the desired comment is in.
- @param commentId ID of the comment.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return Comment
func (*PullRequestThreadCommentsApiService) List ¶
func (a *PullRequestThreadCommentsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, threadId int32, project string, apiVersion string) ([]Comment, *http.Response, error)
PullRequestThreadCommentsApiService Retrieve all comments associated with a specific thread in a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId ID of the thread.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []Comment
func (*PullRequestThreadCommentsApiService) Update ¶
func (a *PullRequestThreadCommentsApiService) Update(ctx context.Context, body Comment, repositoryId string, pullRequestId int32, threadId int32, commentId int32, project string, apiVersion string) (Comment, *http.Response, error)
PullRequestThreadCommentsApiService Update a comment associated with a specific thread in a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The comment content that should be updated.
- @param repositoryId The repository ID of the pull request’s target branch.
- @param pullRequestId ID of the pull request.
- @param threadId ID of the thread that the desired comment is in.
- @param commentId ID of the comment to update.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return Comment
type PullRequestThreadsApiService ¶
type PullRequestThreadsApiService service
func (*PullRequestThreadsApiService) Create ¶
func (a *PullRequestThreadsApiService) Create(ctx context.Context, body GitPullRequestCommentThread, repositoryId string, pullRequestId int32, project string, apiVersion string) (GitPullRequestCommentThread, *http.Response, error)
PullRequestThreadsApiService Create a thread in a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The thread to create. Thread must contain at least one comment.
- @param repositoryId Repository ID of the pull request's target branch.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestCommentThread
func (*PullRequestThreadsApiService) List ¶
func (a *PullRequestThreadsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string, localVarOptionals *ListPRThreadsOpts) ([]GitPullRequestCommentThread, *http.Response, error)
func (*PullRequestThreadsApiService) Update ¶
func (a *PullRequestThreadsApiService) Update(ctx context.Context, body GitPullRequestCommentThread, repositoryId string, pullRequestId int32, threadId int32, project string, apiVersion string) (GitPullRequestCommentThread, *http.Response, error)
PullRequestThreadsApiService Update a thread in a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The thread content that should be updated.
- @param repositoryId The repository ID of the pull request's target branch.
- @param pullRequestId ID of the pull request.
- @param threadId ID of the thread to update.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequestCommentThread
type PullRequestWorkItemsApiService ¶
type PullRequestWorkItemsApiService service
func (*PullRequestWorkItemsApiService) List ¶
func (a *PullRequestWorkItemsApiService) List(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string) ([]ResourceRef, *http.Response, error)
PullRequestWorkItemsApiService Retrieve a list of work items associated with a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId ID or name of the repository.
- @param pullRequestId ID of the pull request.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []ResourceRef
type PullRequestsApiService ¶
type PullRequestsApiService service
func (*PullRequestsApiService) Create ¶
func (a *PullRequestsApiService) Create(ctx context.Context, body GitPullRequest, repositoryId string, project string, apiVersion string, localVarOptionals *CreatePullRequestOpts) (GitPullRequest, *http.Response, error)
func (*PullRequestsApiService) GetPullRequest ¶
func (a *PullRequestsApiService) GetPullRequest(ctx context.Context, repositoryId string, pullRequestId int32, project string, apiVersion string, localVarOptionals *GetPullRequestOpts) (GitPullRequest, *http.Response, error)
func (*PullRequestsApiService) GetPullRequestById ¶
func (a *PullRequestsApiService) GetPullRequestById(ctx context.Context, pullRequestId int32, project string, apiVersion string) (GitPullRequest, *http.Response, error)
PullRequestsApiService Retrieve a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param pullRequestId The ID of the pull request to retrieve.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequest
func (*PullRequestsApiService) GetPullRequests ¶
func (a *PullRequestsApiService) GetPullRequests(ctx context.Context, repositoryId string, project string, apiVersion string, localVarOptionals *GetPullRequestsOpts) ([]GitPullRequest, *http.Response, error)
func (*PullRequestsApiService) GetPullRequestsByProject ¶
func (a *PullRequestsApiService) GetPullRequestsByProject(ctx context.Context, project string, apiVersion string, localVarOptionals *GetPullRequestsByProjectOpts) ([]GitPullRequest, *http.Response, error)
func (*PullRequestsApiService) Update ¶
func (a *PullRequestsApiService) Update(ctx context.Context, body GitPullRequest, repositoryId string, pullRequestId int32, project string, apiVersion string) (GitPullRequest, *http.Response, error)
PullRequestsApiService Update a pull request. These are the properties that can be updated with the API: - Status - Title - Description - CompletionOptions - MergeOptions - AutoCompleteSetBy.Id - TargetRefName (when the PR retargeting feature is enabled) Attempting to update other properties outside of this list will either cause the server to throw an `InvalidArgumentValueException`, or to silently ignore the update.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The pull request content to update.
- @param repositoryId The repository ID of the pull request's target branch.
- @param pullRequestId The ID of the pull request to retrieve.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitPullRequest
type PushesApiService ¶
type PushesApiService service
func (*PushesApiService) Create ¶
func (a *PushesApiService) Create(ctx context.Context, body GitPush, repositoryId string, project string, apiVersion string) (GitPush, *http.Response, error)
PushesApiService Push changes to the repository.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
- @param repositoryId The name or ID of the repository.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.2' to use this version of the api.
@return GitPush
type RealTimePullRequestEvent ¶
type RealTimePullRequestEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Base contract for a real time pull request event (SignalR)
type ReferenceLinks ¶
type ReferenceLinks struct { // The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. Links map[string]interface{} `json:"links,omitempty"` }
The class to represent a collection of REST reference links.
type RefsApiService ¶
type RefsApiService service
func (*RefsApiService) UpdateRef ¶
func (a *RefsApiService) UpdateRef(ctx context.Context, body GitRefUpdate, repositoryId string, filter string, project string, apiVersion string, localVarOptionals *UpdateRefOpts) (GitRef, *http.Response, error)
func (*RefsApiService) UpdateRefs ¶
func (a *RefsApiService) UpdateRefs(ctx context.Context, body []GitRefUpdate, repositoryId string, project string, apiVersion string, localVarOptionals *UpdateRefsOpts) ([]GitRefUpdateResult, *http.Response, error)
type RefsFavoritesApiService ¶
type RefsFavoritesApiService service
func (*RefsFavoritesApiService) Create ¶
func (a *RefsFavoritesApiService) Create(ctx context.Context, body GitRefFavorite, project string, apiVersion string) (GitRefFavorite, *http.Response, error)
RefsFavoritesApiService Creates a ref favorite
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The ref favorite to create.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRefFavorite
func (*RefsFavoritesApiService) Delete ¶
func (a *RefsFavoritesApiService) Delete(ctx context.Context, project string, favoriteId int32, apiVersion string) (*http.Response, error)
RefsFavoritesApiService Deletes the refs favorite specified
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param favoriteId The Id of the ref favorite to delete.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*RefsFavoritesApiService) Get ¶
func (a *RefsFavoritesApiService) Get(ctx context.Context, project string, favoriteId int32, apiVersion string) (GitRefFavorite, *http.Response, error)
RefsFavoritesApiService Gets the refs favorite for a favorite Id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param favoriteId The Id of the requested ref favorite.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRefFavorite
func (*RefsFavoritesApiService) List ¶
func (a *RefsFavoritesApiService) List(ctx context.Context, project string, apiVersion string, localVarOptionals *ListRefsFavoritesOpts) ([]GitRefFavorite, *http.Response, error)
type RepositoriesApiService ¶
type RepositoriesApiService service
func (*RepositoriesApiService) Create ¶
func (a *RepositoriesApiService) Create(ctx context.Context, body GitRepositoryCreateOptions, project string, apiVersion string, localVarOptionals *CreateOptsRepos) (GitRepository, *http.Response, error)
func (*RepositoriesApiService) Delete ¶
func (a *RepositoriesApiService) Delete(ctx context.Context, repositoryId string, project string, apiVersion string) (*http.Response, error)
RepositoriesApiService Delete a git repository
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The name or ID of the repository.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*RepositoriesApiService) DeleteRepositoryFromRecycleBin ¶
func (a *RepositoriesApiService) DeleteRepositoryFromRecycleBin(ctx context.Context, project string, repositoryId string, apiVersion string) (*http.Response, error)
RepositoriesApiService Destroy (hard delete) a soft-deleted Git repository.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param repositoryId The ID of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
func (*RepositoriesApiService) GetDeletedRepositories ¶
func (a *RepositoriesApiService) GetDeletedRepositories(ctx context.Context, project string, apiVersion string) ([]GitDeletedRepository, *http.Response, error)
RepositoriesApiService Retrieve deleted git repositories.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []GitDeletedRepository
func (*RepositoriesApiService) GetRecycleBinRepositories ¶
func (a *RepositoriesApiService) GetRecycleBinRepositories(ctx context.Context, project string, apiVersion string) ([]GitDeletedRepository, *http.Response, error)
RepositoriesApiService Retrieve soft-deleted git repositories from the recycle bin.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []GitDeletedRepository
func (*RepositoriesApiService) GetRepository ¶
func (a *RepositoriesApiService) GetRepository(ctx context.Context, repositoryId string, project string, apiVersion string) (GitRepository, *http.Response, error)
RepositoriesApiService Retrieve a git repository.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId The name or ID of the repository.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRepository
func (*RepositoriesApiService) List ¶
func (a *RepositoriesApiService) List(ctx context.Context, project string, apiVersion string, localVarOptionals *ListReposOpts) ([]GitRepository, *http.Response, error)
func (*RepositoriesApiService) RestoreRepositoryFromRecycleBin ¶
func (a *RepositoriesApiService) RestoreRepositoryFromRecycleBin(ctx context.Context, body GitRecycleBinRepositoryDetails, project string, repositoryId string, apiVersion string) (GitRepository, *http.Response, error)
RepositoriesApiService Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
- @param project Project ID or project name
- @param repositoryId The ID of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRepository
func (*RepositoriesApiService) Update ¶
func (a *RepositoriesApiService) Update(ctx context.Context, body GitRepository, repositoryId string, project string, apiVersion string) (GitRepository, *http.Response, error)
RepositoriesApiService Updates the Git repository with either a new repo name or a new default branch.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Specify a new repo name or a new default branch of the repository
- @param repositoryId The name or ID of the repository.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRepository
type ResourceRef ¶
type RetargetEvent ¶
type RetargetEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for when the target branch of a pull request is changed
type RevertsApiService ¶
type RevertsApiService service
func (*RevertsApiService) Create ¶
func (a *RevertsApiService) Create(ctx context.Context, body GitAsyncRefOperationParameters, project string, repositoryId string, apiVersion string) (GitRevert, *http.Response, error)
RevertsApiService Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
- @param project Project ID or project name
- @param repositoryId ID of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRevert
func (*RevertsApiService) GetRevert ¶
func (a *RevertsApiService) GetRevert(ctx context.Context, project string, revertId int32, repositoryId string, apiVersion string) (GitRevert, *http.Response, error)
RevertsApiService Retrieve information about a revert operation by revert Id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param revertId ID of the revert operation.
- @param repositoryId ID of the repository.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRevert
func (*RevertsApiService) GetRevertForRefName ¶
func (a *RevertsApiService) GetRevertForRefName(ctx context.Context, project string, repositoryId string, refName string, apiVersion string) (GitRevert, *http.Response, error)
RevertsApiService Retrieve information about a revert operation for a specific branch.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param project Project ID or project name
- @param repositoryId ID of the repository.
- @param refName The GitAsyncRefOperationParameters generatedRefName used for the revert operation.
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitRevert
type ReviewerVoteUpdatedEvent ¶
type ReviewerVoteUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a reviewer vote update on a pull request
type ReviewersUpdatedEvent ¶
type ReviewersUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for an update to reviewers on a pull request
type ReviewersVotesResetEvent ¶
type ReviewersVotesResetEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for reviewer votes being reset on a pull request
type ShareNotificationContext ¶
type ShareNotificationContext struct { string `json:"message,omitempty"` Receivers []IdentityRef `json:"receivers,omitempty"` }Message
Context used while sharing a pull request.
type SourceToTargetRef ¶
type StatsApiService ¶
type StatsApiService service
func (*StatsApiService) List ¶
func (a *StatsApiService) List(ctx context.Context, repositoryId string, project string, apiVersion string, localVarOptionals *ListOptsStats) ([]GitBranchStats, *http.Response, error)
type StatusAddedEvent ¶
type StatusAddedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for an added status on a pull request
type StatusUpdatedEvent ¶
type StatusUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a status update on a pull request
type StatusesApiService ¶
type StatusesApiService service
func (*StatusesApiService) Create ¶
func (a *StatusesApiService) Create(ctx context.Context, body GitStatus, commitId string, repositoryId string, project string, apiVersion string) (GitStatus, *http.Response, error)
StatusesApiService Create Git commit status.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Git commit status object to create.
- @param commitId ID of the Git commit.
- @param repositoryId ID of the repository.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return GitStatus
type StatusesDeletedEvent ¶
type StatusesDeletedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for deleted statuses on a pull request
type SuggestionsApiService ¶
type SuggestionsApiService service
func (*SuggestionsApiService) List ¶
func (a *SuggestionsApiService) List(ctx context.Context, repositoryId string, project string, apiVersion string) ([]GitSuggestion, *http.Response, error)
SuggestionsApiService Retrieve a pull request suggestion for a particular repository or team project.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repositoryId ID of the git repository.
- @param project Project ID or project name
- @param apiVersion Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api.
@return []GitSuggestion
type SupportedIde ¶
type SupportedIde struct { // The download URL for the IDE. DownloadUrl string `json:"downloadUrl,omitempty"` // The type of the IDE. IdeType string `json:"ideType,omitempty"` // The name of the IDE. Name string `json:"name,omitempty"` // The URL to open the protocol handler for the IDE. ProtocolHandlerUrl string `json:"protocolHandlerUrl,omitempty"` // A list of SupportedPlatforms. SupportedPlatforms []string `json:"supportedPlatforms,omitempty"` }
Represents a Supported IDE entity.
type TeamProjectCollectionReference ¶
type TeamProjectCollectionReference struct { // Collection Id. Id string `json:"id,omitempty"` // Collection Name. Name string `json:"name,omitempty"` // Collection REST Url. Url string `json:"url,omitempty"` }
Reference object for a TeamProjectCollection.
type TeamProjectReference ¶
type TeamProjectReference struct { // Project abbreviation. Abbreviation string `json:"abbreviation,omitempty"` // The project's description (if any). Description string `json:"description,omitempty"` // Project identifier. Id string `json:"id,omitempty"` // Project name. Name string `json:"name,omitempty"` // Project revision. Revision int64 `json:"revision,omitempty"` // Project state. State string `json:"state,omitempty"` // Url to the full version of the object. Url string `json:"url,omitempty"` // Project visibility. Visibility string `json:"visibility,omitempty"` }
Represents a shallow reference to a TeamProject.
type TfvcBranch ¶
type TfvcBranch struct { // Path for the branch. Path string `json:"path,omitempty"` }
type TfvcBranchMapping ¶
type TfvcBranchRef ¶
type TfvcBranchRef struct { // Path for the branch. Path string `json:"path,omitempty"` }
type TfvcChange ¶
type TfvcChange struct { // The type of change that was made to the item. ChangeType string `json:"changeType,omitempty"` // Current version. Item string `json:"item,omitempty"` // Content of the item after the change. NewContent *ItemContent `json:"newContent,omitempty"` // Path of the item on the server. SourceServerItem string `json:"sourceServerItem,omitempty"` // URL to retrieve the item. Url string `json:"url,omitempty"` }
type TfvcChangeset ¶
type TfvcChangeset struct { // A collection of REST reference links. Links *ReferenceLinks `json:"_links,omitempty"` // Alias or display name of user Author *IdentityRef `json:"author,omitempty"` // Id of the changeset. ChangesetId int32 `json:"changesetId,omitempty"` // Alias or display name of user CheckedInBy *IdentityRef `json:"checkedInBy,omitempty"` // Comment for the changeset. Comment string `json:"comment,omitempty"` // Was the Comment result truncated? CommentTruncated bool `json:"commentTruncated,omitempty"` // Creation date of the changeset. CreatedDate time.Time `json:"createdDate,omitempty"` // URL to retrieve the item. Url string `json:"url,omitempty"` }
type TfvcChangesetRef ¶
type TfvcChangesetRef struct { // A collection of REST reference links. Links *ReferenceLinks `json:"_links,omitempty"` // Alias or display name of user Author *IdentityRef `json:"author,omitempty"` // Id of the changeset. ChangesetId int32 `json:"changesetId,omitempty"` // Alias or display name of user CheckedInBy *IdentityRef `json:"checkedInBy,omitempty"` // Comment for the changeset. Comment string `json:"comment,omitempty"` // Was the Comment result truncated? CommentTruncated bool `json:"commentTruncated,omitempty"` // Creation date of the changeset. CreatedDate time.Time `json:"createdDate,omitempty"` // URL to retrieve the item. Url string `json:"url,omitempty"` }
type TfvcChangesetSearchCriteria ¶
type TfvcChangesetSearchCriteria struct { // Alias or display name of user who made the changes Author string `json:"author,omitempty"` // Whether or not to follow renames for the given item being queried FollowRenames bool `json:"followRenames,omitempty"` // If provided, only include changesets created after this date (string) Think of a better name for this. FromDate string `json:"fromDate,omitempty"` // If provided, only include changesets after this changesetID FromId int32 `json:"fromId,omitempty"` // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` // Path of item to search under ItemPath string `json:"itemPath,omitempty"` Mappings []TfvcMappingFilter `json:"mappings,omitempty"` // If provided, only include changesets created before this date (string) Think of a better name for this. ToDate string `json:"toDate,omitempty"` // If provided, a version descriptor for the latest change list to include ToId int32 `json:"toId,omitempty"` }
Criteria used in a search for change lists
type TfvcChangesetsRequestData ¶
type TfvcChangesetsRequestData struct { // List of changeset Ids. ChangesetIds []int32 `json:"changesetIds,omitempty"` // Length of the comment. CommentLength int32 `json:"commentLength,omitempty"` // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` }
type TfvcCheckinEventData ¶
type TfvcCheckinEventData struct { Changeset *TfvcChangeset `json:"changeset,omitempty"` Project *TeamProjectReference `json:"project,omitempty"` }
type TfvcHistoryEntry ¶
type TfvcHistoryEntry struct { // The Change list (changeset/commit/shelveset) for this point in history ChangeList *ChangeList `json:"changeList,omitempty"` // The change made to the item from this change list (only relevant for File history, not folders) ItemChangeType string `json:"itemChangeType,omitempty"` // The path of the item at this point in history (only relevant for File history, not folders) ServerItem string `json:"serverItem,omitempty"` }
type TfvcItem ¶
type TfvcItem struct { Links *ReferenceLinks `json:"_links,omitempty"` Content string `json:"content,omitempty"` ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"` IsFolder bool `json:"isFolder,omitempty"` IsSymLink bool `json:"isSymLink,omitempty"` Path string `json:"path,omitempty"` Url string `json:"url,omitempty"` }
type TfvcItemDescriptor ¶
type TfvcItemDescriptor struct { Path string `json:"path,omitempty"` RecursionLevel string `json:"recursionLevel,omitempty"` Version string `json:"version,omitempty"` VersionOption string `json:"versionOption,omitempty"` VersionType string `json:"versionType,omitempty"` }
Item path and Version descriptor properties
type TfvcItemPreviousHash ¶
type TfvcItemPreviousHash struct { Links *ReferenceLinks `json:"_links,omitempty"` Content string `json:"content,omitempty"` ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"` IsFolder bool `json:"isFolder,omitempty"` IsSymLink bool `json:"isSymLink,omitempty"` Path string `json:"path,omitempty"` Url string `json:"url,omitempty"` }
type TfvcItemRequestData ¶
type TfvcItemRequestData struct { // If true, include metadata about the file type IncludeContentMetadata bool `json:"includeContentMetadata,omitempty"` // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` ItemDescriptors []TfvcItemDescriptor `json:"itemDescriptors,omitempty"` }
type TfvcLabel ¶
type TfvcLabel struct { Links *ReferenceLinks `json:"_links,omitempty"` Description string `json:"description,omitempty"` Id int32 `json:"id,omitempty"` LabelScope string `json:"labelScope,omitempty"` ModifiedDate time.Time `json:"modifiedDate,omitempty"` Name string `json:"name,omitempty"` Owner *IdentityRef `json:"owner,omitempty"` Url string `json:"url,omitempty"` }
type TfvcLabelRef ¶
type TfvcLabelRef struct { Links *ReferenceLinks `json:"_links,omitempty"` Description string `json:"description,omitempty"` Id int32 `json:"id,omitempty"` LabelScope string `json:"labelScope,omitempty"` ModifiedDate time.Time `json:"modifiedDate,omitempty"` Name string `json:"name,omitempty"` Owner *IdentityRef `json:"owner,omitempty"` Url string `json:"url,omitempty"` }
type TfvcLabelRequestData ¶
type TfvcLabelRequestData struct { // Whether to include the _links field on the shallow references IncludeLinks bool `json:"includeLinks,omitempty"` ItemLabelFilter string `json:"itemLabelFilter,omitempty"` LabelScope string `json:"labelScope,omitempty"` MaxItemCount int32 `json:"maxItemCount,omitempty"` Name string `json:"name,omitempty"` Owner string `json:"owner,omitempty"` }
type TfvcMappingFilter ¶
type TfvcMergeSource ¶
type TfvcMergeSource struct { // Indicates if this a rename source. If false, it is a merge source. IsRename bool `json:"isRename,omitempty"` // The server item of the merge source ServerItem string `json:"serverItem,omitempty"` // Start of the version range VersionFrom int32 `json:"versionFrom,omitempty"` // End of the version range VersionTo int32 `json:"versionTo,omitempty"` }
type TfvcPolicyFailureInfo ¶
type TfvcPolicyOverrideInfo ¶
type TfvcPolicyOverrideInfo struct { Comment string `json:"comment,omitempty"` PolicyFailures []TfvcPolicyFailureInfo `json:"policyFailures,omitempty"` }
type TfvcShallowBranchRef ¶
type TfvcShallowBranchRef struct { // Path for the branch. Path string `json:"path,omitempty"` }
type TfvcShelveset ¶
type TfvcShelveset struct { Links *ReferenceLinks `json:"_links,omitempty"` Comment string `json:"comment,omitempty"` CommentTruncated bool `json:"commentTruncated,omitempty"` CreatedDate time.Time `json:"createdDate,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Owner *IdentityRef `json:"owner,omitempty"` Url string `json:"url,omitempty"` }
This is the deep shelveset class
type TfvcShelvesetRef ¶
type TfvcShelvesetRef struct { Links *ReferenceLinks `json:"_links,omitempty"` Comment string `json:"comment,omitempty"` CommentTruncated bool `json:"commentTruncated,omitempty"` CreatedDate time.Time `json:"createdDate,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Owner *IdentityRef `json:"owner,omitempty"` Url string `json:"url,omitempty"` }
This is the shallow shelveset class
type TfvcShelvesetRequestData ¶
type TfvcShelvesetRequestData struct { // Whether to include policyOverride and notes Only applies when requesting a single deep shelveset IncludeDetails bool `json:"includeDetails,omitempty"` // Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset. IncludeLinks bool `json:"includeLinks,omitempty"` // Whether to include workItems IncludeWorkItems bool `json:"includeWorkItems,omitempty"` // Max number of changes to include MaxChangeCount int32 `json:"maxChangeCount,omitempty"` // Max length of comment MaxCommentLength int32 `json:"maxCommentLength,omitempty"` // Shelveset's name Name string `json:"name,omitempty"` // Owner's ID. Could be a name or a guid. Owner string `json:"owner,omitempty"` }
type TfvcStatistics ¶
type TfvcVersionDescriptor ¶
type TitleDescriptionUpdatedEvent ¶
type TitleDescriptionUpdatedEvent struct { // The id of this event. Can be used to track send/receive state between client and server. EventId string `json:"eventId,omitempty"` // The id of the pull request this event was generated for. PullRequestId int32 `json:"pullRequestId,omitempty"` }
Real time event (SignalR) for a title/description update on a pull request
type TreesApiService ¶
type TreesApiService service
func (*TreesApiService) Get ¶
func (a *TreesApiService) Get(ctx context.Context, repositoryId string, sha1 string, project string, apiVersion string, localVarOptionals *GetOptsTrees) (GitTreeRef, *http.Response, error)
type UpdateRefOpts ¶
type UpdateRefsOpts ¶
type UpdateRefsRequest ¶
type UpdateRefsRequest struct { RefUpdateRequests []GitRefUpdate `json:"refUpdateRequests,omitempty"` UpdateMode string `json:"updateMode,omitempty"` }
type VersionControlProjectInfo ¶
type VersionControlProjectInfo struct { DefaultSourceControlType string `json:"defaultSourceControlType,omitempty"` Project *TeamProjectReference `json:"project,omitempty"` SupportsGit bool `json:"supportsGit,omitempty"` SupportsTFVC bool `json:"supportsTFVC,omitempty"` }
type VersionedPolicyConfigurationRef ¶
type VersionedPolicyConfigurationRef struct { // The policy configuration ID. Id int32 `json:"id,omitempty"` // The policy configuration type. Type_ *PolicyTypeRef `json:"type,omitempty"` // The URL where the policy configuration can be retrieved. Url string `json:"url,omitempty"` }
A particular revision for a policy configuration.
type VssJsonCollectionWrapper ¶
type VssJsonCollectionWrapper struct {
Count int32 `json:"count,omitempty"`
}
This class is used to serialized collections as a single JSON object on the wire, to avoid serializing JSON arrays directly to the client, which can be a security hole
type VssJsonCollectionWrapperBase ¶
type VssJsonCollectionWrapperBase struct {
Count int32 `json:"count,omitempty"`
}
type WebApiCreateTagRequestData ¶
type WebApiCreateTagRequestData struct { // Name of the tag definition that will be created. Name string `json:"name,omitempty"` }
The representation of data needed to create a tag definition which is sent across the wire.
type WebApiTagDefinition ¶
type WebApiTagDefinition struct { // Whether or not the tag definition is active. Active bool `json:"active,omitempty"` // ID of the tag definition. Id string `json:"id,omitempty"` // The name of the tag definition. Name string `json:"name,omitempty"` // Resource URL for the Tag Definition. Url string `json:"url,omitempty"` }
The representation of a tag definition which is sent across the wire.
Source Files
¶
- api_annotated_tags.go
- api_blobs.go
- api_cherry_picks.go
- api_commits.go
- api_diffs.go
- api_forks.go
- api_import_requests.go
- api_items.go
- api_merge_bases.go
- api_policy_configurations.go
- api_pull_request_attachments.go
- api_pull_request_comment_likes.go
- api_pull_request_commits.go
- api_pull_request_iteration_changes.go
- api_pull_request_iteration_statuses.go
- api_pull_request_iterations.go
- api_pull_request_labels.go
- api_pull_request_properties.go
- api_pull_request_query.go
- api_pull_request_reviewers.go
- api_pull_request_share.go
- api_pull_request_statuses.go
- api_pull_request_thread_comments.go
- api_pull_request_threads.go
- api_pull_request_work_items.go
- api_pull_requests.go
- api_pushes.go
- api_refs.go
- api_refs_favorites.go
- api_repositories.go
- api_reverts.go
- api_stats.go
- api_statuses.go
- api_suggestions.go
- api_trees.go
- client.go
- configuration.go
- model_associated_work_item.go
- model_async_git_operation_notification.go
- model_async_ref_operation_commit_level_event_notification.go
- model_async_ref_operation_completed_notification.go
- model_async_ref_operation_conflict_notification.go
- model_async_ref_operation_general_failure_notification.go
- model_async_ref_operation_progress_notification.go
- model_async_ref_operation_timeout_notification.go
- model_attachment.go
- model_auto_complete_updated_event.go
- model_branch_updated_event.go
- model_change.go
- model_change_count_dictionary.go
- model_change_list.go
- model_change_list_search_criteria.go
- model_checkin_note.go
- model_comment.go
- model_comment_iteration_context.go
- model_comment_position.go
- model_comment_thread.go
- model_comment_thread_context.go
- model_comment_tracking_criteria.go
- model_completion_errors_event.go
- model_discussions_updated_event.go
- model_file_content_metadata.go
- model_git_annotated_tag.go
- model_git_async_ref_operation.go
- model_git_async_ref_operation_detail.go
- model_git_async_ref_operation_parameters.go
- model_git_async_ref_operation_source.go
- model_git_base_version_descriptor.go
- model_git_blob_ref.go
- model_git_branch_stats.go
- model_git_change.go
- model_git_cherry_pick.go
- model_git_commit.go
- model_git_commit_changes.go
- model_git_commit_diffs.go
- model_git_commit_ref.go
- model_git_commit_to_create.go
- model_git_conflict.go
- model_git_conflict_add_add.go
- model_git_conflict_add_rename.go
- model_git_conflict_delete_edit.go
- model_git_conflict_delete_rename.go
- model_git_conflict_directory_file.go
- model_git_conflict_edit_delete.go
- model_git_conflict_edit_edit.go
- model_git_conflict_file_directory.go
- model_git_conflict_rename1to2.go
- model_git_conflict_rename2to1.go
- model_git_conflict_rename_add.go
- model_git_conflict_rename_delete.go
- model_git_conflict_rename_rename.go
- model_git_conflict_update_result.go
- model_git_deleted_repository.go
- model_git_file_paths_collection.go
- model_git_fork_operation_status_detail.go
- model_git_fork_ref.go
- model_git_fork_sync_request.go
- model_git_fork_sync_request_parameters.go
- model_git_fork_team_project_reference.go
- model_git_import_failed_event.go
- model_git_import_git_source.go
- model_git_import_request.go
- model_git_import_request_parameters.go
- model_git_import_status_detail.go
- model_git_import_succeeded_event.go
- model_git_import_tfvc_source.go
- model_git_item.go
- model_git_item_descriptor.go
- model_git_item_request_data.go
- model_git_last_change_item.go
- model_git_last_change_tree_items.go
- model_git_merge_origin_ref.go
- model_git_object.go
- model_git_path_action.go
- model_git_path_to_items_collection.go
- model_git_pull_request.go
- model_git_pull_request_change.go
- model_git_pull_request_comment_thread.go
- model_git_pull_request_comment_thread_context.go
- model_git_pull_request_completion_options.go
- model_git_pull_request_iteration.go
- model_git_pull_request_iteration_changes.go
- model_git_pull_request_merge_options.go
- model_git_pull_request_query.go
- model_git_pull_request_query_input.go
- model_git_pull_request_review_file_content_info.go
- model_git_pull_request_search_criteria.go
- model_git_pull_request_status.go
- model_git_push.go
- model_git_push_event_data.go
- model_git_push_ref.go
- model_git_push_search_criteria.go
- model_git_query_branch_stats_criteria.go
- model_git_query_commits_criteria.go
- model_git_query_refs_criteria.go
- model_git_recycle_bin_repository_details.go
- model_git_ref.go
- model_git_ref_favorite.go
- model_git_ref_update.go
- model_git_ref_update_result.go
- model_git_repository.go
- model_git_repository_create_options.go
- model_git_repository_ref.go
- model_git_repository_stats.go
- model_git_resolution_merge_content.go
- model_git_resolution_path_conflict.go
- model_git_resolution_pick_one_action.go
- model_git_resolution_rename1to2.go
- model_git_revert.go
- model_git_status.go
- model_git_status_context.go
- model_git_suggestion.go
- model_git_target_version_descriptor.go
- model_git_template.go
- model_git_tree_diff.go
- model_git_tree_diff_entry.go
- model_git_tree_diff_response.go
- model_git_tree_entry_ref.go
- model_git_tree_ref.go
- model_git_user_date.go
- model_git_version_descriptor.go
- model_global_git_repository_key.go
- model_graph_subject_base.go
- model_history_entry.go
- model_identity_ref.go
- model_identity_ref_with_vote.go
- model_import_repository_validation.go
- model_included_git_commit.go
- model_item_content.go
- model_item_details_options.go
- model_item_model.go
- model_json_patch_document.go
- model_json_patch_operation.go
- model_labels_updated_event.go
- model_merge_completed_event.go
- model_policy_configuration.go
- model_policy_configuration_ref.go
- model_policy_evaluation_updated_event.go
- model_policy_type_ref.go
- model_properties_collection.go
- model_pull_request_created_event.go
- model_pull_request_tab_extension_config.go
- model_real_time_pull_request_event.go
- model_reference_links.go
- model_resource_ref.go
- model_retarget_event.go
- model_reviewer_vote_updated_event.go
- model_reviewers_updated_event.go
- model_reviewers_votes_reset_event.go
- model_share_notification_context.go
- model_source_to_target_ref.go
- model_status_added_event.go
- model_status_updated_event.go
- model_statuses_deleted_event.go
- model_supported_ide.go
- model_team_project_collection_reference.go
- model_team_project_reference.go
- model_tfvc_branch.go
- model_tfvc_branch_mapping.go
- model_tfvc_branch_ref.go
- model_tfvc_change.go
- model_tfvc_changeset.go
- model_tfvc_changeset_ref.go
- model_tfvc_changeset_search_criteria.go
- model_tfvc_changesets_request_data.go
- model_tfvc_checkin_event_data.go
- model_tfvc_history_entry.go
- model_tfvc_item.go
- model_tfvc_item_descriptor.go
- model_tfvc_item_previous_hash.go
- model_tfvc_item_request_data.go
- model_tfvc_label.go
- model_tfvc_label_ref.go
- model_tfvc_label_request_data.go
- model_tfvc_mapping_filter.go
- model_tfvc_merge_source.go
- model_tfvc_policy_failure_info.go
- model_tfvc_policy_override_info.go
- model_tfvc_shallow_branch_ref.go
- model_tfvc_shelveset.go
- model_tfvc_shelveset_ref.go
- model_tfvc_shelveset_request_data.go
- model_tfvc_statistics.go
- model_tfvc_version_descriptor.go
- model_title_description_updated_event.go
- model_update_refs_request.go
- model_version_control_project_info.go
- model_versioned_policy_configuration_ref.go
- model_vss_json_collection_wrapper.go
- model_vss_json_collection_wrapper_base.go
- model_web_api_create_tag_request_data.go
- model_web_api_tag_definition.go
- response.go