Documentation ¶
Index ¶
- Variables
- type AddBuildTagArgs
- type AddBuildTagsArgs
- type AddDefinitionTagArgs
- type AddDefinitionTagsArgs
- type AddRetentionLeasesArgs
- type AgentPoolQueue
- type AgentPoolQueueReference
- type AgentPoolQueueTarget
- type AgentSpecification
- type AgentStatus
- type AgentTargetExecutionOptions
- type ArtifactResource
- type Attachment
- type AuditAction
- type AuthorizeDefinitionResourcesArgs
- type AuthorizeProjectResourcesArgs
- type Build
- type BuildAgent
- type BuildAgentReference
- type BuildArtifact
- type BuildAuthorizationScope
- type BuildBadge
- type BuildCompletedEvent
- type BuildCompletionTrigger
- type BuildController
- type BuildDefinition
- type BuildDefinition3_2
- type BuildDefinitionReference
- type BuildDefinitionReference3_2
- type BuildDefinitionRevision
- type BuildDefinitionSourceProvider
- type BuildDefinitionStep
- type BuildDefinitionTemplate
- type BuildDefinitionTemplate3_2
- type BuildDefinitionVariable
- type BuildDeletedEvent
- type BuildDeployment
- type BuildEvent
- type BuildLog
- type BuildLogReference
- type BuildMetric
- type BuildOption
- type BuildOptionDefinition
- type BuildOptionDefinitionReference
- type BuildOptionGroupDefinition
- type BuildOptionInputDefinition
- type BuildOptionInputType
- type BuildPhaseStatus
- type BuildProcess
- type BuildProcessResources
- type BuildProcessTemplate
- type BuildQueryOrder
- type BuildQueuedEvent
- type BuildReason
- type BuildReference
- type BuildReportMetadata
- type BuildRepository
- type BuildRequestValidationResult
- type BuildResourceUsage
- type BuildResult
- type BuildServer
- type BuildSettings
- type BuildStatus
- type BuildSummary
- type BuildTagsAddedEvent
- type BuildTrigger
- type BuildUpdatedEvent
- type BuildWorkspace
- type BuildsDeletedEvent
- type BuildsDeletedEvent1
- type Change
- type Client
- type ClientImpl
- func (client *ClientImpl) AddBuildTag(ctx context.Context, args AddBuildTagArgs) (*[]string, error)
- func (client *ClientImpl) AddBuildTags(ctx context.Context, args AddBuildTagsArgs) (*[]string, error)
- func (client *ClientImpl) AddDefinitionTag(ctx context.Context, args AddDefinitionTagArgs) (*[]string, error)
- func (client *ClientImpl) AddDefinitionTags(ctx context.Context, args AddDefinitionTagsArgs) (*[]string, error)
- func (client *ClientImpl) AddRetentionLeases(ctx context.Context, args AddRetentionLeasesArgs) (*[]RetentionLease, error)
- func (client *ClientImpl) AuthorizeDefinitionResources(ctx context.Context, args AuthorizeDefinitionResourcesArgs) (*[]DefinitionResourceReference, error)
- func (client *ClientImpl) AuthorizeProjectResources(ctx context.Context, args AuthorizeProjectResourcesArgs) (*[]DefinitionResourceReference, error)
- func (client *ClientImpl) CreateArtifact(ctx context.Context, args CreateArtifactArgs) (*BuildArtifact, error)
- func (client *ClientImpl) CreateDefinition(ctx context.Context, args CreateDefinitionArgs) (*BuildDefinition, error)
- func (client *ClientImpl) CreateFolder(ctx context.Context, args CreateFolderArgs) (*Folder, error)
- func (client *ClientImpl) DeleteBuild(ctx context.Context, args DeleteBuildArgs) error
- func (client *ClientImpl) DeleteBuildTag(ctx context.Context, args DeleteBuildTagArgs) (*[]string, error)
- func (client *ClientImpl) DeleteDefinition(ctx context.Context, args DeleteDefinitionArgs) error
- func (client *ClientImpl) DeleteDefinitionTag(ctx context.Context, args DeleteDefinitionTagArgs) (*[]string, error)
- func (client *ClientImpl) DeleteFolder(ctx context.Context, args DeleteFolderArgs) error
- func (client *ClientImpl) DeleteRetentionLeasesById(ctx context.Context, args DeleteRetentionLeasesByIdArgs) error
- func (client *ClientImpl) DeleteTag(ctx context.Context, args DeleteTagArgs) (*[]string, error)
- func (client *ClientImpl) DeleteTemplate(ctx context.Context, args DeleteTemplateArgs) error
- func (client *ClientImpl) GetArtifact(ctx context.Context, args GetArtifactArgs) (*BuildArtifact, error)
- func (client *ClientImpl) GetArtifactContentZip(ctx context.Context, args GetArtifactContentZipArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetArtifacts(ctx context.Context, args GetArtifactsArgs) (*[]BuildArtifact, error)
- func (client *ClientImpl) GetAttachment(ctx context.Context, args GetAttachmentArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetAttachments(ctx context.Context, args GetAttachmentsArgs) (*[]Attachment, error)
- func (client *ClientImpl) GetBuild(ctx context.Context, args GetBuildArgs) (*Build, error)
- func (client *ClientImpl) GetBuildBadge(ctx context.Context, args GetBuildBadgeArgs) (*BuildBadge, error)
- func (client *ClientImpl) GetBuildBadgeData(ctx context.Context, args GetBuildBadgeDataArgs) (*string, error)
- func (client *ClientImpl) GetBuildChanges(ctx context.Context, args GetBuildChangesArgs) (*GetBuildChangesResponseValue, error)
- func (client *ClientImpl) GetBuildController(ctx context.Context, args GetBuildControllerArgs) (*BuildController, error)
- func (client *ClientImpl) GetBuildControllers(ctx context.Context, args GetBuildControllersArgs) (*[]BuildController, error)
- func (client *ClientImpl) GetBuildGeneralSettings(ctx context.Context, args GetBuildGeneralSettingsArgs) (*PipelineGeneralSettings, error)
- func (client *ClientImpl) GetBuildLog(ctx context.Context, args GetBuildLogArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetBuildLogLines(ctx context.Context, args GetBuildLogLinesArgs) (*[]string, error)
- func (client *ClientImpl) GetBuildLogZip(ctx context.Context, args GetBuildLogZipArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetBuildLogs(ctx context.Context, args GetBuildLogsArgs) (*[]BuildLog, error)
- func (client *ClientImpl) GetBuildLogsZip(ctx context.Context, args GetBuildLogsZipArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetBuildOptionDefinitions(ctx context.Context, args GetBuildOptionDefinitionsArgs) (*[]BuildOptionDefinition, error)
- func (client *ClientImpl) GetBuildProperties(ctx context.Context, args GetBuildPropertiesArgs) (interface{}, error)
- func (client *ClientImpl) GetBuildReport(ctx context.Context, args GetBuildReportArgs) (*BuildReportMetadata, error)
- func (client *ClientImpl) GetBuildReportHtmlContent(ctx context.Context, args GetBuildReportHtmlContentArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetBuildSettings(ctx context.Context, args GetBuildSettingsArgs) (*BuildSettings, error)
- func (client *ClientImpl) GetBuildTags(ctx context.Context, args GetBuildTagsArgs) (*[]string, error)
- func (client *ClientImpl) GetBuildTimeline(ctx context.Context, args GetBuildTimelineArgs) (*Timeline, error)
- func (client *ClientImpl) GetBuildWorkItemsRefs(ctx context.Context, args GetBuildWorkItemsRefsArgs) (*[]webapi.ResourceRef, error)
- func (client *ClientImpl) GetBuildWorkItemsRefsFromCommits(ctx context.Context, args GetBuildWorkItemsRefsFromCommitsArgs) (*[]webapi.ResourceRef, error)
- func (client *ClientImpl) GetBuilds(ctx context.Context, args GetBuildsArgs) (*GetBuildsResponseValue, error)
- func (client *ClientImpl) GetChangesBetweenBuilds(ctx context.Context, args GetChangesBetweenBuildsArgs) (*[]Change, error)
- func (client *ClientImpl) GetDefinition(ctx context.Context, args GetDefinitionArgs) (*BuildDefinition, error)
- func (client *ClientImpl) GetDefinitionMetrics(ctx context.Context, args GetDefinitionMetricsArgs) (*[]BuildMetric, error)
- func (client *ClientImpl) GetDefinitionProperties(ctx context.Context, args GetDefinitionPropertiesArgs) (interface{}, error)
- func (client *ClientImpl) GetDefinitionResources(ctx context.Context, args GetDefinitionResourcesArgs) (*[]DefinitionResourceReference, error)
- func (client *ClientImpl) GetDefinitionRevisions(ctx context.Context, args GetDefinitionRevisionsArgs) (*[]BuildDefinitionRevision, error)
- func (client *ClientImpl) GetDefinitionTags(ctx context.Context, args GetDefinitionTagsArgs) (*[]string, error)
- func (client *ClientImpl) GetDefinitions(ctx context.Context, args GetDefinitionsArgs) (*GetDefinitionsResponseValue, error)
- func (client *ClientImpl) GetFile(ctx context.Context, args GetFileArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetFileContents(ctx context.Context, args GetFileContentsArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetFolders(ctx context.Context, args GetFoldersArgs) (*[]Folder, error)
- func (client *ClientImpl) GetLatestBuild(ctx context.Context, args GetLatestBuildArgs) (*Build, error)
- func (client *ClientImpl) GetPathContents(ctx context.Context, args GetPathContentsArgs) (*[]SourceRepositoryItem, error)
- func (client *ClientImpl) GetProjectMetrics(ctx context.Context, args GetProjectMetricsArgs) (*[]BuildMetric, error)
- func (client *ClientImpl) GetProjectResources(ctx context.Context, args GetProjectResourcesArgs) (*[]DefinitionResourceReference, error)
- func (client *ClientImpl) GetPullRequest(ctx context.Context, args GetPullRequestArgs) (*PullRequest, error)
- func (client *ClientImpl) GetResourceUsage(ctx context.Context, args GetResourceUsageArgs) (*BuildResourceUsage, error)
- func (client *ClientImpl) GetRetentionLease(ctx context.Context, args GetRetentionLeaseArgs) (*RetentionLease, error)
- func (client *ClientImpl) GetRetentionLeasesByMinimalRetentionLeases(ctx context.Context, args GetRetentionLeasesByMinimalRetentionLeasesArgs) (*[]RetentionLease, error)
- func (client *ClientImpl) GetRetentionLeasesByOwnerId(ctx context.Context, args GetRetentionLeasesByOwnerIdArgs) (*[]RetentionLease, error)
- func (client *ClientImpl) GetRetentionLeasesByUserId(ctx context.Context, args GetRetentionLeasesByUserIdArgs) (*[]RetentionLease, error)
- func (client *ClientImpl) GetRetentionSettings(ctx context.Context, args GetRetentionSettingsArgs) (*ProjectRetentionSetting, error)
- func (client *ClientImpl) GetStatusBadge(ctx context.Context, args GetStatusBadgeArgs) (*string, error)
- func (client *ClientImpl) GetTags(ctx context.Context, args GetTagsArgs) (*[]string, error)
- func (client *ClientImpl) GetTemplate(ctx context.Context, args GetTemplateArgs) (*BuildDefinitionTemplate, error)
- func (client *ClientImpl) GetTemplates(ctx context.Context, args GetTemplatesArgs) (*[]BuildDefinitionTemplate, error)
- func (client *ClientImpl) GetWorkItemsBetweenBuilds(ctx context.Context, args GetWorkItemsBetweenBuildsArgs) (*[]webapi.ResourceRef, error)
- func (client *ClientImpl) ListBranches(ctx context.Context, args ListBranchesArgs) (*[]string, error)
- func (client *ClientImpl) ListRepositories(ctx context.Context, args ListRepositoriesArgs) (*SourceRepositories, error)
- func (client *ClientImpl) ListSourceProviders(ctx context.Context, args ListSourceProvidersArgs) (*[]SourceProviderAttributes, error)
- func (client *ClientImpl) ListWebhooks(ctx context.Context, args ListWebhooksArgs) (*[]RepositoryWebhook, error)
- func (client *ClientImpl) QueueBuild(ctx context.Context, args QueueBuildArgs) (*Build, error)
- func (client *ClientImpl) RestoreDefinition(ctx context.Context, args RestoreDefinitionArgs) (*BuildDefinition, error)
- func (client *ClientImpl) RestoreWebhooks(ctx context.Context, args RestoreWebhooksArgs) error
- func (client *ClientImpl) SaveTemplate(ctx context.Context, args SaveTemplateArgs) (*BuildDefinitionTemplate, error)
- func (client *ClientImpl) UpdateBuild(ctx context.Context, args UpdateBuildArgs) (*Build, error)
- func (client *ClientImpl) UpdateBuildGeneralSettings(ctx context.Context, args UpdateBuildGeneralSettingsArgs) (*PipelineGeneralSettings, error)
- func (client *ClientImpl) UpdateBuildProperties(ctx context.Context, args UpdateBuildPropertiesArgs) (interface{}, error)
- func (client *ClientImpl) UpdateBuildSettings(ctx context.Context, args UpdateBuildSettingsArgs) (*BuildSettings, error)
- func (client *ClientImpl) UpdateBuilds(ctx context.Context, args UpdateBuildsArgs) (*[]Build, error)
- func (client *ClientImpl) UpdateDefinition(ctx context.Context, args UpdateDefinitionArgs) (*BuildDefinition, error)
- func (client *ClientImpl) UpdateDefinitionProperties(ctx context.Context, args UpdateDefinitionPropertiesArgs) (interface{}, error)
- func (client *ClientImpl) UpdateFolder(ctx context.Context, args UpdateFolderArgs) (*Folder, error)
- func (client *ClientImpl) UpdateRetentionSettings(ctx context.Context, args UpdateRetentionSettingsArgs) (*ProjectRetentionSetting, error)
- func (client *ClientImpl) UpdateStage(ctx context.Context, args UpdateStageArgs) error
- type ConsoleLogEvent
- type ContinuousDeploymentDefinition
- type ContinuousIntegrationTrigger
- type ControllerStatus
- type CreateArtifactArgs
- type CreateDefinitionArgs
- type CreateFolderArgs
- type DefinitionQuality
- type DefinitionQueryOrder
- type DefinitionQueueStatus
- type DefinitionReference
- type DefinitionResourceReference
- type DefinitionTriggerType
- type DefinitionType
- type DeleteBuildArgs
- type DeleteBuildTagArgs
- type DeleteDefinitionArgs
- type DeleteDefinitionTagArgs
- type DeleteFolderArgs
- type DeleteOptions
- type DeleteRetentionLeasesByIdArgs
- type DeleteTagArgs
- type DeleteTemplateArgs
- type Demand
- type Dependency
- type Deployment
- type DeploymentBuild
- type DeploymentDeploy
- type DeploymentTest
- type DesignerProcess
- type DesignerProcessTarget
- type DockerProcess
- type DockerProcessTarget
- type Folder
- type FolderQueryOrder
- type Forks
- type GatedCheckInTrigger
- type GetArtifactArgs
- type GetArtifactContentZipArgs
- type GetArtifactsArgs
- type GetAttachmentArgs
- type GetAttachmentsArgs
- type GetBuildArgs
- type GetBuildBadgeArgs
- type GetBuildBadgeDataArgs
- type GetBuildChangesArgs
- type GetBuildChangesResponseValue
- type GetBuildControllerArgs
- type GetBuildControllersArgs
- type GetBuildGeneralSettingsArgs
- type GetBuildLogArgs
- type GetBuildLogLinesArgs
- type GetBuildLogZipArgs
- type GetBuildLogsArgs
- type GetBuildLogsZipArgs
- type GetBuildOptionDefinitionsArgs
- type GetBuildPropertiesArgs
- type GetBuildReportArgs
- type GetBuildReportHtmlContentArgs
- type GetBuildSettingsArgs
- type GetBuildTagsArgs
- type GetBuildTimelineArgs
- type GetBuildWorkItemsRefsArgs
- type GetBuildWorkItemsRefsFromCommitsArgs
- type GetBuildsArgs
- type GetBuildsResponseValue
- type GetChangesBetweenBuildsArgs
- type GetDefinitionArgs
- type GetDefinitionMetricsArgs
- type GetDefinitionPropertiesArgs
- type GetDefinitionResourcesArgs
- type GetDefinitionRevisionsArgs
- type GetDefinitionTagsArgs
- type GetDefinitionsArgs
- type GetDefinitionsResponseValue
- type GetFileArgs
- type GetFileContentsArgs
- type GetFoldersArgs
- type GetLatestBuildArgs
- type GetOption
- type GetPathContentsArgs
- type GetProjectMetricsArgs
- type GetProjectResourcesArgs
- type GetPullRequestArgs
- type GetResourceUsageArgs
- type GetRetentionLeaseArgs
- type GetRetentionLeasesByMinimalRetentionLeasesArgs
- type GetRetentionLeasesByOwnerIdArgs
- type GetRetentionLeasesByUserIdArgs
- type GetRetentionSettingsArgs
- type GetStatusBadgeArgs
- type GetTagsArgs
- type GetTemplateArgs
- type GetTemplatesArgs
- type GetWorkItemsBetweenBuildsArgs
- type InformationNode
- type Issue
- type IssueType
- type JustInTimeProcess
- type ListBranchesArgs
- type ListRepositoriesArgs
- type ListSourceProvidersArgs
- type ListWebhooksArgs
- type MappingDetails
- type MinimalRetentionLease
- type MultipleAgentExecutionOptions
- type NewRetentionLease
- type Phase
- type PhaseTarget
- type PipelineGeneralSettings
- type ProcessTemplateType
- type ProjectRetentionSetting
- type PullRequest
- type PullRequestTrigger
- type QueryDeletedOption
- type QueueBuildArgs
- type QueueOptions
- type QueuePriority
- type RealtimeBuildEvent
- type RepositoryCleanOptions
- type RepositoryWebhook
- type ResourceReference
- type RestoreDefinitionArgs
- type RestoreWebhooksArgs
- type ResultSet
- type RetentionLease
- type RetentionPolicy
- type RetentionSetting
- type SaveTemplateArgs
- type Schedule
- type ScheduleDays
- type ScheduleTrigger
- type SecureFileReference
- type ServerTarget
- type ServerTargetExecutionOptions
- type ServiceEndpointReference
- type ServiceHostStatus
- type SourceProviderAttributes
- type SourceProviderAvailability
- type SourceRelatedWorkItem
- type SourceRepositories
- type SourceRepository
- type SourceRepositoryItem
- type StageUpdateType
- type SupportLevel
- type SupportedTrigger
- type SvnMappingDetails
- type SvnWorkspace
- type TaskAgentPoolReference
- type TaskDefinitionReference
- type TaskOrchestrationPlanGroupReference
- type TaskOrchestrationPlanGroupsStartedEvent
- type TaskOrchestrationPlanReference
- type TaskReference
- type TaskResult
- type Timeline
- type TimelineAttempt
- type TimelineRecord
- type TimelineRecordState
- type TimelineRecordsUpdatedEvent
- type TimelineReference
- type UpdateBuildArgs
- type UpdateBuildGeneralSettingsArgs
- type UpdateBuildPropertiesArgs
- type UpdateBuildSettingsArgs
- type UpdateBuildsArgs
- type UpdateDefinitionArgs
- type UpdateDefinitionPropertiesArgs
- type UpdateFolderArgs
- type UpdateProjectRetentionSettingModel
- type UpdateRetentionSettingModel
- type UpdateRetentionSettingsArgs
- type UpdateStageArgs
- type UpdateStageParameters
- type ValidationResult
- type VariableGroup
- type VariableGroupReference
- type VariableMultipliersAgentExecutionOptions
- type VariableMultipliersServerExecutionOptions
- type WorkspaceMapping
- type WorkspaceMappingType
- type WorkspaceTemplate
- type XamlBuildControllerReference
- type XamlBuildDefinition
- type XamlBuildReference
- type XamlBuildServerReference
- type XamlDefinitionReference
- type YamlProcess
Constants ¶
This section is empty.
Variables ¶
var AgentStatusValues = agentStatusValuesType{
Unavailable: "unavailable",
Available: "available",
Offline: "offline",
}
var AuditActionValues = auditActionValuesType{
Add: "add",
Update: "update",
Delete: "delete",
}
var BuildAuthorizationScopeValues = buildAuthorizationScopeValuesType{
ProjectCollection: "projectCollection",
Project: "project",
}
var BuildOptionInputTypeValues = buildOptionInputTypeValuesType{
String: "string",
Boolean: "boolean",
StringList: "stringList",
Radio: "radio",
PickList: "pickList",
MultiLine: "multiLine",
BranchFilter: "branchFilter",
}
var BuildPhaseStatusValues = buildPhaseStatusValuesType{
Unknown: "unknown",
Failed: "failed",
Succeeded: "succeeded",
}
var BuildQueryOrderValues = buildQueryOrderValuesType{
FinishTimeAscending: "finishTimeAscending",
FinishTimeDescending: "finishTimeDescending",
QueueTimeDescending: "queueTimeDescending",
QueueTimeAscending: "queueTimeAscending",
StartTimeDescending: "startTimeDescending",
StartTimeAscending: "startTimeAscending",
}
var BuildReasonValues = buildReasonValuesType{
None: "none",
Manual: "manual",
IndividualCI: "individualCI",
BatchedCI: "batchedCI",
Schedule: "schedule",
ScheduleForced: "scheduleForced",
UserCreated: "userCreated",
ValidateShelveset: "validateShelveset",
CheckInShelveset: "checkInShelveset",
PullRequest: "pullRequest",
BuildCompletion: "buildCompletion",
ResourceTrigger: "resourceTrigger",
Triggered: "triggered",
All: "all",
}
var BuildResultValues = buildResultValuesType{
None: "none",
Succeeded: "succeeded",
PartiallySucceeded: "partiallySucceeded",
Failed: "failed",
Canceled: "canceled",
}
var BuildStatusValues = buildStatusValuesType{
None: "none",
InProgress: "inProgress",
Completed: "completed",
Cancelling: "cancelling",
Postponed: "postponed",
NotStarted: "notStarted",
All: "all",
}
var ControllerStatusValues = controllerStatusValuesType{
Unavailable: "unavailable",
Available: "available",
Offline: "offline",
}
var DefinitionQualityValues = definitionQualityValuesType{
Definition: "definition",
Draft: "draft",
}
var DefinitionQueryOrderValues = definitionQueryOrderValuesType{
None: "none",
LastModifiedAscending: "lastModifiedAscending",
LastModifiedDescending: "lastModifiedDescending",
DefinitionNameAscending: "definitionNameAscending",
DefinitionNameDescending: "definitionNameDescending",
}
var DefinitionQueueStatusValues = definitionQueueStatusValuesType{
Enabled: "enabled",
Paused: "paused",
Disabled: "disabled",
}
var DefinitionTriggerTypeValues = definitionTriggerTypeValuesType{
None: "none",
ContinuousIntegration: "continuousIntegration",
BatchedContinuousIntegration: "batchedContinuousIntegration",
Schedule: "schedule",
GatedCheckIn: "gatedCheckIn",
BatchedGatedCheckIn: "batchedGatedCheckIn",
PullRequest: "pullRequest",
BuildCompletion: "buildCompletion",
All: "all",
}
var DefinitionTypeValues = definitionTypeValuesType{ Xaml: "xaml", Build: "build", }
var DeleteOptionsValues = deleteOptionsValuesType{
None: "none",
DropLocation: "dropLocation",
TestResults: "testResults",
Label: "label",
Details: "details",
Symbols: "symbols",
All: "all",
}
var FolderQueryOrderValues = folderQueryOrderValuesType{
None: "none",
FolderAscending: "folderAscending",
FolderDescending: "folderDescending",
}
var GetOptionValues = getOptionValuesType{
LatestOnQueue: "latestOnQueue",
LatestOnBuild: "latestOnBuild",
Custom: "custom",
}
var IssueTypeValues = issueTypeValuesType{
Error: "error",
Warning: "warning",
}
var ProcessTemplateTypeValues = processTemplateTypeValuesType{
Custom: "custom",
Default: "default",
Upgrade: "upgrade",
}
var QueryDeletedOptionValues = queryDeletedOptionValuesType{
ExcludeDeleted: "excludeDeleted",
IncludeDeleted: "includeDeleted",
OnlyDeleted: "onlyDeleted",
}
var QueueOptionsValues = queueOptionsValuesType{
None: "none",
DoNotRun: "doNotRun",
}
var QueuePriorityValues = queuePriorityValuesType{
Low: "low",
BelowNormal: "belowNormal",
Normal: "normal",
AboveNormal: "aboveNormal",
High: "high",
}
var RepositoryCleanOptionsValues = repositoryCleanOptionsValuesType{
Source: "source",
SourceAndOutputDir: "sourceAndOutputDir",
SourceDir: "sourceDir",
AllBuildDir: "allBuildDir",
}
var ResourceAreaId, _ = uuid.Parse("965220d5-5bb9-42cf-8d67-9b146df2a5a4")
var ResultSetValues = resultSetValuesType{
All: "all",
Top: "top",
}
var ScheduleDaysValues = scheduleDaysValuesType{
None: "none",
Monday: "monday",
Tuesday: "tuesday",
Wednesday: "wednesday",
Thursday: "thursday",
Friday: "friday",
Saturday: "saturday",
Sunday: "sunday",
All: "all",
}
var ServiceHostStatusValues = serviceHostStatusValuesType{
Online: "online",
Offline: "offline",
}
var SourceProviderAvailabilityValues = sourceProviderAvailabilityValuesType{
Hosted: "hosted",
OnPremises: "onPremises",
All: "all",
}
var StageUpdateTypeValues = stageUpdateTypeValuesType{
Cancel: "cancel",
Retry: "retry",
}
var SupportLevelValues = supportLevelValuesType{
Unsupported: "unsupported",
Supported: "supported",
Required: "required",
}
var TaskResultValues = taskResultValuesType{
Succeeded: "succeeded",
SucceededWithIssues: "succeededWithIssues",
Failed: "failed",
Canceled: "canceled",
Skipped: "skipped",
Abandoned: "abandoned",
}
var TimelineRecordStateValues = timelineRecordStateValuesType{
Pending: "pending",
InProgress: "inProgress",
Completed: "completed",
}
var ValidationResultValues = validationResultValuesType{
Ok: "ok",
Warning: "warning",
Error: "error",
}
var WorkspaceMappingTypeValues = workspaceMappingTypeValuesType{
Map: "map",
Cloak: "cloak",
}
Functions ¶
This section is empty.
Types ¶
type AddBuildTagArgs ¶
type AddBuildTagArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The tag to add. Tag *string }
Arguments for the AddBuildTag function
type AddBuildTagsArgs ¶
type AddBuildTagsArgs struct { // (required) The tags to add. Tags *[]string // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the AddBuildTags function
type AddDefinitionTagArgs ¶
type AddDefinitionTagArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int // (required) The tag to add. Tag *string }
Arguments for the AddDefinitionTag function
type AddDefinitionTagsArgs ¶
type AddDefinitionTagsArgs struct { // (required) The tags to add. Tags *[]string // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int }
Arguments for the AddDefinitionTags function
type AddRetentionLeasesArgs ¶
type AddRetentionLeasesArgs struct { // (required) NewLeases *[]NewRetentionLease // (required) Project ID or project name Project *string }
Arguments for the AddRetentionLeases function
type AgentPoolQueue ¶
type AgentPoolQueue struct { Links interface{} `json:"_links,omitempty"` // The ID of the queue. Id *int `json:"id,omitempty"` // The name of the queue. Name *string `json:"name,omitempty"` // The pool used by this queue. Pool *TaskAgentPoolReference `json:"pool,omitempty"` // The full http link to the resource. Url *string `json:"url,omitempty"` }
Represents a queue for running builds.
type AgentPoolQueueReference ¶
type AgentPoolQueueReference struct { // An alias to be used when referencing the resource. Alias *string `json:"alias,omitempty"` // The ID of the queue. Id *int `json:"id,omitempty"` }
Represents a reference to an agent queue.
type AgentPoolQueueTarget ¶
type AgentPoolQueueTarget struct { // The type of the target. Type *int `json:"type,omitempty"` // Agent specification of the target. AgentSpecification *AgentSpecification `json:"agentSpecification,omitempty"` // Enables scripts and other processes launched while executing phase to access the OAuth token AllowScriptsAuthAccessOption *bool `json:"allowScriptsAuthAccessOption,omitempty"` Demands *[]interface{} `json:"demands,omitempty"` // The execution options. ExecutionOptions *AgentTargetExecutionOptions `json:"executionOptions,omitempty"` // The queue. Queue *AgentPoolQueue `json:"queue,omitempty"` }
Describes how a phase should run against an agent queue.
type AgentSpecification ¶
type AgentSpecification struct { // Agent specification unique identifier. Identifier *string `json:"identifier,omitempty"` }
Specification of the agent defined by the pool provider.
type AgentStatus ¶
type AgentStatus string
type AgentTargetExecutionOptions ¶
type AgentTargetExecutionOptions struct { // Indicates the type of execution options. Type *int `json:"type,omitempty"` }
Additional options for running phases against an agent queue.
type ArtifactResource ¶
type ArtifactResource struct { Links interface{} `json:"_links,omitempty"` // Type-specific data about the artifact. Data *string `json:"data,omitempty"` // A link to download the resource. DownloadUrl *string `json:"downloadUrl,omitempty"` // Type-specific properties of the artifact. Properties *map[string]string `json:"properties,omitempty"` // The type of the resource: File container, version control folder, UNC path, etc. Type *string `json:"type,omitempty"` // The full http link to the resource. Url *string `json:"url,omitempty"` }
type Attachment ¶
type Attachment struct { Links interface{} `json:"_links,omitempty"` // The name of the attachment. Name *string `json:"name,omitempty"` }
Represents an attachment to a build.
type AuditAction ¶
type AuditAction string
type AuthorizeDefinitionResourcesArgs ¶
type AuthorizeDefinitionResourcesArgs struct { // (required) Resources *[]DefinitionResourceReference // (required) Project ID or project name Project *string // (required) DefinitionId *int }
Arguments for the AuthorizeDefinitionResources function
type AuthorizeProjectResourcesArgs ¶
type AuthorizeProjectResourcesArgs struct { // (required) Resources *[]DefinitionResourceReference // (required) Project ID or project name Project *string }
Arguments for the AuthorizeProjectResources function
type Build ¶
type Build struct { Links interface{} `json:"_links,omitempty"` // The agent specification for the build. AgentSpecification *AgentSpecification `json:"agentSpecification,omitempty"` // The build number/name of the build. BuildNumber *string `json:"buildNumber,omitempty"` // The build number revision. BuildNumberRevision *int `json:"buildNumberRevision,omitempty"` // The build controller. This is only set if the definition type is Xaml. Controller *BuildController `json:"controller,omitempty"` // The definition associated with the build. Definition *DefinitionReference `json:"definition,omitempty"` // Indicates whether the build has been deleted. Deleted *bool `json:"deleted,omitempty"` // The identity of the process or person that deleted the build. DeletedBy *webapi.IdentityRef `json:"deletedBy,omitempty"` // The date the build was deleted. DeletedDate *azuredevops.Time `json:"deletedDate,omitempty"` // The description of how the build was deleted. DeletedReason *string `json:"deletedReason,omitempty"` // A list of demands that represents the agent capabilities required by this build. Demands *[]interface{} `json:"demands,omitempty"` // The time that the build was completed. FinishTime *azuredevops.Time `json:"finishTime,omitempty"` // The ID of the build. Id *int `json:"id,omitempty"` // Indicates whether the build should be skipped by retention policies. KeepForever *bool `json:"keepForever,omitempty"` // The identity representing the process or person that last changed the build. LastChangedBy *webapi.IdentityRef `json:"lastChangedBy,omitempty"` // The date the build was last changed. LastChangedDate *azuredevops.Time `json:"lastChangedDate,omitempty"` // Information about the build logs. Logs *BuildLogReference `json:"logs,omitempty"` // The orchestration plan for the build. OrchestrationPlan *TaskOrchestrationPlanReference `json:"orchestrationPlan,omitempty"` // The parameters for the build. Parameters *string `json:"parameters,omitempty"` // Orchestration plans associated with the build (build, cleanup) Plans *[]TaskOrchestrationPlanReference `json:"plans,omitempty"` // The build's priority. Priority *QueuePriority `json:"priority,omitempty"` // The team project. Project *core.TeamProjectReference `json:"project,omitempty"` Properties interface{} `json:"properties,omitempty"` // The quality of the xaml build (good, bad, etc.) Quality *string `json:"quality,omitempty"` // The queue. This is only set if the definition type is Build. Queue *AgentPoolQueue `json:"queue,omitempty"` // Additional options for queueing the build. QueueOptions *QueueOptions `json:"queueOptions,omitempty"` // The current position of the build in the queue. QueuePosition *int `json:"queuePosition,omitempty"` // The time that the build was queued. QueueTime *azuredevops.Time `json:"queueTime,omitempty"` // The reason that the build was created. Reason *BuildReason `json:"reason,omitempty"` // The repository. Repository *BuildRepository `json:"repository,omitempty"` // The identity that queued the build. RequestedBy *webapi.IdentityRef `json:"requestedBy,omitempty"` // The identity on whose behalf the build was queued. RequestedFor *webapi.IdentityRef `json:"requestedFor,omitempty"` // The build result. Result *BuildResult `json:"result,omitempty"` // Indicates whether the build is retained by a release. RetainedByRelease *bool `json:"retainedByRelease,omitempty"` // The source branch. SourceBranch *string `json:"sourceBranch,omitempty"` // The source version. SourceVersion *string `json:"sourceVersion,omitempty"` // The time that the build was started. StartTime *azuredevops.Time `json:"startTime,omitempty"` // The status of the build. Status *BuildStatus `json:"status,omitempty"` Tags *[]string `json:"tags,omitempty"` // The build that triggered this build via a Build completion trigger. TriggeredByBuild *Build `json:"triggeredByBuild,omitempty"` // Sourceprovider-specific information about what triggered the build TriggerInfo *map[string]string `json:"triggerInfo,omitempty"` // The URI of the build. Uri *string `json:"uri,omitempty"` // The REST URL of the build. Url *string `json:"url,omitempty"` ValidationResults *[]BuildRequestValidationResult `json:"validationResults,omitempty"` }
Data representation of a build.
type BuildAgent ¶
type BuildAgent struct { BuildDirectory *string `json:"buildDirectory,omitempty"` Controller *XamlBuildControllerReference `json:"controller,omitempty"` CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` Id *int `json:"id,omitempty"` MessageQueueUrl *string `json:"messageQueueUrl,omitempty"` Name *string `json:"name,omitempty"` ReservedForBuild *string `json:"reservedForBuild,omitempty"` Server *XamlBuildServerReference `json:"server,omitempty"` Status *AgentStatus `json:"status,omitempty"` StatusMessage *string `json:"statusMessage,omitempty"` UpdatedDate *azuredevops.Time `json:"updatedDate,omitempty"` Uri *string `json:"uri,omitempty"` Url *string `json:"url,omitempty"` }
type BuildAgentReference ¶
type BuildArtifact ¶
type BuildArtifact struct { // The artifact ID. Id *int `json:"id,omitempty"` // The name of the artifact. Name *string `json:"name,omitempty"` // The actual resource. Resource *ArtifactResource `json:"resource,omitempty"` // The artifact source, which will be the ID of the job that produced this artifact. If an artifact is associated with multiple sources, this points to the first source. Source *string `json:"source,omitempty"` }
Represents an artifact produced by a build.
type BuildAuthorizationScope ¶
type BuildAuthorizationScope string
Represents the desired scope of authorization for a build.
type BuildBadge ¶
type BuildBadge struct { // The ID of the build represented by this badge. BuildId *int `json:"buildId,omitempty"` // A link to the SVG resource. ImageUrl *string `json:"imageUrl,omitempty"` }
Represents a build badge.
type BuildCompletedEvent ¶
type BuildCompletedEvent struct { BuildId *int `json:"buildId,omitempty"` Build *Build `json:"build,omitempty"` // Changes associated with a build used for build notifications Changes *[]Change `json:"changes,omitempty"` // Pull request for the build used for build notifications PullRequest *PullRequest `json:"pullRequest,omitempty"` // Test results associated with a build used for build notifications TestResults *test.AggregatedResultsAnalysis `json:"testResults,omitempty"` // Timeline records associated with a build used for build notifications TimelineRecords *[]TimelineRecord `json:"timelineRecords,omitempty"` // Work items associated with a build used for build notifications WorkItems *[]git.AssociatedWorkItem `json:"workItems,omitempty"` }
type BuildCompletionTrigger ¶
type BuildCompletionTrigger struct { // The type of the trigger. TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"` BranchFilters *[]string `json:"branchFilters,omitempty"` // A reference to the definition that should trigger builds for this definition. Definition *DefinitionReference `json:"definition,omitempty"` RequiresSuccessfulBuild *bool `json:"requiresSuccessfulBuild,omitempty"` }
Represents a build completion trigger.
type BuildController ¶
type BuildController struct { // Id of the resource Id *int `json:"id,omitempty"` // Name of the linked resource (definition name, controller name, etc.) Name *string `json:"name,omitempty"` // Full http link to the resource Url *string `json:"url,omitempty"` Links interface{} `json:"_links,omitempty"` // The date the controller was created. CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` // The description of the controller. Description *string `json:"description,omitempty"` // Indicates whether the controller is enabled. Enabled *bool `json:"enabled,omitempty"` // The status of the controller. Status *ControllerStatus `json:"status,omitempty"` // The date the controller was last updated. UpdatedDate *azuredevops.Time `json:"updatedDate,omitempty"` // The controller's URI. Uri *string `json:"uri,omitempty"` }
type BuildDefinition ¶
type BuildDefinition struct { // The date this version of the definition was created. CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` // The ID of the referenced definition. Id *int `json:"id,omitempty"` // The name of the referenced definition. Name *string `json:"name,omitempty"` // The folder path of the definition. Path *string `json:"path,omitempty"` // A reference to the project. Project *core.TeamProjectReference `json:"project,omitempty"` // A value that indicates whether builds can be queued against this definition. QueueStatus *DefinitionQueueStatus `json:"queueStatus,omitempty"` // The definition revision number. Revision *int `json:"revision,omitempty"` // The type of the definition. Type *DefinitionType `json:"type,omitempty"` // The definition's URI. Uri *string `json:"uri,omitempty"` // The REST URL of the definition. Url *string `json:"url,omitempty"` Links interface{} `json:"_links,omitempty"` // The author of the definition. AuthoredBy *webapi.IdentityRef `json:"authoredBy,omitempty"` // A reference to the definition that this definition is a draft of, if this is a draft definition. DraftOf *DefinitionReference `json:"draftOf,omitempty"` // The list of drafts associated with this definition, if this is not a draft definition. Drafts *[]DefinitionReference `json:"drafts,omitempty"` LatestBuild *Build `json:"latestBuild,omitempty"` LatestCompletedBuild *Build `json:"latestCompletedBuild,omitempty"` Metrics *[]BuildMetric `json:"metrics,omitempty"` // The quality of the definition document (draft, etc.) Quality *DefinitionQuality `json:"quality,omitempty"` // The default queue for builds run against this definition. Queue *AgentPoolQueue `json:"queue,omitempty"` // Indicates whether badges are enabled for this definition. BadgeEnabled *bool `json:"badgeEnabled,omitempty"` // The build number format. BuildNumberFormat *string `json:"buildNumberFormat,omitempty"` // A save-time comment for the definition. Comment *string `json:"comment,omitempty"` Demands *[]interface{} `json:"demands,omitempty"` // The description. Description *string `json:"description,omitempty"` // The drop location for the definition. DropLocation *string `json:"dropLocation,omitempty"` // The job authorization scope for builds queued against this definition. JobAuthorizationScope *BuildAuthorizationScope `json:"jobAuthorizationScope,omitempty"` // The job cancel timeout (in minutes) for builds cancelled by user for this definition. JobCancelTimeoutInMinutes *int `json:"jobCancelTimeoutInMinutes,omitempty"` // The job execution timeout (in minutes) for builds queued against this definition. JobTimeoutInMinutes *int `json:"jobTimeoutInMinutes,omitempty"` Options *[]BuildOption `json:"options,omitempty"` // The build process. Process interface{} `json:"process,omitempty"` // The process parameters for this definition. ProcessParameters *distributedtaskcommon.ProcessParameters `json:"processParameters,omitempty"` Properties interface{} `json:"properties,omitempty"` // The repository. Repository *BuildRepository `json:"repository,omitempty"` RetentionRules *[]RetentionPolicy `json:"retentionRules,omitempty"` Tags *[]string `json:"tags,omitempty"` Triggers *[]interface{} `json:"triggers,omitempty"` VariableGroups *[]VariableGroup `json:"variableGroups,omitempty"` Variables *map[string]BuildDefinitionVariable `json:"variables,omitempty"` }
Represents a build definition.
type BuildDefinition3_2 ¶
type BuildDefinition3_2 struct { // The date this version of the definition was created. CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` // The ID of the referenced definition. Id *int `json:"id,omitempty"` // The name of the referenced definition. Name *string `json:"name,omitempty"` // The folder path of the definition. Path *string `json:"path,omitempty"` // A reference to the project. Project *core.TeamProjectReference `json:"project,omitempty"` // A value that indicates whether builds can be queued against this definition. QueueStatus *DefinitionQueueStatus `json:"queueStatus,omitempty"` // The definition revision number. Revision *int `json:"revision,omitempty"` // The type of the definition. Type *DefinitionType `json:"type,omitempty"` // The definition's URI. Uri *string `json:"uri,omitempty"` // The REST URL of the definition. Url *string `json:"url,omitempty"` Links interface{} `json:"_links,omitempty"` // The author of the definition. AuthoredBy *webapi.IdentityRef `json:"authoredBy,omitempty"` // A reference to the definition that this definition is a draft of, if this is a draft definition. DraftOf *DefinitionReference `json:"draftOf,omitempty"` // The list of drafts associated with this definition, if this is not a draft definition. Drafts *[]DefinitionReference `json:"drafts,omitempty"` Metrics *[]BuildMetric `json:"metrics,omitempty"` // The quality of the definition document (draft, etc.) Quality *DefinitionQuality `json:"quality,omitempty"` // The default queue for builds run against this definition. Queue *AgentPoolQueue `json:"queue,omitempty"` // Indicates whether badges are enabled for this definition BadgeEnabled *bool `json:"badgeEnabled,omitempty"` Build *[]BuildDefinitionStep `json:"build,omitempty"` // The build number format BuildNumberFormat *string `json:"buildNumberFormat,omitempty"` // The comment entered when saving the definition Comment *string `json:"comment,omitempty"` Demands *[]interface{} `json:"demands,omitempty"` // The description Description *string `json:"description,omitempty"` // The drop location for the definition DropLocation *string `json:"dropLocation,omitempty"` // The job authorization scope for builds which are queued against this definition JobAuthorizationScope *BuildAuthorizationScope `json:"jobAuthorizationScope,omitempty"` // The job cancel timeout in minutes for builds which are cancelled by user for this definition JobCancelTimeoutInMinutes *int `json:"jobCancelTimeoutInMinutes,omitempty"` // The job execution timeout in minutes for builds which are queued against this definition JobTimeoutInMinutes *int `json:"jobTimeoutInMinutes,omitempty"` LatestBuild *Build `json:"latestBuild,omitempty"` LatestCompletedBuild *Build `json:"latestCompletedBuild,omitempty"` Options *[]BuildOption `json:"options,omitempty"` // Process Parameters ProcessParameters *distributedtaskcommon.ProcessParameters `json:"processParameters,omitempty"` Properties interface{} `json:"properties,omitempty"` // The repository Repository *BuildRepository `json:"repository,omitempty"` RetentionRules *[]RetentionPolicy `json:"retentionRules,omitempty"` Tags *[]string `json:"tags,omitempty"` Triggers *[]interface{} `json:"triggers,omitempty"` Variables *map[string]BuildDefinitionVariable `json:"variables,omitempty"` }
For back-compat with extensions that use the old Steps format instead of Process and Phases
type BuildDefinitionReference ¶
type BuildDefinitionReference struct { // The date this version of the definition was created. CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` // The ID of the referenced definition. Id *int `json:"id,omitempty"` // The name of the referenced definition. Name *string `json:"name,omitempty"` // The folder path of the definition. Path *string `json:"path,omitempty"` // A reference to the project. Project *core.TeamProjectReference `json:"project,omitempty"` // A value that indicates whether builds can be queued against this definition. QueueStatus *DefinitionQueueStatus `json:"queueStatus,omitempty"` // The definition revision number. Revision *int `json:"revision,omitempty"` // The type of the definition. Type *DefinitionType `json:"type,omitempty"` // The definition's URI. Uri *string `json:"uri,omitempty"` // The REST URL of the definition. Url *string `json:"url,omitempty"` Links interface{} `json:"_links,omitempty"` // The author of the definition. AuthoredBy *webapi.IdentityRef `json:"authoredBy,omitempty"` // A reference to the definition that this definition is a draft of, if this is a draft definition. DraftOf *DefinitionReference `json:"draftOf,omitempty"` // The list of drafts associated with this definition, if this is not a draft definition. Drafts *[]DefinitionReference `json:"drafts,omitempty"` LatestBuild *Build `json:"latestBuild,omitempty"` LatestCompletedBuild *Build `json:"latestCompletedBuild,omitempty"` Metrics *[]BuildMetric `json:"metrics,omitempty"` // The quality of the definition document (draft, etc.) Quality *DefinitionQuality `json:"quality,omitempty"` // The default queue for builds run against this definition. Queue *AgentPoolQueue `json:"queue,omitempty"` }
Represents a reference to a build definition.
type BuildDefinitionReference3_2 ¶
type BuildDefinitionReference3_2 struct { // The date this version of the definition was created. CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` // The ID of the referenced definition. Id *int `json:"id,omitempty"` // The name of the referenced definition. Name *string `json:"name,omitempty"` // The folder path of the definition. Path *string `json:"path,omitempty"` // A reference to the project. Project *core.TeamProjectReference `json:"project,omitempty"` // A value that indicates whether builds can be queued against this definition. QueueStatus *DefinitionQueueStatus `json:"queueStatus,omitempty"` // The definition revision number. Revision *int `json:"revision,omitempty"` // The type of the definition. Type *DefinitionType `json:"type,omitempty"` // The definition's URI. Uri *string `json:"uri,omitempty"` // The REST URL of the definition. Url *string `json:"url,omitempty"` Links interface{} `json:"_links,omitempty"` // The author of the definition. AuthoredBy *webapi.IdentityRef `json:"authoredBy,omitempty"` // A reference to the definition that this definition is a draft of, if this is a draft definition. DraftOf *DefinitionReference `json:"draftOf,omitempty"` // The list of drafts associated with this definition, if this is not a draft definition. Drafts *[]DefinitionReference `json:"drafts,omitempty"` Metrics *[]BuildMetric `json:"metrics,omitempty"` // The quality of the definition document (draft, etc.) Quality *DefinitionQuality `json:"quality,omitempty"` // The default queue for builds run against this definition. Queue *AgentPoolQueue `json:"queue,omitempty"` }
For back-compat with extensions that use the old Steps format instead of Process and Phases
type BuildDefinitionRevision ¶
type BuildDefinitionRevision struct { // The identity of the person or process that changed the definition. ChangedBy *webapi.IdentityRef `json:"changedBy,omitempty"` // The date and time that the definition was changed. ChangedDate *azuredevops.Time `json:"changedDate,omitempty"` // The change type (add, edit, delete). ChangeType *AuditAction `json:"changeType,omitempty"` // The comment associated with the change. Comment *string `json:"comment,omitempty"` // A link to the definition at this revision. DefinitionUrl *string `json:"definitionUrl,omitempty"` // The name of the definition. Name *string `json:"name,omitempty"` // The revision number. Revision *int `json:"revision,omitempty"` }
Represents a revision of a build definition.
type BuildDefinitionSourceProvider ¶
type BuildDefinitionSourceProvider struct { // Uri of the associated definition DefinitionUri *string `json:"definitionUri,omitempty"` // fields associated with this build definition Fields *map[string]string `json:"fields,omitempty"` // Id of this source provider Id *int `json:"id,omitempty"` // The lst time this source provider was modified LastModified *azuredevops.Time `json:"lastModified,omitempty"` // Name of the source provider Name *string `json:"name,omitempty"` // Which trigger types are supported by this definition source provider SupportedTriggerTypes *DefinitionTriggerType `json:"supportedTriggerTypes,omitempty"` }
type BuildDefinitionStep ¶
type BuildDefinitionStep struct { // Indicates whether this step should run even if a previous step fails. AlwaysRun *bool `json:"alwaysRun,omitempty"` // A condition that determines whether this step should run. Condition *string `json:"condition,omitempty"` // Indicates whether the phase should continue even if this step fails. ContinueOnError *bool `json:"continueOnError,omitempty"` // The display name for this step. DisplayName *string `json:"displayName,omitempty"` // Indicates whether the step is enabled. Enabled *bool `json:"enabled,omitempty"` Environment *map[string]string `json:"environment,omitempty"` Inputs *map[string]string `json:"inputs,omitempty"` // The reference name for this step. RefName *string `json:"refName,omitempty"` // The task associated with this step. Task *TaskDefinitionReference `json:"task,omitempty"` // The time, in minutes, that this step is allowed to run. TimeoutInMinutes *int `json:"timeoutInMinutes,omitempty"` }
Represents a step in a build phase.
type BuildDefinitionTemplate ¶
type BuildDefinitionTemplate struct { // Indicates whether the template can be deleted. CanDelete *bool `json:"canDelete,omitempty"` // The template category. Category *string `json:"category,omitempty"` // An optional hosted agent queue for the template to use by default. DefaultHostedQueue *string `json:"defaultHostedQueue,omitempty"` // A description of the template. Description *string `json:"description,omitempty"` Icons *map[string]string `json:"icons,omitempty"` // The ID of the task whose icon is used when showing this template in the UI. IconTaskId *uuid.UUID `json:"iconTaskId,omitempty"` // The ID of the template. Id *string `json:"id,omitempty"` // The name of the template. Name *string `json:"name,omitempty"` // The actual template. Template *BuildDefinition `json:"template,omitempty"` }
Represents a template from which new build definitions can be created.
type BuildDefinitionTemplate3_2 ¶
type BuildDefinitionTemplate3_2 struct { CanDelete *bool `json:"canDelete,omitempty"` Category *string `json:"category,omitempty"` DefaultHostedQueue *string `json:"defaultHostedQueue,omitempty"` Description *string `json:"description,omitempty"` Icons *map[string]string `json:"icons,omitempty"` IconTaskId *uuid.UUID `json:"iconTaskId,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Template *BuildDefinition3_2 `json:"template,omitempty"` }
For back-compat with extensions that use the old Steps format instead of Process and Phases
type BuildDefinitionVariable ¶
type BuildDefinitionVariable struct { // Indicates whether the value can be set at queue time. AllowOverride *bool `json:"allowOverride,omitempty"` // Indicates whether the variable's value is a secret. IsSecret *bool `json:"isSecret,omitempty"` // The value of the variable. Value *string `json:"value,omitempty"` }
Represents a variable used by a build definition.
type BuildDeletedEvent ¶
type BuildDeployment ¶
type BuildDeployment struct { Deployment *BuildSummary `json:"deployment,omitempty"` SourceBuild *XamlBuildReference `json:"sourceBuild,omitempty"` }
type BuildEvent ¶
type BuildLog ¶
type BuildLog struct { // The ID of the log. Id *int `json:"id,omitempty"` // The type of the log location. Type *string `json:"type,omitempty"` // A full link to the log resource. Url *string `json:"url,omitempty"` // The date and time the log was created. CreatedOn *azuredevops.Time `json:"createdOn,omitempty"` // The date and time the log was last changed. LastChangedOn *azuredevops.Time `json:"lastChangedOn,omitempty"` // The number of lines in the log. LineCount *uint64 `json:"lineCount,omitempty"` }
Represents a build log.
type BuildLogReference ¶
type BuildLogReference struct { // The ID of the log. Id *int `json:"id,omitempty"` // The type of the log location. Type *string `json:"type,omitempty"` // A full link to the log resource. Url *string `json:"url,omitempty"` }
Represents a reference to a build log.
type BuildMetric ¶
type BuildMetric struct { // The date for the scope. Date *azuredevops.Time `json:"date,omitempty"` // The value. IntValue *int `json:"intValue,omitempty"` // The name of the metric. Name *string `json:"name,omitempty"` // The scope. Scope *string `json:"scope,omitempty"` }
Represents metadata about builds in the system.
type BuildOption ¶
type BuildOption struct { // A reference to the build option. Definition *BuildOptionDefinitionReference `json:"definition,omitempty"` // Indicates whether the behavior is enabled. Enabled *bool `json:"enabled,omitempty"` Inputs *map[string]string `json:"inputs,omitempty"` }
Represents the application of an optional behavior to a build definition.
type BuildOptionDefinition ¶
type BuildOptionDefinition struct { // The ID of the referenced build option. Id *uuid.UUID `json:"id,omitempty"` // The description. Description *string `json:"description,omitempty"` // The list of input groups defined for the build option. Groups *[]BuildOptionGroupDefinition `json:"groups,omitempty"` // The list of inputs defined for the build option. Inputs *[]BuildOptionInputDefinition `json:"inputs,omitempty"` // The name of the build option. Name *string `json:"name,omitempty"` // A value that indicates the relative order in which the behavior should be applied. Ordinal *int `json:"ordinal,omitempty"` }
Represents an optional behavior that can be applied to a build definition.
type BuildOptionDefinitionReference ¶
type BuildOptionDefinitionReference struct { // The ID of the referenced build option. Id *uuid.UUID `json:"id,omitempty"` }
Represents a reference to a build option definition.
type BuildOptionGroupDefinition ¶
type BuildOptionGroupDefinition struct { // The name of the group to display in the UI. DisplayName *string `json:"displayName,omitempty"` // Indicates whether the group is initially displayed as expanded in the UI. IsExpanded *bool `json:"isExpanded,omitempty"` // The internal name of the group. Name *string `json:"name,omitempty"` }
Represents a group of inputs for a build option.
type BuildOptionInputDefinition ¶
type BuildOptionInputDefinition struct { // The default value. DefaultValue *string `json:"defaultValue,omitempty"` // The name of the input group that this input belongs to. GroupName *string `json:"groupName,omitempty"` Help *map[string]string `json:"help,omitempty"` // The label for the input. Label *string `json:"label,omitempty"` // The name of the input. Name *string `json:"name,omitempty"` Options *map[string]string `json:"options,omitempty"` // Indicates whether the input is required to have a value. Required *bool `json:"required,omitempty"` // Indicates the type of the input value. Type *BuildOptionInputType `json:"type,omitempty"` // The rule that is applied to determine whether the input is visible in the UI. VisibleRule *string `json:"visibleRule,omitempty"` }
Represents an input for a build option.
type BuildOptionInputType ¶
type BuildOptionInputType string
type BuildPhaseStatus ¶
type BuildPhaseStatus string
type BuildProcess ¶
type BuildProcess struct { // The type of the process. Type *int `json:"type,omitempty"` }
Represents a build process.
type BuildProcessResources ¶
type BuildProcessResources struct { Endpoints *[]ServiceEndpointReference `json:"endpoints,omitempty"` Files *[]SecureFileReference `json:"files,omitempty"` Queues *[]AgentPoolQueueReference `json:"queues,omitempty"` VariableGroups *[]VariableGroupReference `json:"variableGroups,omitempty"` }
Represents resources used by a build process.
type BuildProcessTemplate ¶
type BuildProcessTemplate struct { Description *string `json:"description,omitempty"` FileExists *bool `json:"fileExists,omitempty"` Id *int `json:"id,omitempty"` Parameters *string `json:"parameters,omitempty"` ServerPath *string `json:"serverPath,omitempty"` SupportedReasons *BuildReason `json:"supportedReasons,omitempty"` TeamProject *string `json:"teamProject,omitempty"` TemplateType *ProcessTemplateType `json:"templateType,omitempty"` Url *string `json:"url,omitempty"` Version *string `json:"version,omitempty"` }
type BuildQueuedEvent ¶
type BuildReason ¶
type BuildReason string
type BuildReference ¶
type BuildReference struct { Links interface{} `json:"_links,omitempty"` // The build number. BuildNumber *string `json:"buildNumber,omitempty"` // Indicates whether the build has been deleted. Deleted *bool `json:"deleted,omitempty"` // The time that the build was completed. FinishTime *azuredevops.Time `json:"finishTime,omitempty"` // The ID of the build. Id *int `json:"id,omitempty"` // The time that the build was queued. QueueTime *azuredevops.Time `json:"queueTime,omitempty"` // The identity on whose behalf the build was queued. RequestedFor *webapi.IdentityRef `json:"requestedFor,omitempty"` // The build result. Result *BuildResult `json:"result,omitempty"` // The time that the build was started. StartTime *azuredevops.Time `json:"startTime,omitempty"` // The build status. Status *BuildStatus `json:"status,omitempty"` }
Represents a reference to a build.
type BuildReportMetadata ¶
type BuildReportMetadata struct { // The Id of the build. BuildId *int `json:"buildId,omitempty"` // The content of the report. Content *string `json:"content,omitempty"` // The type of the report. Type *string `json:"type,omitempty"` }
Represents information about a build report.
type BuildRepository ¶
type BuildRepository struct { // Indicates whether to checkout submodules. CheckoutSubmodules *bool `json:"checkoutSubmodules,omitempty"` // Indicates whether to clean the target folder when getting code from the repository. Clean *string `json:"clean,omitempty"` // The name of the default branch. DefaultBranch *string `json:"defaultBranch,omitempty"` // The ID of the repository. Id *string `json:"id,omitempty"` // The friendly name of the repository. Name *string `json:"name,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // The root folder. RootFolder *string `json:"rootFolder,omitempty"` // The type of the repository. Type *string `json:"type,omitempty"` // The URL of the repository. Url *string `json:"url,omitempty"` }
Represents a repository used by a build definition.
type BuildRequestValidationResult ¶
type BuildRequestValidationResult struct { // The message associated with the result. Message *string `json:"message,omitempty"` // The result. Result *ValidationResult `json:"result,omitempty"` }
Represents the result of validating a build request.
type BuildResourceUsage ¶
type BuildResourceUsage struct { // The number of build agents. DistributedTaskAgents *int `json:"distributedTaskAgents,omitempty"` // The number of paid private agent slots. PaidPrivateAgentSlots *int `json:"paidPrivateAgentSlots,omitempty"` // The total usage. TotalUsage *int `json:"totalUsage,omitempty"` // The number of XAML controllers. XamlControllers *int `json:"xamlControllers,omitempty"` }
Represents information about resources used by builds in the system.
type BuildResult ¶
type BuildResult string
This is not a Flags enum because we don't want to set multiple statuses on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum This will ensure that things that key off multiple result types (like labelling sources) continue to work
type BuildServer ¶
type BuildServer struct { Agents *[]BuildAgentReference `json:"agents,omitempty"` Controller *XamlBuildControllerReference `json:"controller,omitempty"` Id *int `json:"id,omitempty"` IsVirtual *bool `json:"isVirtual,omitempty"` MessageQueueUrl *string `json:"messageQueueUrl,omitempty"` Name *string `json:"name,omitempty"` RequireClientCertificates *bool `json:"requireClientCertificates,omitempty"` Status *ServiceHostStatus `json:"status,omitempty"` StatusChangedDate *azuredevops.Time `json:"statusChangedDate,omitempty"` Uri *string `json:"uri,omitempty"` Url *string `json:"url,omitempty"` Version *int `json:"version,omitempty"` }
type BuildSettings ¶
type BuildSettings struct { // The number of days to keep records of deleted builds. DaysToKeepDeletedBuildsBeforeDestroy *int `json:"daysToKeepDeletedBuildsBeforeDestroy,omitempty"` // The default retention policy. DefaultRetentionPolicy *RetentionPolicy `json:"defaultRetentionPolicy,omitempty"` // The maximum retention policy. MaximumRetentionPolicy *RetentionPolicy `json:"maximumRetentionPolicy,omitempty"` }
Represents system-wide build settings.
type BuildStatus ¶
type BuildStatus string
type BuildSummary ¶
type BuildSummary struct { Build *XamlBuildReference `json:"build,omitempty"` FinishTime *azuredevops.Time `json:"finishTime,omitempty"` KeepForever *bool `json:"keepForever,omitempty"` Quality *string `json:"quality,omitempty"` Reason *BuildReason `json:"reason,omitempty"` RequestedFor *webapi.IdentityRef `json:"requestedFor,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Status *BuildStatus `json:"status,omitempty"` }
type BuildTagsAddedEvent ¶
type BuildTrigger ¶
type BuildTrigger struct { // The type of the trigger. TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"` }
Represents a trigger for a buld definition.
type BuildUpdatedEvent ¶
type BuildWorkspace ¶
type BuildWorkspace struct {
Mappings *[]MappingDetails `json:"mappings,omitempty"`
}
Represents a workspace mapping.
type BuildsDeletedEvent ¶
type BuildsDeletedEvent1 ¶
type Change ¶
type Change struct { // The author of the change. Author *webapi.IdentityRef `json:"author,omitempty"` // The location of a user-friendly representation of the resource. DisplayUri *string `json:"displayUri,omitempty"` // The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. Id *string `json:"id,omitempty"` // The location of the full representation of the resource. Location *string `json:"location,omitempty"` // The description of the change. This might be a commit message or changeset description. Message *string `json:"message,omitempty"` // Indicates whether the message was truncated. MessageTruncated *bool `json:"messageTruncated,omitempty"` // The person or process that pushed the change. Pusher *string `json:"pusher,omitempty"` // The timestamp for the change. Timestamp *azuredevops.Time `json:"timestamp,omitempty"` // The type of change. "commit", "changeset", etc. Type *string `json:"type,omitempty"` }
Represents a change associated with a build.
type Client ¶
type Client interface { // Adds a tag to a build. AddBuildTag(context.Context, AddBuildTagArgs) (*[]string, error) // Adds tags to a build. AddBuildTags(context.Context, AddBuildTagsArgs) (*[]string, error) // [Preview API] Adds a tag to a definition AddDefinitionTag(context.Context, AddDefinitionTagArgs) (*[]string, error) // [Preview API] Adds multiple tags to a definition. AddDefinitionTags(context.Context, AddDefinitionTagsArgs) (*[]string, error) // [Preview API] Adds new leases for pipeline runs. AddRetentionLeases(context.Context, AddRetentionLeasesArgs) (*[]RetentionLease, error) // [Preview API] AuthorizeDefinitionResources(context.Context, AuthorizeDefinitionResourcesArgs) (*[]DefinitionResourceReference, error) // [Preview API] AuthorizeProjectResources(context.Context, AuthorizeProjectResourcesArgs) (*[]DefinitionResourceReference, error) // Associates an artifact with a build. CreateArtifact(context.Context, CreateArtifactArgs) (*BuildArtifact, error) // Creates a new definition. CreateDefinition(context.Context, CreateDefinitionArgs) (*BuildDefinition, error) // [Preview API] Creates a new folder. CreateFolder(context.Context, CreateFolderArgs) (*Folder, error) // Deletes a build. DeleteBuild(context.Context, DeleteBuildArgs) error // Removes a tag from a build. DeleteBuildTag(context.Context, DeleteBuildTagArgs) (*[]string, error) // Deletes a definition and all associated builds. DeleteDefinition(context.Context, DeleteDefinitionArgs) error // [Preview API] Removes a tag from a definition. DeleteDefinitionTag(context.Context, DeleteDefinitionTagArgs) (*[]string, error) // [Preview API] Deletes a definition folder. Definitions and their corresponding builds will also be deleted. DeleteFolder(context.Context, DeleteFolderArgs) error // [Preview API] Removes specific retention leases. DeleteRetentionLeasesById(context.Context, DeleteRetentionLeasesByIdArgs) error // Removes a tag from builds, definitions, and from the tag store DeleteTag(context.Context, DeleteTagArgs) (*[]string, error) // Deletes a build definition template. DeleteTemplate(context.Context, DeleteTemplateArgs) error // Gets a specific artifact for a build. GetArtifact(context.Context, GetArtifactArgs) (*BuildArtifact, error) // Gets a specific artifact for a build. GetArtifactContentZip(context.Context, GetArtifactContentZipArgs) (io.ReadCloser, error) // Gets all artifacts for a build. GetArtifacts(context.Context, GetArtifactsArgs) (*[]BuildArtifact, error) // [Preview API] Gets a specific attachment. GetAttachment(context.Context, GetAttachmentArgs) (io.ReadCloser, error) // [Preview API] Gets the list of attachments of a specific type that are associated with a build. GetAttachments(context.Context, GetAttachmentsArgs) (*[]Attachment, error) // Gets a build GetBuild(context.Context, GetBuildArgs) (*Build, error) // [Preview API] Gets a badge that indicates the status of the most recent build for the specified branch. GetBuildBadge(context.Context, GetBuildBadgeArgs) (*BuildBadge, error) // [Preview API] Gets a badge that indicates the status of the most recent build for the specified branch. GetBuildBadgeData(context.Context, GetBuildBadgeDataArgs) (*string, error) // Gets the changes associated with a build GetBuildChanges(context.Context, GetBuildChangesArgs) (*GetBuildChangesResponseValue, error) // Gets a controller GetBuildController(context.Context, GetBuildControllerArgs) (*BuildController, error) // Gets controller, optionally filtered by name GetBuildControllers(context.Context, GetBuildControllersArgs) (*[]BuildController, error) // [Preview API] Gets pipeline general settings. GetBuildGeneralSettings(context.Context, GetBuildGeneralSettingsArgs) (*PipelineGeneralSettings, error) // Gets an individual log file for a build. GetBuildLog(context.Context, GetBuildLogArgs) (io.ReadCloser, error) // Gets an individual log file for a build. GetBuildLogLines(context.Context, GetBuildLogLinesArgs) (*[]string, error) // Gets the logs for a build. GetBuildLogs(context.Context, GetBuildLogsArgs) (*[]BuildLog, error) // Gets the logs for a build. GetBuildLogsZip(context.Context, GetBuildLogsZipArgs) (io.ReadCloser, error) // Gets an individual log file for a build. GetBuildLogZip(context.Context, GetBuildLogZipArgs) (io.ReadCloser, error) // Gets all build definition options supported by the system. GetBuildOptionDefinitions(context.Context, GetBuildOptionDefinitionsArgs) (*[]BuildOptionDefinition, error) // [Preview API] Gets properties for a build. GetBuildProperties(context.Context, GetBuildPropertiesArgs) (interface{}, error) // [Preview API] Gets a build report. GetBuildReport(context.Context, GetBuildReportArgs) (*BuildReportMetadata, error) // [Preview API] Gets a build report. GetBuildReportHtmlContent(context.Context, GetBuildReportHtmlContentArgs) (io.ReadCloser, error) // Gets a list of builds. GetBuilds(context.Context, GetBuildsArgs) (*GetBuildsResponseValue, error) // Gets the build settings. GetBuildSettings(context.Context, GetBuildSettingsArgs) (*BuildSettings, error) // Gets the tags for a build. GetBuildTags(context.Context, GetBuildTagsArgs) (*[]string, error) // Gets details for a build GetBuildTimeline(context.Context, GetBuildTimelineArgs) (*Timeline, error) // Gets the work items associated with a build. GetBuildWorkItemsRefs(context.Context, GetBuildWorkItemsRefsArgs) (*[]webapi.ResourceRef, error) // Gets the work items associated with a build, filtered to specific commits. GetBuildWorkItemsRefsFromCommits(context.Context, GetBuildWorkItemsRefsFromCommitsArgs) (*[]webapi.ResourceRef, error) // [Preview API] Gets the changes made to the repository between two given builds. GetChangesBetweenBuilds(context.Context, GetChangesBetweenBuildsArgs) (*[]Change, error) // Gets a definition, optionally at a specific revision. GetDefinition(context.Context, GetDefinitionArgs) (*BuildDefinition, error) // [Preview API] Gets build metrics for a definition. GetDefinitionMetrics(context.Context, GetDefinitionMetricsArgs) (*[]BuildMetric, error) // [Preview API] Gets properties for a definition. GetDefinitionProperties(context.Context, GetDefinitionPropertiesArgs) (interface{}, error) // [Preview API] GetDefinitionResources(context.Context, GetDefinitionResourcesArgs) (*[]DefinitionResourceReference, error) // Gets all revisions of a definition. GetDefinitionRevisions(context.Context, GetDefinitionRevisionsArgs) (*[]BuildDefinitionRevision, error) // Gets a list of definitions. GetDefinitions(context.Context, GetDefinitionsArgs) (*GetDefinitionsResponseValue, error) // [Preview API] Gets the tags for a definition. GetDefinitionTags(context.Context, GetDefinitionTagsArgs) (*[]string, error) // Gets a file from the build. GetFile(context.Context, GetFileArgs) (io.ReadCloser, error) // [Preview API] Gets the contents of a file in the given source code repository. GetFileContents(context.Context, GetFileContentsArgs) (io.ReadCloser, error) // [Preview API] Gets a list of build definition folders. GetFolders(context.Context, GetFoldersArgs) (*[]Folder, error) // [Preview API] Gets the latest build for a definition, optionally scoped to a specific branch. GetLatestBuild(context.Context, GetLatestBuildArgs) (*Build, error) // [Preview API] Gets the contents of a directory in the given source code repository. GetPathContents(context.Context, GetPathContentsArgs) (*[]SourceRepositoryItem, error) // [Preview API] Gets build metrics for a project. GetProjectMetrics(context.Context, GetProjectMetricsArgs) (*[]BuildMetric, error) // [Preview API] GetProjectResources(context.Context, GetProjectResourcesArgs) (*[]DefinitionResourceReference, error) // [Preview API] Gets a pull request object from source provider. GetPullRequest(context.Context, GetPullRequestArgs) (*PullRequest, error) // [Preview API] Gets information about build resources in the system. GetResourceUsage(context.Context, GetResourceUsageArgs) (*BuildResourceUsage, error) // [Preview API] Returns the details of the retention lease given a lease id. GetRetentionLease(context.Context, GetRetentionLeaseArgs) (*RetentionLease, error) // [Preview API] Returns any leases matching the specified MinimalRetentionLeases GetRetentionLeasesByMinimalRetentionLeases(context.Context, GetRetentionLeasesByMinimalRetentionLeasesArgs) (*[]RetentionLease, error) // [Preview API] Returns any leases owned by the specified entity, optionally scoped to a single pipeline definition and run. GetRetentionLeasesByOwnerId(context.Context, GetRetentionLeasesByOwnerIdArgs) (*[]RetentionLease, error) // [Preview API] Returns any leases owned by the specified user, optionally scoped to a single pipeline definition and run. GetRetentionLeasesByUserId(context.Context, GetRetentionLeasesByUserIdArgs) (*[]RetentionLease, error) // [Preview API] Gets the project's retention settings. GetRetentionSettings(context.Context, GetRetentionSettingsArgs) (*ProjectRetentionSetting, error) // [Preview API] <p>Gets the build status for a definition, optionally scoped to a specific branch, stage, job, and configuration.</p> <p>If there are more than one, then it is required to pass in a stageName value when specifying a jobName, and the same rule then applies for both if passing a configuration parameter.</p> GetStatusBadge(context.Context, GetStatusBadgeArgs) (*string, error) // Gets a list of all build tags in the project. GetTags(context.Context, GetTagsArgs) (*[]string, error) // Gets a specific build definition template. GetTemplate(context.Context, GetTemplateArgs) (*BuildDefinitionTemplate, error) // Gets all definition templates. GetTemplates(context.Context, GetTemplatesArgs) (*[]BuildDefinitionTemplate, error) // [Preview API] Gets all the work items between two builds. GetWorkItemsBetweenBuilds(context.Context, GetWorkItemsBetweenBuildsArgs) (*[]webapi.ResourceRef, error) // [Preview API] Gets a list of branches for the given source code repository. ListBranches(context.Context, ListBranchesArgs) (*[]string, error) // [Preview API] Gets a list of source code repositories. ListRepositories(context.Context, ListRepositoriesArgs) (*SourceRepositories, error) // [Preview API] Get a list of source providers and their capabilities. ListSourceProviders(context.Context, ListSourceProvidersArgs) (*[]SourceProviderAttributes, error) // [Preview API] Gets a list of webhooks installed in the given source code repository. ListWebhooks(context.Context, ListWebhooksArgs) (*[]RepositoryWebhook, error) // Queues a build QueueBuild(context.Context, QueueBuildArgs) (*Build, error) // Restores a deleted definition RestoreDefinition(context.Context, RestoreDefinitionArgs) (*BuildDefinition, error) // [Preview API] Recreates the webhooks for the specified triggers in the given source code repository. RestoreWebhooks(context.Context, RestoreWebhooksArgs) error // Updates an existing build definition template. SaveTemplate(context.Context, SaveTemplateArgs) (*BuildDefinitionTemplate, error) // Updates a build. UpdateBuild(context.Context, UpdateBuildArgs) (*Build, error) // [Preview API] Updates pipeline general settings. UpdateBuildGeneralSettings(context.Context, UpdateBuildGeneralSettingsArgs) (*PipelineGeneralSettings, error) // [Preview API] Updates properties for a build. UpdateBuildProperties(context.Context, UpdateBuildPropertiesArgs) (interface{}, error) // Updates multiple builds. UpdateBuilds(context.Context, UpdateBuildsArgs) (*[]Build, error) // Updates the build settings. UpdateBuildSettings(context.Context, UpdateBuildSettingsArgs) (*BuildSettings, error) // Updates an existing definition. UpdateDefinition(context.Context, UpdateDefinitionArgs) (*BuildDefinition, error) // [Preview API] Updates properties for a definition. UpdateDefinitionProperties(context.Context, UpdateDefinitionPropertiesArgs) (interface{}, error) // [Preview API] Updates an existing folder at given existing path UpdateFolder(context.Context, UpdateFolderArgs) (*Folder, error) // [Preview API] Updates the project's retention settings. UpdateRetentionSettings(context.Context, UpdateRetentionSettingsArgs) (*ProjectRetentionSetting, error) // [Preview API] Update a build stage UpdateStage(context.Context, UpdateStageArgs) error }
type ClientImpl ¶
type ClientImpl struct {
Client azuredevops.Client
}
func (*ClientImpl) AddBuildTag ¶
func (client *ClientImpl) AddBuildTag(ctx context.Context, args AddBuildTagArgs) (*[]string, error)
Adds a tag to a build.
func (*ClientImpl) AddBuildTags ¶
func (client *ClientImpl) AddBuildTags(ctx context.Context, args AddBuildTagsArgs) (*[]string, error)
Adds tags to a build.
func (*ClientImpl) AddDefinitionTag ¶
func (client *ClientImpl) AddDefinitionTag(ctx context.Context, args AddDefinitionTagArgs) (*[]string, error)
[Preview API] Adds a tag to a definition
func (*ClientImpl) AddDefinitionTags ¶
func (client *ClientImpl) AddDefinitionTags(ctx context.Context, args AddDefinitionTagsArgs) (*[]string, error)
[Preview API] Adds multiple tags to a definition.
func (*ClientImpl) AddRetentionLeases ¶
func (client *ClientImpl) AddRetentionLeases(ctx context.Context, args AddRetentionLeasesArgs) (*[]RetentionLease, error)
[Preview API] Adds new leases for pipeline runs.
func (*ClientImpl) AuthorizeDefinitionResources ¶
func (client *ClientImpl) AuthorizeDefinitionResources(ctx context.Context, args AuthorizeDefinitionResourcesArgs) (*[]DefinitionResourceReference, error)
[Preview API]
func (*ClientImpl) AuthorizeProjectResources ¶
func (client *ClientImpl) AuthorizeProjectResources(ctx context.Context, args AuthorizeProjectResourcesArgs) (*[]DefinitionResourceReference, error)
[Preview API]
func (*ClientImpl) CreateArtifact ¶
func (client *ClientImpl) CreateArtifact(ctx context.Context, args CreateArtifactArgs) (*BuildArtifact, error)
Associates an artifact with a build.
func (*ClientImpl) CreateDefinition ¶
func (client *ClientImpl) CreateDefinition(ctx context.Context, args CreateDefinitionArgs) (*BuildDefinition, error)
Creates a new definition.
func (*ClientImpl) CreateFolder ¶
func (client *ClientImpl) CreateFolder(ctx context.Context, args CreateFolderArgs) (*Folder, error)
[Preview API] Creates a new folder.
func (*ClientImpl) DeleteBuild ¶
func (client *ClientImpl) DeleteBuild(ctx context.Context, args DeleteBuildArgs) error
Deletes a build.
func (*ClientImpl) DeleteBuildTag ¶
func (client *ClientImpl) DeleteBuildTag(ctx context.Context, args DeleteBuildTagArgs) (*[]string, error)
Removes a tag from a build.
func (*ClientImpl) DeleteDefinition ¶
func (client *ClientImpl) DeleteDefinition(ctx context.Context, args DeleteDefinitionArgs) error
Deletes a definition and all associated builds.
func (*ClientImpl) DeleteDefinitionTag ¶
func (client *ClientImpl) DeleteDefinitionTag(ctx context.Context, args DeleteDefinitionTagArgs) (*[]string, error)
[Preview API] Removes a tag from a definition.
func (*ClientImpl) DeleteFolder ¶
func (client *ClientImpl) DeleteFolder(ctx context.Context, args DeleteFolderArgs) error
[Preview API] Deletes a definition folder. Definitions and their corresponding builds will also be deleted.
func (*ClientImpl) DeleteRetentionLeasesById ¶
func (client *ClientImpl) DeleteRetentionLeasesById(ctx context.Context, args DeleteRetentionLeasesByIdArgs) error
[Preview API] Removes specific retention leases.
func (*ClientImpl) DeleteTag ¶
func (client *ClientImpl) DeleteTag(ctx context.Context, args DeleteTagArgs) (*[]string, error)
Removes a tag from builds, definitions, and from the tag store
func (*ClientImpl) DeleteTemplate ¶
func (client *ClientImpl) DeleteTemplate(ctx context.Context, args DeleteTemplateArgs) error
Deletes a build definition template.
func (*ClientImpl) GetArtifact ¶
func (client *ClientImpl) GetArtifact(ctx context.Context, args GetArtifactArgs) (*BuildArtifact, error)
Gets a specific artifact for a build.
func (*ClientImpl) GetArtifactContentZip ¶
func (client *ClientImpl) GetArtifactContentZip(ctx context.Context, args GetArtifactContentZipArgs) (io.ReadCloser, error)
Gets a specific artifact for a build.
func (*ClientImpl) GetArtifacts ¶
func (client *ClientImpl) GetArtifacts(ctx context.Context, args GetArtifactsArgs) (*[]BuildArtifact, error)
Gets all artifacts for a build.
func (*ClientImpl) GetAttachment ¶
func (client *ClientImpl) GetAttachment(ctx context.Context, args GetAttachmentArgs) (io.ReadCloser, error)
[Preview API] Gets a specific attachment.
func (*ClientImpl) GetAttachments ¶
func (client *ClientImpl) GetAttachments(ctx context.Context, args GetAttachmentsArgs) (*[]Attachment, error)
[Preview API] Gets the list of attachments of a specific type that are associated with a build.
func (*ClientImpl) GetBuild ¶
func (client *ClientImpl) GetBuild(ctx context.Context, args GetBuildArgs) (*Build, error)
Gets a build
func (*ClientImpl) GetBuildBadge ¶
func (client *ClientImpl) GetBuildBadge(ctx context.Context, args GetBuildBadgeArgs) (*BuildBadge, error)
[Preview API] Gets a badge that indicates the status of the most recent build for the specified branch.
func (*ClientImpl) GetBuildBadgeData ¶
func (client *ClientImpl) GetBuildBadgeData(ctx context.Context, args GetBuildBadgeDataArgs) (*string, error)
[Preview API] Gets a badge that indicates the status of the most recent build for the specified branch.
func (*ClientImpl) GetBuildChanges ¶
func (client *ClientImpl) GetBuildChanges(ctx context.Context, args GetBuildChangesArgs) (*GetBuildChangesResponseValue, error)
Gets the changes associated with a build
func (*ClientImpl) GetBuildController ¶
func (client *ClientImpl) GetBuildController(ctx context.Context, args GetBuildControllerArgs) (*BuildController, error)
Gets a controller
func (*ClientImpl) GetBuildControllers ¶
func (client *ClientImpl) GetBuildControllers(ctx context.Context, args GetBuildControllersArgs) (*[]BuildController, error)
Gets controller, optionally filtered by name
func (*ClientImpl) GetBuildGeneralSettings ¶
func (client *ClientImpl) GetBuildGeneralSettings(ctx context.Context, args GetBuildGeneralSettingsArgs) (*PipelineGeneralSettings, error)
[Preview API] Gets pipeline general settings.
func (*ClientImpl) GetBuildLog ¶
func (client *ClientImpl) GetBuildLog(ctx context.Context, args GetBuildLogArgs) (io.ReadCloser, error)
Gets an individual log file for a build.
func (*ClientImpl) GetBuildLogLines ¶
func (client *ClientImpl) GetBuildLogLines(ctx context.Context, args GetBuildLogLinesArgs) (*[]string, error)
Gets an individual log file for a build.
func (*ClientImpl) GetBuildLogZip ¶
func (client *ClientImpl) GetBuildLogZip(ctx context.Context, args GetBuildLogZipArgs) (io.ReadCloser, error)
Gets an individual log file for a build.
func (*ClientImpl) GetBuildLogs ¶
func (client *ClientImpl) GetBuildLogs(ctx context.Context, args GetBuildLogsArgs) (*[]BuildLog, error)
Gets the logs for a build.
func (*ClientImpl) GetBuildLogsZip ¶
func (client *ClientImpl) GetBuildLogsZip(ctx context.Context, args GetBuildLogsZipArgs) (io.ReadCloser, error)
Gets the logs for a build.
func (*ClientImpl) GetBuildOptionDefinitions ¶
func (client *ClientImpl) GetBuildOptionDefinitions(ctx context.Context, args GetBuildOptionDefinitionsArgs) (*[]BuildOptionDefinition, error)
Gets all build definition options supported by the system.
func (*ClientImpl) GetBuildProperties ¶
func (client *ClientImpl) GetBuildProperties(ctx context.Context, args GetBuildPropertiesArgs) (interface{}, error)
[Preview API] Gets properties for a build.
func (*ClientImpl) GetBuildReport ¶
func (client *ClientImpl) GetBuildReport(ctx context.Context, args GetBuildReportArgs) (*BuildReportMetadata, error)
[Preview API] Gets a build report.
func (*ClientImpl) GetBuildReportHtmlContent ¶
func (client *ClientImpl) GetBuildReportHtmlContent(ctx context.Context, args GetBuildReportHtmlContentArgs) (io.ReadCloser, error)
[Preview API] Gets a build report.
func (*ClientImpl) GetBuildSettings ¶
func (client *ClientImpl) GetBuildSettings(ctx context.Context, args GetBuildSettingsArgs) (*BuildSettings, error)
Gets the build settings.
func (*ClientImpl) GetBuildTags ¶
func (client *ClientImpl) GetBuildTags(ctx context.Context, args GetBuildTagsArgs) (*[]string, error)
Gets the tags for a build.
func (*ClientImpl) GetBuildTimeline ¶
func (client *ClientImpl) GetBuildTimeline(ctx context.Context, args GetBuildTimelineArgs) (*Timeline, error)
Gets details for a build
func (*ClientImpl) GetBuildWorkItemsRefs ¶
func (client *ClientImpl) GetBuildWorkItemsRefs(ctx context.Context, args GetBuildWorkItemsRefsArgs) (*[]webapi.ResourceRef, error)
Gets the work items associated with a build.
func (*ClientImpl) GetBuildWorkItemsRefsFromCommits ¶
func (client *ClientImpl) GetBuildWorkItemsRefsFromCommits(ctx context.Context, args GetBuildWorkItemsRefsFromCommitsArgs) (*[]webapi.ResourceRef, error)
Gets the work items associated with a build, filtered to specific commits.
func (*ClientImpl) GetBuilds ¶
func (client *ClientImpl) GetBuilds(ctx context.Context, args GetBuildsArgs) (*GetBuildsResponseValue, error)
Gets a list of builds.
func (*ClientImpl) GetChangesBetweenBuilds ¶
func (client *ClientImpl) GetChangesBetweenBuilds(ctx context.Context, args GetChangesBetweenBuildsArgs) (*[]Change, error)
[Preview API] Gets the changes made to the repository between two given builds.
func (*ClientImpl) GetDefinition ¶
func (client *ClientImpl) GetDefinition(ctx context.Context, args GetDefinitionArgs) (*BuildDefinition, error)
Gets a definition, optionally at a specific revision.
func (*ClientImpl) GetDefinitionMetrics ¶
func (client *ClientImpl) GetDefinitionMetrics(ctx context.Context, args GetDefinitionMetricsArgs) (*[]BuildMetric, error)
[Preview API] Gets build metrics for a definition.
func (*ClientImpl) GetDefinitionProperties ¶
func (client *ClientImpl) GetDefinitionProperties(ctx context.Context, args GetDefinitionPropertiesArgs) (interface{}, error)
[Preview API] Gets properties for a definition.
func (*ClientImpl) GetDefinitionResources ¶
func (client *ClientImpl) GetDefinitionResources(ctx context.Context, args GetDefinitionResourcesArgs) (*[]DefinitionResourceReference, error)
[Preview API]
func (*ClientImpl) GetDefinitionRevisions ¶
func (client *ClientImpl) GetDefinitionRevisions(ctx context.Context, args GetDefinitionRevisionsArgs) (*[]BuildDefinitionRevision, error)
Gets all revisions of a definition.
func (*ClientImpl) GetDefinitionTags ¶
func (client *ClientImpl) GetDefinitionTags(ctx context.Context, args GetDefinitionTagsArgs) (*[]string, error)
[Preview API] Gets the tags for a definition.
func (*ClientImpl) GetDefinitions ¶
func (client *ClientImpl) GetDefinitions(ctx context.Context, args GetDefinitionsArgs) (*GetDefinitionsResponseValue, error)
Gets a list of definitions.
func (*ClientImpl) GetFile ¶
func (client *ClientImpl) GetFile(ctx context.Context, args GetFileArgs) (io.ReadCloser, error)
Gets a file from the build.
func (*ClientImpl) GetFileContents ¶
func (client *ClientImpl) GetFileContents(ctx context.Context, args GetFileContentsArgs) (io.ReadCloser, error)
[Preview API] Gets the contents of a file in the given source code repository.
func (*ClientImpl) GetFolders ¶
func (client *ClientImpl) GetFolders(ctx context.Context, args GetFoldersArgs) (*[]Folder, error)
[Preview API] Gets a list of build definition folders.
func (*ClientImpl) GetLatestBuild ¶
func (client *ClientImpl) GetLatestBuild(ctx context.Context, args GetLatestBuildArgs) (*Build, error)
[Preview API] Gets the latest build for a definition, optionally scoped to a specific branch.
func (*ClientImpl) GetPathContents ¶
func (client *ClientImpl) GetPathContents(ctx context.Context, args GetPathContentsArgs) (*[]SourceRepositoryItem, error)
[Preview API] Gets the contents of a directory in the given source code repository.
func (*ClientImpl) GetProjectMetrics ¶
func (client *ClientImpl) GetProjectMetrics(ctx context.Context, args GetProjectMetricsArgs) (*[]BuildMetric, error)
[Preview API] Gets build metrics for a project.
func (*ClientImpl) GetProjectResources ¶
func (client *ClientImpl) GetProjectResources(ctx context.Context, args GetProjectResourcesArgs) (*[]DefinitionResourceReference, error)
[Preview API]
func (*ClientImpl) GetPullRequest ¶
func (client *ClientImpl) GetPullRequest(ctx context.Context, args GetPullRequestArgs) (*PullRequest, error)
[Preview API] Gets a pull request object from source provider.
func (*ClientImpl) GetResourceUsage ¶
func (client *ClientImpl) GetResourceUsage(ctx context.Context, args GetResourceUsageArgs) (*BuildResourceUsage, error)
[Preview API] Gets information about build resources in the system.
func (*ClientImpl) GetRetentionLease ¶
func (client *ClientImpl) GetRetentionLease(ctx context.Context, args GetRetentionLeaseArgs) (*RetentionLease, error)
[Preview API] Returns the details of the retention lease given a lease id.
func (*ClientImpl) GetRetentionLeasesByMinimalRetentionLeases ¶
func (client *ClientImpl) GetRetentionLeasesByMinimalRetentionLeases(ctx context.Context, args GetRetentionLeasesByMinimalRetentionLeasesArgs) (*[]RetentionLease, error)
[Preview API] Returns any leases matching the specified MinimalRetentionLeases
func (*ClientImpl) GetRetentionLeasesByOwnerId ¶
func (client *ClientImpl) GetRetentionLeasesByOwnerId(ctx context.Context, args GetRetentionLeasesByOwnerIdArgs) (*[]RetentionLease, error)
[Preview API] Returns any leases owned by the specified entity, optionally scoped to a single pipeline definition and run.
func (*ClientImpl) GetRetentionLeasesByUserId ¶
func (client *ClientImpl) GetRetentionLeasesByUserId(ctx context.Context, args GetRetentionLeasesByUserIdArgs) (*[]RetentionLease, error)
[Preview API] Returns any leases owned by the specified user, optionally scoped to a single pipeline definition and run.
func (*ClientImpl) GetRetentionSettings ¶
func (client *ClientImpl) GetRetentionSettings(ctx context.Context, args GetRetentionSettingsArgs) (*ProjectRetentionSetting, error)
[Preview API] Gets the project's retention settings.
func (*ClientImpl) GetStatusBadge ¶
func (client *ClientImpl) GetStatusBadge(ctx context.Context, args GetStatusBadgeArgs) (*string, error)
[Preview API] <p>Gets the build status for a definition, optionally scoped to a specific branch, stage, job, and configuration.</p> <p>If there are more than one, then it is required to pass in a stageName value when specifying a jobName, and the same rule then applies for both if passing a configuration parameter.</p>
func (*ClientImpl) GetTags ¶
func (client *ClientImpl) GetTags(ctx context.Context, args GetTagsArgs) (*[]string, error)
Gets a list of all build tags in the project.
func (*ClientImpl) GetTemplate ¶
func (client *ClientImpl) GetTemplate(ctx context.Context, args GetTemplateArgs) (*BuildDefinitionTemplate, error)
Gets a specific build definition template.
func (*ClientImpl) GetTemplates ¶
func (client *ClientImpl) GetTemplates(ctx context.Context, args GetTemplatesArgs) (*[]BuildDefinitionTemplate, error)
Gets all definition templates.
func (*ClientImpl) GetWorkItemsBetweenBuilds ¶
func (client *ClientImpl) GetWorkItemsBetweenBuilds(ctx context.Context, args GetWorkItemsBetweenBuildsArgs) (*[]webapi.ResourceRef, error)
[Preview API] Gets all the work items between two builds.
func (*ClientImpl) ListBranches ¶
func (client *ClientImpl) ListBranches(ctx context.Context, args ListBranchesArgs) (*[]string, error)
[Preview API] Gets a list of branches for the given source code repository.
func (*ClientImpl) ListRepositories ¶
func (client *ClientImpl) ListRepositories(ctx context.Context, args ListRepositoriesArgs) (*SourceRepositories, error)
[Preview API] Gets a list of source code repositories.
func (*ClientImpl) ListSourceProviders ¶
func (client *ClientImpl) ListSourceProviders(ctx context.Context, args ListSourceProvidersArgs) (*[]SourceProviderAttributes, error)
[Preview API] Get a list of source providers and their capabilities.
func (*ClientImpl) ListWebhooks ¶
func (client *ClientImpl) ListWebhooks(ctx context.Context, args ListWebhooksArgs) (*[]RepositoryWebhook, error)
[Preview API] Gets a list of webhooks installed in the given source code repository.
func (*ClientImpl) QueueBuild ¶
func (client *ClientImpl) QueueBuild(ctx context.Context, args QueueBuildArgs) (*Build, error)
Queues a build
func (*ClientImpl) RestoreDefinition ¶
func (client *ClientImpl) RestoreDefinition(ctx context.Context, args RestoreDefinitionArgs) (*BuildDefinition, error)
Restores a deleted definition
func (*ClientImpl) RestoreWebhooks ¶
func (client *ClientImpl) RestoreWebhooks(ctx context.Context, args RestoreWebhooksArgs) error
[Preview API] Recreates the webhooks for the specified triggers in the given source code repository.
func (*ClientImpl) SaveTemplate ¶
func (client *ClientImpl) SaveTemplate(ctx context.Context, args SaveTemplateArgs) (*BuildDefinitionTemplate, error)
Updates an existing build definition template.
func (*ClientImpl) UpdateBuild ¶
func (client *ClientImpl) UpdateBuild(ctx context.Context, args UpdateBuildArgs) (*Build, error)
Updates a build.
func (*ClientImpl) UpdateBuildGeneralSettings ¶
func (client *ClientImpl) UpdateBuildGeneralSettings(ctx context.Context, args UpdateBuildGeneralSettingsArgs) (*PipelineGeneralSettings, error)
[Preview API] Updates pipeline general settings.
func (*ClientImpl) UpdateBuildProperties ¶
func (client *ClientImpl) UpdateBuildProperties(ctx context.Context, args UpdateBuildPropertiesArgs) (interface{}, error)
[Preview API] Updates properties for a build.
func (*ClientImpl) UpdateBuildSettings ¶
func (client *ClientImpl) UpdateBuildSettings(ctx context.Context, args UpdateBuildSettingsArgs) (*BuildSettings, error)
Updates the build settings.
func (*ClientImpl) UpdateBuilds ¶
func (client *ClientImpl) UpdateBuilds(ctx context.Context, args UpdateBuildsArgs) (*[]Build, error)
Updates multiple builds.
func (*ClientImpl) UpdateDefinition ¶
func (client *ClientImpl) UpdateDefinition(ctx context.Context, args UpdateDefinitionArgs) (*BuildDefinition, error)
Updates an existing definition.
func (*ClientImpl) UpdateDefinitionProperties ¶
func (client *ClientImpl) UpdateDefinitionProperties(ctx context.Context, args UpdateDefinitionPropertiesArgs) (interface{}, error)
[Preview API] Updates properties for a definition.
func (*ClientImpl) UpdateFolder ¶
func (client *ClientImpl) UpdateFolder(ctx context.Context, args UpdateFolderArgs) (*Folder, error)
[Preview API] Updates an existing folder at given existing path
func (*ClientImpl) UpdateRetentionSettings ¶
func (client *ClientImpl) UpdateRetentionSettings(ctx context.Context, args UpdateRetentionSettingsArgs) (*ProjectRetentionSetting, error)
[Preview API] Updates the project's retention settings.
func (*ClientImpl) UpdateStage ¶
func (client *ClientImpl) UpdateStage(ctx context.Context, args UpdateStageArgs) error
[Preview API] Update a build stage
type ConsoleLogEvent ¶
type ContinuousDeploymentDefinition ¶
type ContinuousDeploymentDefinition struct { // The connected service associated with the continuous deployment ConnectedService *core.WebApiConnectedServiceRef `json:"connectedService,omitempty"` // The definition associated with the continuous deployment Definition *XamlDefinitionReference `json:"definition,omitempty"` GitBranch *string `json:"gitBranch,omitempty"` HostedServiceName *string `json:"hostedServiceName,omitempty"` Project *core.TeamProjectReference `json:"project,omitempty"` RepositoryId *string `json:"repositoryId,omitempty"` StorageAccountName *string `json:"storageAccountName,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` Website *string `json:"website,omitempty"` Webspace *string `json:"webspace,omitempty"` }
type ContinuousIntegrationTrigger ¶
type ContinuousIntegrationTrigger struct { // The type of the trigger. TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"` // Indicates whether changes should be batched while another CI build is running. BatchChanges *bool `json:"batchChanges,omitempty"` BranchFilters *[]string `json:"branchFilters,omitempty"` // The maximum number of simultaneous CI builds that will run per branch. MaxConcurrentBuildsPerBranch *int `json:"maxConcurrentBuildsPerBranch,omitempty"` PathFilters *[]string `json:"pathFilters,omitempty"` // The polling interval, in seconds. PollingInterval *int `json:"pollingInterval,omitempty"` // The ID of the job used to poll an external repository. PollingJobId *uuid.UUID `json:"pollingJobId,omitempty"` SettingsSourceType *int `json:"settingsSourceType,omitempty"` }
Represents a continuous integration (CI) trigger.
type ControllerStatus ¶
type ControllerStatus string
type CreateArtifactArgs ¶
type CreateArtifactArgs struct { // (required) The artifact. Artifact *BuildArtifact // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the CreateArtifact function
type CreateDefinitionArgs ¶
type CreateDefinitionArgs struct { // (required) The definition. Definition *BuildDefinition // (required) Project ID or project name Project *string // (optional) DefinitionToCloneId *int // (optional) DefinitionToCloneRevision *int }
Arguments for the CreateDefinition function
type CreateFolderArgs ¶
type CreateFolderArgs struct { // (required) The folder. Folder *Folder // (required) Project ID or project name Project *string // (required) The full path of the folder. Path *string }
Arguments for the CreateFolder function
type DefinitionQuality ¶
type DefinitionQuality string
type DefinitionQueryOrder ¶
type DefinitionQueryOrder string
Specifies the desired ordering of definitions.
type DefinitionQueueStatus ¶
type DefinitionQueueStatus string
type DefinitionReference ¶
type DefinitionReference struct { // The date this version of the definition was created. CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` // The ID of the referenced definition. Id *int `json:"id,omitempty"` // The name of the referenced definition. Name *string `json:"name,omitempty"` // The folder path of the definition. Path *string `json:"path,omitempty"` // A reference to the project. Project *core.TeamProjectReference `json:"project,omitempty"` // A value that indicates whether builds can be queued against this definition. QueueStatus *DefinitionQueueStatus `json:"queueStatus,omitempty"` // The definition revision number. Revision *int `json:"revision,omitempty"` // The type of the definition. Type *DefinitionType `json:"type,omitempty"` // The definition's URI. Uri *string `json:"uri,omitempty"` // The REST URL of the definition. Url *string `json:"url,omitempty"` }
Represents a reference to a definition.
type DefinitionResourceReference ¶
type DefinitionResourceReference struct { // Indicates whether the resource is authorized for use. Authorized *bool `json:"authorized,omitempty"` // The id of the resource. Id *string `json:"id,omitempty"` // A friendly name for the resource. Name *string `json:"name,omitempty"` // The type of the resource. Type *string `json:"type,omitempty"` }
type DefinitionTriggerType ¶
type DefinitionTriggerType string
type DefinitionType ¶
type DefinitionType string
type DeleteBuildArgs ¶
type DeleteBuildArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the DeleteBuild function
type DeleteBuildTagArgs ¶
type DeleteBuildTagArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The tag to remove. Tag *string }
Arguments for the DeleteBuildTag function
type DeleteDefinitionArgs ¶
type DeleteDefinitionArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int }
Arguments for the DeleteDefinition function
type DeleteDefinitionTagArgs ¶
type DeleteDefinitionTagArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int // (required) The tag to remove. Tag *string }
Arguments for the DeleteDefinitionTag function
type DeleteFolderArgs ¶
type DeleteFolderArgs struct { // (required) Project ID or project name Project *string // (required) The full path to the folder. Path *string }
Arguments for the DeleteFolder function
type DeleteOptions ¶
type DeleteOptions string
type DeleteRetentionLeasesByIdArgs ¶
type DeleteRetentionLeasesByIdArgs struct { // (required) Project ID or project name Project *string // (required) Ids *[]int }
Arguments for the DeleteRetentionLeasesById function
type DeleteTagArgs ¶
type DeleteTagArgs struct { // (required) Project ID or project name Project *string // (required) The tag to remove. Tag *string }
Arguments for the DeleteTag function
type DeleteTemplateArgs ¶
type DeleteTemplateArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the template. TemplateId *string }
Arguments for the DeleteTemplate function
type Demand ¶
type Demand struct { // The name of the capability referenced by the demand. Name *string `json:"name,omitempty"` // The demanded value. Value *string `json:"value,omitempty"` }
Represents a demand used by a definition or build.
type Dependency ¶
type Dependency struct { // The event. The dependency is satisfied when the referenced object emits this event. Event *string `json:"event,omitempty"` // The scope. This names the object referenced by the dependency. Scope *string `json:"scope,omitempty"` }
Represents a dependency.
type Deployment ¶
type Deployment struct {
Type *string `json:"type,omitempty"`
}
Represents the data from the build information nodes for type "DeploymentInformation" for xaml builds
type DeploymentBuild ¶
type DeploymentBuild struct { Type *string `json:"type,omitempty"` BuildId *int `json:"buildId,omitempty"` }
Deployment information for type "Build"
type DeploymentDeploy ¶
type DeploymentDeploy struct { Type *string `json:"type,omitempty"` Message *string `json:"message,omitempty"` }
Deployment information for type "Deploy"
type DeploymentTest ¶
type DeploymentTest struct { Type *string `json:"type,omitempty"` RunId *int `json:"runId,omitempty"` }
Deployment information for type "Test"
type DesignerProcess ¶
type DesignerProcess struct { // The type of the process. Type *int `json:"type,omitempty"` Phases *[]Phase `json:"phases,omitempty"` // The target for the build process. Target *DesignerProcessTarget `json:"target,omitempty"` }
Represents a build process supported by the build definition designer.
type DesignerProcessTarget ¶
type DesignerProcessTarget struct { // Agent specification for the build process. AgentSpecification *AgentSpecification `json:"agentSpecification,omitempty"` }
Represents the target for the build process.
type DockerProcess ¶
type DockerProcess struct { // The type of the process. Type *int `json:"type,omitempty"` Target *DockerProcessTarget `json:"target,omitempty"` }
type DockerProcessTarget ¶
type DockerProcessTarget struct { // Agent specification for the build process. AgentSpecification *AgentSpecification `json:"agentSpecification,omitempty"` }
Represents the target for the docker build process.
type Folder ¶
type Folder struct { // The process or person who created the folder. CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"` // The date the folder was created. CreatedOn *azuredevops.Time `json:"createdOn,omitempty"` // The description. Description *string `json:"description,omitempty"` // The process or person that last changed the folder. LastChangedBy *webapi.IdentityRef `json:"lastChangedBy,omitempty"` // The date the folder was last changed. LastChangedDate *azuredevops.Time `json:"lastChangedDate,omitempty"` // The full path. Path *string `json:"path,omitempty"` // The project. Project *core.TeamProjectReference `json:"project,omitempty"` }
Represents a folder that contains build definitions.
type Forks ¶
type Forks struct { // Indicates whether a build should use secrets when building forks of the selected repository. AllowSecrets *bool `json:"allowSecrets,omitempty"` // Indicates whether the trigger should queue builds for forks of the selected repository. Enabled *bool `json:"enabled,omitempty"` }
Represents the ability to build forks of the selected repository.
type GatedCheckInTrigger ¶
type GatedCheckInTrigger struct { // The type of the trigger. TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"` PathFilters *[]string `json:"pathFilters,omitempty"` // Indicates whether CI triggers should run after the gated check-in succeeds. RunContinuousIntegration *bool `json:"runContinuousIntegration,omitempty"` // Indicates whether to take workspace mappings into account when determining whether a build should run. UseWorkspaceMappings *bool `json:"useWorkspaceMappings,omitempty"` }
Represents a gated check-in trigger.
type GetArtifactArgs ¶
type GetArtifactArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The name of the artifact. ArtifactName *string }
Arguments for the GetArtifact function
type GetArtifactContentZipArgs ¶
type GetArtifactContentZipArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The name of the artifact. ArtifactName *string }
Arguments for the GetArtifactContentZip function
type GetArtifactsArgs ¶
type GetArtifactsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the GetArtifacts function
type GetAttachmentArgs ¶
type GetAttachmentArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The ID of the timeline. TimelineId *uuid.UUID // (required) The ID of the timeline record. RecordId *uuid.UUID // (required) The type of the attachment. Type *string // (required) The name of the attachment. Name *string }
Arguments for the GetAttachment function
type GetAttachmentsArgs ¶
type GetAttachmentsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The type of attachment. Type *string }
Arguments for the GetAttachments function
type GetBuildArgs ¶
type GetBuildArgs struct { // (required) Project ID or project name Project *string // (required) BuildId *int // (optional) PropertyFilters *string }
Arguments for the GetBuild function
type GetBuildBadgeArgs ¶
type GetBuildBadgeArgs struct { // (required) Project ID or project name Project *string // (required) The repository type. RepoType *string // (optional) The repository ID. RepoId *string // (optional) The branch name. BranchName *string }
Arguments for the GetBuildBadge function
type GetBuildBadgeDataArgs ¶
type GetBuildBadgeDataArgs struct { // (required) Project ID or project name Project *string // (required) The repository type. RepoType *string // (optional) The repository ID. RepoId *string // (optional) The branch name. BranchName *string }
Arguments for the GetBuildBadgeData function
type GetBuildChangesArgs ¶
type GetBuildChangesArgs struct { // (required) Project ID or project name Project *string // (required) BuildId *int // (optional) ContinuationToken *string // (optional) The maximum number of changes to return Top *int // (optional) IncludeSourceChange *bool }
Arguments for the GetBuildChanges function
type GetBuildChangesResponseValue ¶
Return type for the GetBuildChanges function
type GetBuildControllerArgs ¶
type GetBuildControllerArgs struct { // (required) ControllerId *int }
Arguments for the GetBuildController function
type GetBuildControllersArgs ¶
type GetBuildControllersArgs struct { // (optional) Name *string }
Arguments for the GetBuildControllers function
type GetBuildGeneralSettingsArgs ¶
type GetBuildGeneralSettingsArgs struct { // (required) Project ID or project name Project *string }
Arguments for the GetBuildGeneralSettings function
type GetBuildLogArgs ¶
type GetBuildLogArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The ID of the log file. LogId *int // (optional) The start line. StartLine *uint64 // (optional) The end line. EndLine *uint64 }
Arguments for the GetBuildLog function
type GetBuildLogLinesArgs ¶
type GetBuildLogLinesArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The ID of the log file. LogId *int // (optional) The start line. StartLine *uint64 // (optional) The end line. EndLine *uint64 }
Arguments for the GetBuildLogLines function
type GetBuildLogZipArgs ¶
type GetBuildLogZipArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The ID of the log file. LogId *int // (optional) The start line. StartLine *uint64 // (optional) The end line. EndLine *uint64 }
Arguments for the GetBuildLogZip function
type GetBuildLogsArgs ¶
type GetBuildLogsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the GetBuildLogs function
type GetBuildLogsZipArgs ¶
type GetBuildLogsZipArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the GetBuildLogsZip function
type GetBuildOptionDefinitionsArgs ¶
type GetBuildOptionDefinitionsArgs struct { // (optional) Project ID or project name Project *string }
Arguments for the GetBuildOptionDefinitions function
type GetBuildPropertiesArgs ¶
type GetBuildPropertiesArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (optional) A comma-delimited list of properties. If specified, filters to these specific properties. Filter *[]string }
Arguments for the GetBuildProperties function
type GetBuildReportArgs ¶
type GetBuildReportArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (optional) Type *string }
Arguments for the GetBuildReport function
type GetBuildReportHtmlContentArgs ¶
type GetBuildReportHtmlContentArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (optional) Type *string }
Arguments for the GetBuildReportHtmlContent function
type GetBuildSettingsArgs ¶
type GetBuildSettingsArgs struct { // (optional) Project ID or project name Project *string }
Arguments for the GetBuildSettings function
type GetBuildTagsArgs ¶
type GetBuildTagsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the GetBuildTags function
type GetBuildTimelineArgs ¶
type GetBuildTimelineArgs struct { // (required) Project ID or project name Project *string // (required) BuildId *int // (optional) TimelineId *uuid.UUID // (optional) ChangeId *int // (optional) PlanId *uuid.UUID }
Arguments for the GetBuildTimeline function
type GetBuildWorkItemsRefsArgs ¶
type GetBuildWorkItemsRefsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (optional) The maximum number of work items to return. Top *int }
Arguments for the GetBuildWorkItemsRefs function
type GetBuildWorkItemsRefsFromCommitsArgs ¶
type GetBuildWorkItemsRefsFromCommitsArgs struct { // (required) A comma-delimited list of commit IDs. CommitIds *[]string // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (optional) The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified. Top *int }
Arguments for the GetBuildWorkItemsRefsFromCommits function
type GetBuildsArgs ¶
type GetBuildsArgs struct { // (required) Project ID or project name Project *string // (optional) A comma-delimited list of definition IDs. If specified, filters to builds for these definitions. Definitions *[]int // (optional) A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues. Queues *[]int // (optional) If specified, filters to builds that match this build number. Append * to do a prefix search. BuildNumber *string // (optional) If specified, filters to builds that finished/started/queued after this date based on the queryOrder specified. MinTime *azuredevops.Time // (optional) If specified, filters to builds that finished/started/queued before this date based on the queryOrder specified. MaxTime *azuredevops.Time // (optional) If specified, filters to builds requested for the specified user. RequestedFor *string // (optional) If specified, filters to builds that match this reason. ReasonFilter *BuildReason // (optional) If specified, filters to builds that match this status. StatusFilter *BuildStatus // (optional) If specified, filters to builds that match this result. ResultFilter *BuildResult // (optional) A comma-delimited list of tags. If specified, filters to builds that have the specified tags. TagFilters *[]string // (optional) A comma-delimited list of properties to retrieve. Properties *[]string // (optional) The maximum number of builds to return. Top *int // (optional) A continuation token, returned by a previous call to this method, that can be used to return the next set of builds. ContinuationToken *string // (optional) The maximum number of builds to return per definition. MaxBuildsPerDefinition *int // (optional) Indicates whether to exclude, include, or only return deleted builds. DeletedFilter *QueryDeletedOption // (optional) The order in which builds should be returned. QueryOrder *BuildQueryOrder // (optional) If specified, filters to builds that built branches that built this branch. BranchName *string // (optional) A comma-delimited list that specifies the IDs of builds to retrieve. BuildIds *[]int // (optional) If specified, filters to builds that built from this repository. RepositoryId *string // (optional) If specified, filters to builds that built from repositories of this type. RepositoryType *string }
Arguments for the GetBuilds function
type GetBuildsResponseValue ¶
Return type for the GetBuilds function
type GetChangesBetweenBuildsArgs ¶
type GetChangesBetweenBuildsArgs struct { // (required) Project ID or project name Project *string // (optional) The ID of the first build. FromBuildId *int // (optional) The ID of the last build. ToBuildId *int // (optional) The maximum number of changes to return. Top *int }
Arguments for the GetChangesBetweenBuilds function
type GetDefinitionArgs ¶
type GetDefinitionArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int // (optional) The revision number to retrieve. If this is not specified, the latest version will be returned. Revision *int // (optional) If specified, indicates the date from which metrics should be included. MinMetricsTime *azuredevops.Time // (optional) A comma-delimited list of properties to include in the results. PropertyFilters *[]string // (optional) IncludeLatestBuilds *bool }
Arguments for the GetDefinition function
type GetDefinitionMetricsArgs ¶
type GetDefinitionMetricsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int // (optional) The date from which to calculate metrics. MinMetricsTime *azuredevops.Time }
Arguments for the GetDefinitionMetrics function
type GetDefinitionPropertiesArgs ¶
type GetDefinitionPropertiesArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int // (optional) A comma-delimited list of properties. If specified, filters to these specific properties. Filter *[]string }
Arguments for the GetDefinitionProperties function
type GetDefinitionResourcesArgs ¶
type GetDefinitionResourcesArgs struct { // (required) Project ID or project name Project *string // (required) DefinitionId *int }
Arguments for the GetDefinitionResources function
type GetDefinitionRevisionsArgs ¶
type GetDefinitionRevisionsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int }
Arguments for the GetDefinitionRevisions function
type GetDefinitionTagsArgs ¶
type GetDefinitionTagsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int // (optional) The definition revision number. If not specified, uses the latest revision of the definition. Revision *int }
Arguments for the GetDefinitionTags function
type GetDefinitionsArgs ¶
type GetDefinitionsArgs struct { // (required) Project ID or project name Project *string // (optional) If specified, filters to definitions whose names match this pattern. Name *string // (optional) A repository ID. If specified, filters to definitions that use this repository. RepositoryId *string // (optional) If specified, filters to definitions that have a repository of this type. RepositoryType *string // (optional) Indicates the order in which definitions should be returned. QueryOrder *DefinitionQueryOrder // (optional) The maximum number of definitions to return. Top *int // (optional) A continuation token, returned by a previous call to this method, that can be used to return the next set of definitions. ContinuationToken *string // (optional) If specified, indicates the date from which metrics should be included. MinMetricsTime *azuredevops.Time // (optional) A comma-delimited list that specifies the IDs of definitions to retrieve. DefinitionIds *[]int // (optional) If specified, filters to definitions under this folder. Path *string // (optional) If specified, filters to definitions that have builds after this date. BuiltAfter *azuredevops.Time // (optional) If specified, filters to definitions that do not have builds after this date. NotBuiltAfter *azuredevops.Time // (optional) Indicates whether the full definitions should be returned. By default, shallow representations of the definitions are returned. IncludeAllProperties *bool // (optional) Indicates whether to return the latest and latest completed builds for this definition. IncludeLatestBuilds *bool // (optional) If specified, filters to definitions that use the specified task. TaskIdFilter *uuid.UUID // (optional) If specified, filters to definitions with the given process type. ProcessType *int // (optional) If specified, filters to YAML definitions that match the given filename. YamlFilename *string }
Arguments for the GetDefinitions function
type GetDefinitionsResponseValue ¶
type GetDefinitionsResponseValue struct { Value []BuildDefinitionReference ContinuationToken string }
Return type for the GetDefinitions function
type GetFileArgs ¶
type GetFileArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (required) The name of the artifact. ArtifactName *string // (required) The primary key for the file. FileId *string // (required) The name that the file will be set to. FileName *string }
Arguments for the GetFile function
type GetFileContentsArgs ¶
type GetFileContentsArgs struct { // (required) Project ID or project name Project *string // (required) The name of the source provider. ProviderName *string // (optional) If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. ServiceEndpointId *uuid.UUID // (optional) If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. Repository *string // (optional) The identifier of the commit or branch from which a file's contents are retrieved. CommitOrBranch *string // (optional) The path to the file to retrieve, relative to the root of the repository. Path *string }
Arguments for the GetFileContents function
type GetFoldersArgs ¶
type GetFoldersArgs struct { // (required) Project ID or project name Project *string // (optional) The path to start with. Path *string // (optional) The order in which folders should be returned. QueryOrder *FolderQueryOrder }
Arguments for the GetFolders function
type GetLatestBuildArgs ¶
type GetLatestBuildArgs struct { // (required) Project ID or project name Project *string // (required) definition name with optional leading folder path, or the definition id Definition *string // (optional) optional parameter that indicates the specific branch to use BranchName *string }
Arguments for the GetLatestBuild function
type GetPathContentsArgs ¶
type GetPathContentsArgs struct { // (required) Project ID or project name Project *string // (required) The name of the source provider. ProviderName *string // (optional) If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. ServiceEndpointId *uuid.UUID // (optional) If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. Repository *string // (optional) The identifier of the commit or branch from which a file's contents are retrieved. CommitOrBranch *string // (optional) The path contents to list, relative to the root of the repository. Path *string }
Arguments for the GetPathContents function
type GetProjectMetricsArgs ¶
type GetProjectMetricsArgs struct { // (required) Project ID or project name Project *string // (optional) The aggregation type to use (hourly, daily). MetricAggregationType *string // (optional) The date from which to calculate metrics. MinMetricsTime *azuredevops.Time }
Arguments for the GetProjectMetrics function
type GetProjectResourcesArgs ¶
type GetProjectResourcesArgs struct { // (required) Project ID or project name Project *string // (optional) Type *string // (optional) Id *string }
Arguments for the GetProjectResources function
type GetPullRequestArgs ¶
type GetPullRequestArgs struct { // (required) Project ID or project name Project *string // (required) The name of the source provider. ProviderName *string // (required) Vendor-specific id of the pull request. PullRequestId *string // (optional) Vendor-specific identifier or the name of the repository that contains the pull request. RepositoryId *string // (optional) If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. ServiceEndpointId *uuid.UUID }
Arguments for the GetPullRequest function
type GetResourceUsageArgs ¶
type GetResourceUsageArgs struct { }
Arguments for the GetResourceUsage function
type GetRetentionLeaseArgs ¶
type GetRetentionLeaseArgs struct { // (required) Project ID or project name Project *string // (required) LeaseId *int }
Arguments for the GetRetentionLease function
type GetRetentionLeasesByMinimalRetentionLeasesArgs ¶
type GetRetentionLeasesByMinimalRetentionLeasesArgs struct { // (required) Project ID or project name Project *string // (required) List of JSON-serialized MinimalRetentionLeases separated by '|' LeasesToFetch *[]MinimalRetentionLease }
Arguments for the GetRetentionLeasesByMinimalRetentionLeases function
type GetRetentionLeasesByOwnerIdArgs ¶
type GetRetentionLeasesByOwnerIdArgs struct { // (required) Project ID or project name Project *string // (optional) OwnerId *string // (optional) An optional parameter to limit the search to a specific pipeline definition. DefinitionId *int // (optional) An optional parameter to limit the search to a single pipeline run. Requires definitionId. RunId *int }
Arguments for the GetRetentionLeasesByOwnerId function
type GetRetentionLeasesByUserIdArgs ¶
type GetRetentionLeasesByUserIdArgs struct { // (required) Project ID or project name Project *string // (required) The user id to search for. UserOwnerId *uuid.UUID // (optional) An optional parameter to limit the search to a specific pipeline definition. DefinitionId *int // (optional) An optional parameter to limit the search to a single pipeline run. Requires definitionId. RunId *int }
Arguments for the GetRetentionLeasesByUserId function
type GetRetentionSettingsArgs ¶
type GetRetentionSettingsArgs struct { // (required) Project ID or project name Project *string }
Arguments for the GetRetentionSettings function
type GetStatusBadgeArgs ¶
type GetStatusBadgeArgs struct { // (required) Project ID or project name Project *string // (required) Either the definition name with optional leading folder path, or the definition id. Definition *string // (optional) Only consider the most recent build for this branch. BranchName *string // (optional) Use this stage within the pipeline to render the status. StageName *string // (optional) Use this job within a stage of the pipeline to render the status. JobName *string // (optional) Use this job configuration to render the status Configuration *string // (optional) Replaces the default text on the left side of the badge. Label *string }
Arguments for the GetStatusBadge function
type GetTagsArgs ¶
type GetTagsArgs struct { // (required) Project ID or project name Project *string }
Arguments for the GetTags function
type GetTemplateArgs ¶
type GetTemplateArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the requested template. TemplateId *string }
Arguments for the GetTemplate function
type GetTemplatesArgs ¶
type GetTemplatesArgs struct { // (required) Project ID or project name Project *string }
Arguments for the GetTemplates function
type GetWorkItemsBetweenBuildsArgs ¶
type GetWorkItemsBetweenBuildsArgs struct { // (required) Project ID or project name Project *string // (required) The ID of the first build. FromBuildId *int // (required) The ID of the last build. ToBuildId *int // (optional) The maximum number of work items to return. Top *int }
Arguments for the GetWorkItemsBetweenBuilds function
type InformationNode ¶
type InformationNode struct { // Fields of the information node Fields *map[string]string `json:"fields,omitempty"` // Process or person that last modified this node LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // Date this node was last modified LastModifiedDate *azuredevops.Time `json:"lastModifiedDate,omitempty"` // Node Id of this information node NodeId *int `json:"nodeId,omitempty"` // Id of parent node (xml tree) ParentId *int `json:"parentId,omitempty"` // The type of the information node Type *string `json:"type,omitempty"` }
Data representation of an information node associated with a build
type Issue ¶
type Issue struct { // The category. Category *string `json:"category,omitempty"` Data *map[string]string `json:"data,omitempty"` // A description of the issue. Message *string `json:"message,omitempty"` // The type (error, warning) of the issue. Type *IssueType `json:"type,omitempty"` }
Represents an issue (error, warning) associated with a build.
type JustInTimeProcess ¶
type JustInTimeProcess struct { // The type of the process. Type *int `json:"type,omitempty"` }
type ListBranchesArgs ¶
type ListBranchesArgs struct { // (required) Project ID or project name Project *string // (required) The name of the source provider. ProviderName *string // (optional) If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. ServiceEndpointId *uuid.UUID // (optional) The vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. Repository *string // (optional) If supplied, the name of the branch to check for specifically. BranchName *string }
Arguments for the ListBranches function
type ListRepositoriesArgs ¶
type ListRepositoriesArgs struct { // (required) Project ID or project name Project *string // (required) The name of the source provider. ProviderName *string // (optional) If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. ServiceEndpointId *uuid.UUID // (optional) If specified, the vendor-specific identifier or the name of a single repository to get. Repository *string // (optional) 'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set. ResultSet *ResultSet // (optional) If set to true, this will limit the set of results and will return a continuation token to continue the query. PageResults *bool // (optional) When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories. ContinuationToken *string }
Arguments for the ListRepositories function
type ListSourceProvidersArgs ¶
type ListSourceProvidersArgs struct { // (required) Project ID or project name Project *string }
Arguments for the ListSourceProviders function
type ListWebhooksArgs ¶
type ListWebhooksArgs struct { // (required) Project ID or project name Project *string // (required) The name of the source provider. ProviderName *string // (optional) If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. ServiceEndpointId *uuid.UUID // (optional) If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories. Repository *string }
Arguments for the ListWebhooks function
type MappingDetails ¶
type MappingDetails struct { // The local path. LocalPath *string `json:"localPath,omitempty"` // The mapping type. MappingType *string `json:"mappingType,omitempty"` // The server path. ServerPath *string `json:"serverPath,omitempty"` }
Represents an entry in a workspace mapping.
type MinimalRetentionLease ¶
type MinimalRetentionLease struct { // The pipeline definition of the run. DefinitionId *int `json:"definitionId,omitempty"` // User-provided string that identifies the owner of a retention lease. OwnerId *string `json:"ownerId,omitempty"` // The pipeline run to protect. RunId *int `json:"runId,omitempty"` }
type MultipleAgentExecutionOptions ¶
type MultipleAgentExecutionOptions struct { // Indicates the type of execution options. Type *int `json:"type,omitempty"` // Indicates whether failure on one agent should prevent the phase from running on other agents. ContinueOnError *bool `json:"continueOnError,omitempty"` // The maximum number of agents to use simultaneously. MaxConcurrency *int `json:"maxConcurrency,omitempty"` }
Represents options for running a phase against multiple agents.
type NewRetentionLease ¶
type NewRetentionLease struct { // The number of days to consider the lease valid. DaysValid *int `json:"daysValid,omitempty"` // The pipeline definition of the run. DefinitionId *int `json:"definitionId,omitempty"` // User-provided string that identifies the owner of a retention lease. OwnerId *string `json:"ownerId,omitempty"` // If set, this lease will also prevent the pipeline from being deleted while the lease is still valid. ProtectPipeline *bool `json:"protectPipeline,omitempty"` // The pipeline run to protect. RunId *int `json:"runId,omitempty"` }
type Phase ¶
type Phase struct { // The condition that must be true for this phase to execute. Condition *string `json:"condition,omitempty"` Dependencies *[]Dependency `json:"dependencies,omitempty"` // The job authorization scope for builds queued against this definition. JobAuthorizationScope *BuildAuthorizationScope `json:"jobAuthorizationScope,omitempty"` // The cancellation timeout, in minutes, for builds queued against this definition. JobCancelTimeoutInMinutes *int `json:"jobCancelTimeoutInMinutes,omitempty"` // The job execution timeout, in minutes, for builds queued against this definition. JobTimeoutInMinutes *int `json:"jobTimeoutInMinutes,omitempty"` // The name of the phase. Name *string `json:"name,omitempty"` // The unique ref name of the phase. RefName *string `json:"refName,omitempty"` Steps *[]BuildDefinitionStep `json:"steps,omitempty"` // The target (agent, server, etc.) for this phase. Target *PhaseTarget `json:"target,omitempty"` Variables *map[string]BuildDefinitionVariable `json:"variables,omitempty"` }
Represents a phase of a build definition.
type PhaseTarget ¶
type PhaseTarget struct { // The type of the target. Type *int `json:"type,omitempty"` }
Represents the target of a phase.
type PipelineGeneralSettings ¶
type PipelineGeneralSettings struct { // If enabled, scope of access for all pipelines reduces to the current project. EnforceJobAuthScope *bool `json:"enforceJobAuthScope,omitempty"` // Restricts the scope of access for all pipelines to only repositories explicitly referenced by the pipeline. EnforceReferencedRepoScopedToken *bool `json:"enforceReferencedRepoScopedToken,omitempty"` // If enabled, only those variables that are explicitly marked as "Settable at queue time" can be set at queue time. EnforceSettableVar *bool `json:"enforceSettableVar,omitempty"` // Allows pipelines to record metadata. PublishPipelineMetadata *bool `json:"publishPipelineMetadata,omitempty"` // Anonymous users can access the status badge API for all pipelines unless this option is enabled. StatusBadgesArePrivate *bool `json:"statusBadgesArePrivate,omitempty"` }
Contains pipeline general settings.
type ProcessTemplateType ¶
type ProcessTemplateType string
type ProjectRetentionSetting ¶
type ProjectRetentionSetting struct { // The rules for artifact retention. Artifacts can not live longer than a run, so will be overridden by a shorter run purge setting. PurgeArtifacts *RetentionSetting `json:"purgeArtifacts,omitempty"` // The rules for pull request pipeline run retention. PurgePullRequestRuns *RetentionSetting `json:"purgePullRequestRuns,omitempty"` // The rules for pipeline run retention. PurgeRuns *RetentionSetting `json:"purgeRuns,omitempty"` // The rules for retaining runs per protected branch. RetainRunsPerProtectedBranch *RetentionSetting `json:"retainRunsPerProtectedBranch,omitempty"` }
Contains the settings for the retention rules.
type PullRequest ¶
type PullRequest struct { // The links to other objects related to this object. Links interface{} `json:"_links,omitempty"` // Author of the pull request. Author *webapi.IdentityRef `json:"author,omitempty"` // Current state of the pull request, e.g. open, merged, closed, conflicts, etc. CurrentState *string `json:"currentState,omitempty"` // Description for the pull request. Description *string `json:"description,omitempty"` // Unique identifier for the pull request Id *string `json:"id,omitempty"` // The name of the provider this pull request is associated with. ProviderName *string `json:"providerName,omitempty"` // Source branch ref of this pull request SourceBranchRef *string `json:"sourceBranchRef,omitempty"` // Owner of the source repository of this pull request SourceRepositoryOwner *string `json:"sourceRepositoryOwner,omitempty"` // Target branch ref of this pull request TargetBranchRef *string `json:"targetBranchRef,omitempty"` // Owner of the target repository of this pull request TargetRepositoryOwner *string `json:"targetRepositoryOwner,omitempty"` // Title of the pull request. Title *string `json:"title,omitempty"` }
Represents a pull request object. These are retrieved from Source Providers.
type PullRequestTrigger ¶
type PullRequestTrigger struct { // The type of the trigger. TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"` // Indicates if an update to a PR should delete current in-progress builds. AutoCancel *bool `json:"autoCancel,omitempty"` BranchFilters *[]string `json:"branchFilters,omitempty"` Forks *Forks `json:"forks,omitempty"` IsCommentRequiredForPullRequest *bool `json:"isCommentRequiredForPullRequest,omitempty"` PathFilters *[]string `json:"pathFilters,omitempty"` RequireCommentsForNonTeamMembersOnly *bool `json:"requireCommentsForNonTeamMembersOnly,omitempty"` SettingsSourceType *int `json:"settingsSourceType,omitempty"` }
Represents a pull request trigger.
type QueryDeletedOption ¶
type QueryDeletedOption string
type QueueBuildArgs ¶
type QueueBuildArgs struct { // (required) Build *Build // (required) Project ID or project name Project *string // (optional) IgnoreWarnings *bool // (optional) CheckInTicket *string // (optional) SourceBuildId *int // (optional) Optional definition id to queue a build without a body. Ignored if there's a valid body DefinitionId *int }
Arguments for the QueueBuild function
type QueuePriority ¶
type QueuePriority string
type RealtimeBuildEvent ¶
type RealtimeBuildEvent struct {
BuildId *int `json:"buildId,omitempty"`
}
type RepositoryCleanOptions ¶
type RepositoryCleanOptions string
type RepositoryWebhook ¶
type RepositoryWebhook struct { // The friendly name of the repository. Name *string `json:"name,omitempty"` Types *[]DefinitionTriggerType `json:"types,omitempty"` // The URL of the repository. Url *string `json:"url,omitempty"` }
Represents a repository's webhook returned from a source provider.
type ResourceReference ¶
type ResourceReference struct { // An alias to be used when referencing the resource. Alias *string `json:"alias,omitempty"` }
Represents a reference to a resource.
type RestoreDefinitionArgs ¶
type RestoreDefinitionArgs struct { // (required) Project ID or project name Project *string // (required) The identifier of the definition to restore. DefinitionId *int // (required) When false, restores a deleted definition. Deleted *bool }
Arguments for the RestoreDefinition function
type RestoreWebhooksArgs ¶
type RestoreWebhooksArgs struct { // (required) The types of triggers to restore webhooks for. TriggerTypes *[]DefinitionTriggerType // (required) Project ID or project name Project *string // (required) The name of the source provider. ProviderName *string // (optional) If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. ServiceEndpointId *uuid.UUID // (optional) If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories. Repository *string }
Arguments for the RestoreWebhooks function
type RetentionLease ¶
type RetentionLease struct { // When the lease was created. CreatedOn *azuredevops.Time `json:"createdOn,omitempty"` // The pipeline definition of the run. DefinitionId *int `json:"definitionId,omitempty"` // The unique identifier for this lease. LeaseId *int `json:"leaseId,omitempty"` // Non-unique string that identifies the owner of a retention lease. OwnerId *string `json:"ownerId,omitempty"` // The pipeline run protected by this lease. RunId *int `json:"runId,omitempty"` // The last day the lease is considered valid. ValidUntil *azuredevops.Time `json:"validUntil,omitempty"` }
A valid retention lease prevents automated systems from deleting a pipeline run.
type RetentionPolicy ¶
type RetentionPolicy struct { Artifacts *[]string `json:"artifacts,omitempty"` ArtifactTypesToDelete *[]string `json:"artifactTypesToDelete,omitempty"` Branches *[]string `json:"branches,omitempty"` // The number of days to keep builds. DaysToKeep *int `json:"daysToKeep,omitempty"` // Indicates whether the build record itself should be deleted. DeleteBuildRecord *bool `json:"deleteBuildRecord,omitempty"` // Indicates whether to delete test results associated with the build. DeleteTestResults *bool `json:"deleteTestResults,omitempty"` // The minimum number of builds to keep. MinimumToKeep *int `json:"minimumToKeep,omitempty"` }
Represents a retention policy for a build definition.
type RetentionSetting ¶
type RetentionSetting struct { Max *int `json:"max,omitempty"` Min *int `json:"min,omitempty"` Value *int `json:"value,omitempty"` }
Contains the minimum, maximum, and current value for a retention setting.
type SaveTemplateArgs ¶
type SaveTemplateArgs struct { // (required) The new version of the template. Template *BuildDefinitionTemplate // (required) Project ID or project name Project *string // (required) The ID of the template. TemplateId *string }
Arguments for the SaveTemplate function
type Schedule ¶
type Schedule struct { BranchFilters *[]string `json:"branchFilters,omitempty"` // Days for a build (flags enum for days of the week) DaysToBuild *ScheduleDays `json:"daysToBuild,omitempty"` // The Job Id of the Scheduled job that will queue the scheduled build. Since a single trigger can have multiple schedules and we want a single job to process a single schedule (since each schedule has a list of branches to build), the schedule itself needs to define the Job Id. This value will be filled in when a definition is added or updated. The UI does not provide it or use it. ScheduleJobId *uuid.UUID `json:"scheduleJobId,omitempty"` // Flag to determine if this schedule should only build if the associated source has been changed. ScheduleOnlyWithChanges *bool `json:"scheduleOnlyWithChanges,omitempty"` // Local timezone hour to start StartHours *int `json:"startHours,omitempty"` // Local timezone minute to start StartMinutes *int `json:"startMinutes,omitempty"` // Time zone of the build schedule (String representation of the time zone ID) TimeZoneId *string `json:"timeZoneId,omitempty"` }
type ScheduleDays ¶
type ScheduleDays string
type ScheduleTrigger ¶
type ScheduleTrigger struct { // The type of the trigger. TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"` Schedules *[]Schedule `json:"schedules,omitempty"` }
Represents a schedule trigger.
type SecureFileReference ¶
type SecureFileReference struct { // An alias to be used when referencing the resource. Alias *string `json:"alias,omitempty"` // The ID of the secure file. Id *uuid.UUID `json:"id,omitempty"` }
Represents a reference to a secure file.
type ServerTarget ¶
type ServerTarget struct { // The type of the target. Type *int `json:"type,omitempty"` // The execution options. ExecutionOptions *ServerTargetExecutionOptions `json:"executionOptions,omitempty"` }
Represents a phase target that runs on the server.
type ServerTargetExecutionOptions ¶
type ServerTargetExecutionOptions struct { // The type. Type *int `json:"type,omitempty"` }
Represents options for running a phase on the server.
type ServiceEndpointReference ¶
type ServiceEndpointReference struct { // An alias to be used when referencing the resource. Alias *string `json:"alias,omitempty"` // The ID of the service endpoint. Id *uuid.UUID `json:"id,omitempty"` }
Represents a referenec to a service endpoint.
type ServiceHostStatus ¶
type ServiceHostStatus string
type SourceProviderAttributes ¶
type SourceProviderAttributes struct { // The name of the source provider. Name *string `json:"name,omitempty"` // The capabilities supported by this source provider. SupportedCapabilities *map[string]bool `json:"supportedCapabilities,omitempty"` // The types of triggers supported by this source provider. SupportedTriggers *[]SupportedTrigger `json:"supportedTriggers,omitempty"` }
type SourceProviderAvailability ¶
type SourceProviderAvailability string
type SourceRelatedWorkItem ¶
type SourceRelatedWorkItem struct { Links interface{} `json:"_links,omitempty"` // Identity ref for the person that the work item is assigned to. AssignedTo *webapi.IdentityRef `json:"assignedTo,omitempty"` // Current state of the work item, e.g. Active, Resolved, Closed, etc. CurrentState *string `json:"currentState,omitempty"` // Long description for the work item. Description *string `json:"description,omitempty"` // Unique identifier for the work item Id *string `json:"id,omitempty"` // The name of the provider the work item is associated with. ProviderName *string `json:"providerName,omitempty"` // Short name for the work item. Title *string `json:"title,omitempty"` // Type of work item, e.g. Bug, Task, User Story, etc. Type *string `json:"type,omitempty"` }
Represents a work item related to some source item. These are retrieved from Source Providers.
type SourceRepositories ¶
type SourceRepositories struct { // A token used to continue this paged request; 'null' if the request is complete ContinuationToken *string `json:"continuationToken,omitempty"` // The number of repositories requested for each page PageLength *int `json:"pageLength,omitempty"` // A list of repositories Repositories *[]SourceRepository `json:"repositories,omitempty"` // The total number of pages, or '-1' if unknown TotalPageCount *int `json:"totalPageCount,omitempty"` }
A set of repositories returned from the source provider.
type SourceRepository ¶
type SourceRepository struct { // The name of the default branch. DefaultBranch *string `json:"defaultBranch,omitempty"` // The full name of the repository. FullName *string `json:"fullName,omitempty"` // The ID of the repository. Id *string `json:"id,omitempty"` // The friendly name of the repository. Name *string `json:"name,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // The name of the source provider the repository is from. SourceProviderName *string `json:"sourceProviderName,omitempty"` // The URL of the repository. Url *string `json:"url,omitempty"` }
Represents a repository returned from a source provider.
type SourceRepositoryItem ¶
type SourceRepositoryItem struct { // Whether the item is able to have sub-items (e.g., is a folder). IsContainer *bool `json:"isContainer,omitempty"` // The full path of the item, relative to the root of the repository. Path *string `json:"path,omitempty"` // The type of the item (folder, file, etc). Type *string `json:"type,omitempty"` // The URL of the item. Url *string `json:"url,omitempty"` }
Represents an item in a repository from a source provider.
type StageUpdateType ¶
type StageUpdateType string
type SupportLevel ¶
type SupportLevel string
type SupportedTrigger ¶
type SupportedTrigger struct { // The default interval to wait between polls (only relevant when NotificationType is Polling). DefaultPollingInterval *int `json:"defaultPollingInterval,omitempty"` // How the trigger is notified of changes. NotificationType *string `json:"notificationType,omitempty"` // The capabilities supported by this trigger. SupportedCapabilities *map[string]SupportLevel `json:"supportedCapabilities,omitempty"` // The type of trigger. Type *DefinitionTriggerType `json:"type,omitempty"` }
type SvnMappingDetails ¶
type SvnMappingDetails struct { // The depth. Depth *int `json:"depth,omitempty"` // Indicates whether to ignore externals. IgnoreExternals *bool `json:"ignoreExternals,omitempty"` // The local path. LocalPath *string `json:"localPath,omitempty"` // The revision. Revision *string `json:"revision,omitempty"` // The server path. ServerPath *string `json:"serverPath,omitempty"` }
Represents a Subversion mapping entry.
type SvnWorkspace ¶
type SvnWorkspace struct {
Mappings *[]SvnMappingDetails `json:"mappings,omitempty"`
}
Represents a subversion workspace.
type TaskAgentPoolReference ¶
type TaskAgentPoolReference struct { // The pool ID. Id *int `json:"id,omitempty"` // A value indicating whether or not this pool is managed by the service. IsHosted *bool `json:"isHosted,omitempty"` // The pool name. Name *string `json:"name,omitempty"` }
Represents a reference to an agent pool.
type TaskDefinitionReference ¶
type TaskDefinitionReference struct { // The type of task (task or task group). DefinitionType *string `json:"definitionType,omitempty"` // The ID of the task. Id *uuid.UUID `json:"id,omitempty"` // The version of the task. VersionSpec *string `json:"versionSpec,omitempty"` }
A reference to a task definition.
type TaskOrchestrationPlanGroupReference ¶
type TaskOrchestrationPlanGroupReference struct { // The name of the plan group. PlanGroup *string `json:"planGroup,omitempty"` // The project ID. ProjectId *uuid.UUID `json:"projectId,omitempty"` }
Represents a reference to a plan group.
type TaskOrchestrationPlanGroupsStartedEvent ¶
type TaskOrchestrationPlanGroupsStartedEvent struct {
PlanGroups *[]TaskOrchestrationPlanGroupReference `json:"planGroups,omitempty"`
}
type TaskOrchestrationPlanReference ¶
type TaskOrchestrationPlanReference struct { // The type of the plan. OrchestrationType *int `json:"orchestrationType,omitempty"` // The ID of the plan. PlanId *uuid.UUID `json:"planId,omitempty"` }
Represents a reference to an orchestration plan.
type TaskReference ¶
type TaskReference struct { // The ID of the task definition. Id *uuid.UUID `json:"id,omitempty"` // The name of the task definition. Name *string `json:"name,omitempty"` // The version of the task definition. Version *string `json:"version,omitempty"` }
Represents a reference to a task.
type TaskResult ¶
type TaskResult string
type Timeline ¶
type Timeline struct { // The change ID. ChangeId *int `json:"changeId,omitempty"` // The ID of the timeline. Id *uuid.UUID `json:"id,omitempty"` // The REST URL of the timeline. Url *string `json:"url,omitempty"` // The process or person that last changed the timeline. LastChangedBy *uuid.UUID `json:"lastChangedBy,omitempty"` // The time the timeline was last changed. LastChangedOn *azuredevops.Time `json:"lastChangedOn,omitempty"` Records *[]TimelineRecord `json:"records,omitempty"` }
Represents the timeline of a build.
type TimelineAttempt ¶
type TimelineAttempt struct { // Gets or sets the attempt of the record. Attempt *int `json:"attempt,omitempty"` // Gets or sets the record identifier located within the specified timeline. RecordId *uuid.UUID `json:"recordId,omitempty"` // Gets or sets the timeline identifier which owns the record representing this attempt. TimelineId *uuid.UUID `json:"timelineId,omitempty"` }
type TimelineRecord ¶
type TimelineRecord struct { Links interface{} `json:"_links,omitempty"` // Attempt number of record. Attempt *int `json:"attempt,omitempty"` // The change ID. ChangeId *int `json:"changeId,omitempty"` // A string that indicates the current operation. CurrentOperation *string `json:"currentOperation,omitempty"` // A reference to a sub-timeline. Details *TimelineReference `json:"details,omitempty"` // The number of errors produced by this operation. ErrorCount *int `json:"errorCount,omitempty"` // The finish time. FinishTime *azuredevops.Time `json:"finishTime,omitempty"` // The ID of the record. Id *uuid.UUID `json:"id,omitempty"` // String identifier that is consistent across attempts. Identifier *string `json:"identifier,omitempty"` Issues *[]Issue `json:"issues,omitempty"` // The time the record was last modified. LastModified *azuredevops.Time `json:"lastModified,omitempty"` // A reference to the log produced by this operation. Log *BuildLogReference `json:"log,omitempty"` // The name. Name *string `json:"name,omitempty"` // An ordinal value relative to other records. Order *int `json:"order,omitempty"` // The ID of the record's parent. ParentId *uuid.UUID `json:"parentId,omitempty"` // The current completion percentage. PercentComplete *int `json:"percentComplete,omitempty"` PreviousAttempts *[]TimelineAttempt `json:"previousAttempts,omitempty"` // The queue ID of the queue that the operation ran on. QueueId *int `json:"queueId,omitempty"` // The result. Result *TaskResult `json:"result,omitempty"` // The result code. ResultCode *string `json:"resultCode,omitempty"` // The start time. StartTime *azuredevops.Time `json:"startTime,omitempty"` // The state of the record. State *TimelineRecordState `json:"state,omitempty"` // A reference to the task represented by this timeline record. Task *TaskReference `json:"task,omitempty"` // The type of the record. Type *string `json:"type,omitempty"` // The REST URL of the timeline record. Url *string `json:"url,omitempty"` // The number of warnings produced by this operation. WarningCount *int `json:"warningCount,omitempty"` // The name of the agent running the operation. WorkerName *string `json:"workerName,omitempty"` }
Represents an entry in a build's timeline.
type TimelineRecordState ¶
type TimelineRecordState string
type TimelineRecordsUpdatedEvent ¶
type TimelineRecordsUpdatedEvent struct { BuildId *int `json:"buildId,omitempty"` TimelineRecords *[]TimelineRecord `json:"timelineRecords,omitempty"` }
type TimelineReference ¶
type TimelineReference struct { // The change ID. ChangeId *int `json:"changeId,omitempty"` // The ID of the timeline. Id *uuid.UUID `json:"id,omitempty"` // The REST URL of the timeline. Url *string `json:"url,omitempty"` }
Represents a reference to a timeline.
type UpdateBuildArgs ¶
type UpdateBuildArgs struct { // (required) The build. Build *Build // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int // (optional) Retry *bool }
Arguments for the UpdateBuild function
type UpdateBuildGeneralSettingsArgs ¶
type UpdateBuildGeneralSettingsArgs struct { // (required) NewSettings *PipelineGeneralSettings // (required) Project ID or project name Project *string }
Arguments for the UpdateBuildGeneralSettings function
type UpdateBuildPropertiesArgs ¶
type UpdateBuildPropertiesArgs struct { // (required) A json-patch document describing the properties to update. Document *[]webapi.JsonPatchOperation // (required) Project ID or project name Project *string // (required) The ID of the build. BuildId *int }
Arguments for the UpdateBuildProperties function
type UpdateBuildSettingsArgs ¶
type UpdateBuildSettingsArgs struct { // (required) The new settings. Settings *BuildSettings // (optional) Project ID or project name Project *string }
Arguments for the UpdateBuildSettings function
type UpdateBuildsArgs ¶
type UpdateBuildsArgs struct { // (required) The builds to update. Builds *[]Build // (required) Project ID or project name Project *string }
Arguments for the UpdateBuilds function
type UpdateDefinitionArgs ¶
type UpdateDefinitionArgs struct { // (required) The new version of the definition. Definition *BuildDefinition // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int // (optional) SecretsSourceDefinitionId *int // (optional) SecretsSourceDefinitionRevision *int }
Arguments for the UpdateDefinition function
type UpdateDefinitionPropertiesArgs ¶
type UpdateDefinitionPropertiesArgs struct { // (required) A json-patch document describing the properties to update. Document *[]webapi.JsonPatchOperation // (required) Project ID or project name Project *string // (required) The ID of the definition. DefinitionId *int }
Arguments for the UpdateDefinitionProperties function
type UpdateFolderArgs ¶
type UpdateFolderArgs struct { // (required) The new version of the folder. Folder *Folder // (required) Project ID or project name Project *string // (required) The full path to the folder. Path *string }
Arguments for the UpdateFolder function
type UpdateProjectRetentionSettingModel ¶
type UpdateProjectRetentionSettingModel struct { ArtifactsRetention *UpdateRetentionSettingModel `json:"artifactsRetention,omitempty"` PullRequestRunRetention *UpdateRetentionSettingModel `json:"pullRequestRunRetention,omitempty"` RetainRunsPerProtectedBranch *UpdateRetentionSettingModel `json:"retainRunsPerProtectedBranch,omitempty"` RunRetention *UpdateRetentionSettingModel `json:"runRetention,omitempty"` }
Contains members for updating the retention settings values. All fields are optional.
type UpdateRetentionSettingModel ¶
type UpdateRetentionSettingModel struct {
Value *int `json:"value,omitempty"`
}
type UpdateRetentionSettingsArgs ¶
type UpdateRetentionSettingsArgs struct { // (required) UpdateModel *UpdateProjectRetentionSettingModel // (required) Project ID or project name Project *string }
Arguments for the UpdateRetentionSettings function
type UpdateStageArgs ¶
type UpdateStageArgs struct { // (required) UpdateParameters *UpdateStageParameters // (required) BuildId *int // (required) StageRefName *string // (optional) Project ID or project name Project *string }
Arguments for the UpdateStage function
type UpdateStageParameters ¶
type UpdateStageParameters struct {
State *StageUpdateType `json:"state,omitempty"`
}
type ValidationResult ¶
type ValidationResult string
type VariableGroup ¶
type VariableGroup struct { // The Name of the variable group. Alias *string `json:"alias,omitempty"` // The ID of the variable group. Id *int `json:"id,omitempty"` // The description. Description *string `json:"description,omitempty"` // The name of the variable group. Name *string `json:"name,omitempty"` // The type of the variable group. Type *string `json:"type,omitempty"` Variables *map[string]BuildDefinitionVariable `json:"variables,omitempty"` }
Represents a variable group.
type VariableGroupReference ¶
type VariableGroupReference struct { // The Name of the variable group. Alias *string `json:"alias,omitempty"` // The ID of the variable group. Id *int `json:"id,omitempty"` }
Represents a reference to a variable group.
type VariableMultipliersAgentExecutionOptions ¶
type VariableMultipliersAgentExecutionOptions struct { // Indicates the type of execution options. Type *int `json:"type,omitempty"` // Indicates whether failure on one agent should prevent the phase from running on other agents. ContinueOnError *bool `json:"continueOnError,omitempty"` // The maximum number of agents to use in parallel. MaxConcurrency *int `json:"maxConcurrency,omitempty"` Multipliers *[]string `json:"multipliers,omitempty"` }
Represents options for running a phase based on values specified by a list of variables.
type VariableMultipliersServerExecutionOptions ¶
type VariableMultipliersServerExecutionOptions struct { // The type. Type *int `json:"type,omitempty"` // Indicates whether failure of one job should prevent the phase from running in other jobs. ContinueOnError *bool `json:"continueOnError,omitempty"` // The maximum number of server jobs to run in parallel. MaxConcurrency *int `json:"maxConcurrency,omitempty"` Multipliers *[]string `json:"multipliers,omitempty"` }
Represents options for running a phase based on values specified by a list of variables.
type WorkspaceMapping ¶
type WorkspaceMapping struct { // Uri of the associated definition DefinitionUri *string `json:"definitionUri,omitempty"` // Depth of this mapping Depth *int `json:"depth,omitempty"` // local location of the definition LocalItem *string `json:"localItem,omitempty"` // type of workspace mapping MappingType *WorkspaceMappingType `json:"mappingType,omitempty"` // Server location of the definition ServerItem *string `json:"serverItem,omitempty"` // Id of the workspace WorkspaceId *int `json:"workspaceId,omitempty"` }
Mapping for a workspace
type WorkspaceMappingType ¶
type WorkspaceMappingType string
type WorkspaceTemplate ¶
type WorkspaceTemplate struct { // Uri of the associated definition DefinitionUri *string `json:"definitionUri,omitempty"` // The identity that last modified this template LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The last time this template was modified LastModifiedDate *azuredevops.Time `json:"lastModifiedDate,omitempty"` // List of workspace mappings Mappings *[]WorkspaceMapping `json:"mappings,omitempty"` // Id of the workspace for this template WorkspaceId *int `json:"workspaceId,omitempty"` }
type XamlBuildDefinition ¶
type XamlBuildDefinition struct { // The date this version of the definition was created. CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` // The ID of the referenced definition. Id *int `json:"id,omitempty"` // The name of the referenced definition. Name *string `json:"name,omitempty"` // The folder path of the definition. Path *string `json:"path,omitempty"` // A reference to the project. Project *core.TeamProjectReference `json:"project,omitempty"` // A value that indicates whether builds can be queued against this definition. QueueStatus *DefinitionQueueStatus `json:"queueStatus,omitempty"` // The definition revision number. Revision *int `json:"revision,omitempty"` // The type of the definition. Type *DefinitionType `json:"type,omitempty"` // The definition's URI. Uri *string `json:"uri,omitempty"` // The REST URL of the definition. Url *string `json:"url,omitempty"` Links interface{} `json:"_links,omitempty"` // Batch size of the definition BatchSize *int `json:"batchSize,omitempty"` BuildArgs *string `json:"buildArgs,omitempty"` // The continuous integration quiet period ContinuousIntegrationQuietPeriod *int `json:"continuousIntegrationQuietPeriod,omitempty"` // The build controller Controller *BuildController `json:"controller,omitempty"` // The date this definition was created CreatedOn *azuredevops.Time `json:"createdOn,omitempty"` // Default drop location for builds from this definition DefaultDropLocation *string `json:"defaultDropLocation,omitempty"` // Description of the definition Description *string `json:"description,omitempty"` // The last build on this definition LastBuild *XamlBuildReference `json:"lastBuild,omitempty"` // The repository Repository *BuildRepository `json:"repository,omitempty"` // The reasons supported by the template SupportedReasons *BuildReason `json:"supportedReasons,omitempty"` // How builds are triggered from this definition TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"` }
type XamlBuildReference ¶
type XamlDefinitionReference ¶
type YamlProcess ¶
type YamlProcess struct { // The type of the process. Type *int `json:"type,omitempty"` Errors *[]string `json:"errors,omitempty"` // The resources used by the build definition. Resources *BuildProcessResources `json:"resources,omitempty"` // The YAML filename. YamlFilename *string `json:"yamlFilename,omitempty"` }
Represents a YAML process.