Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regen after fixing generator to pull in fields from base classes treated as interfaces. #68

Merged
merged 1 commit into from
May 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 41 additions & 3 deletions azuredevops/build/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ type BuildCompletedEvent struct {

// Represents a build completion trigger.
type BuildCompletionTrigger struct {
BranchFilters *[]string `json:"branchFilters,omitempty"`
// 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"`
Expand Down Expand Up @@ -773,6 +775,12 @@ var BuildPhaseStatusValues = buildPhaseStatusValuesType{
Succeeded: "succeeded",
}

// Represents a build process.
type BuildProcess struct {
// The type of the process.
Type *int `json:"type,omitempty"`
}

// Represents resources used by a build process.
type BuildProcessResources struct {
Endpoints *[]ServiceEndpointReference `json:"endpoints,omitempty"`
Expand Down Expand Up @@ -1059,6 +1067,12 @@ type BuildTagsAddedEvent struct {
NewTags *[]string `json:"newTags,omitempty"`
}

// Represents a trigger for a buld definition.
type BuildTrigger struct {
// The type of the trigger.
TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"`
}

type BuildUpdatedEvent struct {
BuildId *int `json:"buildId,omitempty"`
Build *Build `json:"build,omitempty"`
Expand Down Expand Up @@ -1116,6 +1130,8 @@ type ContinuousDeploymentDefinition struct {

// Represents a continuous integration (CI) trigger.
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"`
Expand Down Expand Up @@ -1310,6 +1326,14 @@ var DeleteOptionsValues = deleteOptionsValuesType{
All: "all",
}

// Represents a demand used by a definition or build.
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 dependency.
type Dependency struct {
// The event. The dependency is satisfied when the referenced object emits this event.
Expand Down Expand Up @@ -1343,6 +1367,8 @@ type DeploymentTest struct {

// Represents a build process supported by the build definition designer.
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"`
Expand All @@ -1355,6 +1381,8 @@ type DesignerProcessTarget struct {
}

type DockerProcess struct {
// The type of the process.
Type *int `json:"type,omitempty"`
Target *DockerProcessTarget `json:"target,omitempty"`
}

Expand Down Expand Up @@ -1410,7 +1438,9 @@ type Forks struct {

// Represents a gated check-in trigger.
type GatedCheckInTrigger struct {
PathFilters *[]string `json:"pathFilters,omitempty"`
// 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.
Expand Down Expand Up @@ -1474,6 +1504,8 @@ var IssueTypeValues = issueTypeValuesType{
}

type JustInTimeProcess struct {
// The type of the process.
Type *int `json:"type,omitempty"`
}

// Represents an entry in a workspace mapping.
Expand Down Expand Up @@ -1568,6 +1600,8 @@ type PullRequest struct {

// Represents a pull request trigger.
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"`
Expand Down Expand Up @@ -1752,7 +1786,9 @@ var ScheduleDaysValues = scheduleDaysValuesType{

// Represents a schedule trigger.
type ScheduleTrigger struct {
Schedules *[]Schedule `json:"schedules,omitempty"`
// The type of the trigger.
TriggerType *DefinitionTriggerType `json:"triggerType,omitempty"`
Schedules *[]Schedule `json:"schedules,omitempty"`
}

// Represents a reference to a secure file.
Expand Down Expand Up @@ -2293,6 +2329,8 @@ type XamlDefinitionReference struct {

// Represents a YAML process.
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"`
Expand Down
51 changes: 51 additions & 0 deletions azuredevops/git/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,25 @@ type GitBranchStats struct {
Name *string `json:"name,omitempty"`
}

type GitChange struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// ID of the change within the group of changes.
ChangeId *int `json:"changeId,omitempty"`
// New Content template to be used when pushing new changes.
NewContentTemplate *GitTemplate `json:"newContentTemplate,omitempty"`
// Original path of item if different from current path.
OriginalPath *string `json:"originalPath,omitempty"`
}

// This object is returned from Cherry Pick operations and provides the id and status of the operation
type GitCherryPick struct {
Links interface{} `json:"_links,omitempty"`
Expand Down Expand Up @@ -1422,6 +1441,22 @@ type GitPullRequest struct {

// Change made in a pull request.
type GitPullRequestChange struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// ID of the change within the group of changes.
ChangeId *int `json:"changeId,omitempty"`
// New Content template to be used when pushing new changes.
NewContentTemplate *GitTemplate `json:"newContentTemplate,omitempty"`
// Original path of item if different from current path.
OriginalPath *string `json:"originalPath,omitempty"`
// ID used to track files through multiple changes.
ChangeTrackingId *int `json:"changeTrackingId,omitempty"`
}
Expand Down Expand Up @@ -2770,6 +2805,16 @@ type TfvcBranchRef struct {
}

type TfvcChange struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// List of merge sources in case of rename or branch creation.
MergeSources *[]TfvcMergeSource `json:"mergeSources,omitempty"`
// Version at which a (shelved) change was pended against
Expand Down Expand Up @@ -2866,6 +2911,12 @@ type TfvcCheckinEventData struct {
}

type TfvcHistoryEntry struct {
// The Change list (changeset/commit/shelveset) for this point in history
ChangeList interface{} `json:"changeList,omitempty"`
// The change made to the item from this change list (only relevant for File history, not folders)
ItemChangeType *VersionControlChangeType `json:"itemChangeType,omitempty"`
// The path of the item at this point in history (only relevant for File history, not folders)
ServerItem *string `json:"serverItem,omitempty"`
// The encoding of the item at this point in history (only relevant for File history, not folders)
Encoding *int `json:"encoding,omitempty"`
// The file id of the item at this point in history (only relevant for File history, not folders)
Expand Down
77 changes: 77 additions & 0 deletions azuredevops/release/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ var AgentArtifactTypeValues = agentArtifactTypeValuesType{
}

type AgentBasedDeployPhase struct {
// Gets and sets the name of deploy phase.
Name *string `json:"name,omitempty"`
// Indicates the deploy phase type.
PhaseType *DeployPhaseTypes `json:"phaseType,omitempty"`
// Gets and sets the rank of deploy phase.
Rank *int `json:"rank,omitempty"`
// Gets and sets the reference name of deploy phase.
RefName *string `json:"refName,omitempty"`
// Gets and sets the workflow tasks for the deploy phase.
WorkflowTasks *[]WorkflowTask `json:"workflowTasks,omitempty"`
// Gets and sets the agent job deployment input
DeploymentInput *AgentDeploymentInput `json:"deploymentInput,omitempty"`
}
Expand Down Expand Up @@ -317,6 +327,8 @@ type ArtifactSourceReference struct {
}

type ArtifactSourceTrigger struct {
// Type of release trigger.
TriggerType *ReleaseTriggerType `json:"triggerType,omitempty"`
// Artifact source alias for Artifact Source trigger type
ArtifactAlias *string `json:"artifactAlias,omitempty"`
TriggerConditions *[]ArtifactFilter `json:"triggerConditions,omitempty"`
Expand Down Expand Up @@ -561,6 +573,8 @@ type Consumer struct {
}

type ContainerImageTrigger struct {
// Type of release trigger.
TriggerType *ReleaseTriggerType `json:"triggerType,omitempty"`
// Alias of the trigger.
Alias *string `json:"alias,omitempty"`
// List tag filters applied while trigger.
Expand Down Expand Up @@ -639,6 +653,13 @@ type DefinitionEnvironmentReference struct {
ReleaseDefinitionName *string `json:"releaseDefinitionName,omitempty"`
}

type Demand struct {
// Gets and sets the name of demand.
Name *string `json:"name,omitempty"`
// Gets and sets the value of demand.
Value *string `json:"value,omitempty"`
}

type Deployment struct {
// Deprecated: Use ReleaseReference instead.
Links interface{} `json:"_links,omitempty"`
Expand Down Expand Up @@ -1010,6 +1031,19 @@ var DeploymentStatusValues = deploymentStatusValuesType{
All: "all",
}

type DeployPhase struct {
// Gets and sets the name of deploy phase.
Name *string `json:"name,omitempty"`
// Indicates the deploy phase type.
PhaseType *DeployPhaseTypes `json:"phaseType,omitempty"`
// Gets and sets the rank of deploy phase.
Rank *int `json:"rank,omitempty"`
// Gets and sets the reference name of deploy phase.
RefName *string `json:"refName,omitempty"`
// Gets and sets the workflow tasks for the deploy phase.
WorkflowTasks *[]WorkflowTask `json:"workflowTasks,omitempty"`
}

// [Flags]
type DeployPhaseStatus string

Expand Down Expand Up @@ -1253,6 +1287,16 @@ type GatesDeploymentInput struct {
}

type GatesDeployPhase struct {
// Gets and sets the name of deploy phase.
Name *string `json:"name,omitempty"`
// Indicates the deploy phase type.
PhaseType *DeployPhaseTypes `json:"phaseType,omitempty"`
// Gets and sets the rank of deploy phase.
Rank *int `json:"rank,omitempty"`
// Gets and sets the reference name of deploy phase.
RefName *string `json:"refName,omitempty"`
// Gets and sets the workflow tasks for the deploy phase.
WorkflowTasks *[]WorkflowTask `json:"workflowTasks,omitempty"`
// Gets and sets the gate job input.
DeploymentInput *GatesDeploymentInput `json:"deploymentInput,omitempty"`
}
Expand Down Expand Up @@ -1355,6 +1399,16 @@ type JenkinsArtifactDownloadInput struct {
}

type MachineGroupBasedDeployPhase struct {
// Gets and sets the name of deploy phase.
Name *string `json:"name,omitempty"`
// Indicates the deploy phase type.
PhaseType *DeployPhaseTypes `json:"phaseType,omitempty"`
// Gets and sets the rank of deploy phase.
Rank *int `json:"rank,omitempty"`
// Gets and sets the reference name of deploy phase.
RefName *string `json:"refName,omitempty"`
// Gets and sets the workflow tasks for the deploy phase.
WorkflowTasks *[]WorkflowTask `json:"workflowTasks,omitempty"`
// Gets and sets the deployment group job input
DeploymentInput *MachineGroupDeploymentInput `json:"deploymentInput,omitempty"`
}
Expand Down Expand Up @@ -1521,6 +1575,8 @@ type MultiMachineInput struct {
}

type PackageTrigger struct {
// Type of release trigger.
TriggerType *ReleaseTriggerType `json:"triggerType,omitempty"`
// Package trigger alias.
Alias *string `json:"alias,omitempty"`
}
Expand Down Expand Up @@ -1619,6 +1675,8 @@ var PullRequestSystemTypeValues = pullRequestSystemTypeValuesType{
}

type PullRequestTrigger struct {
// Type of release trigger.
TriggerType *ReleaseTriggerType `json:"triggerType,omitempty"`
// Artifact alias trigger is linked to.
ArtifactAlias *string `json:"artifactAlias,omitempty"`
// Code reference details of pull request.
Expand Down Expand Up @@ -2604,6 +2662,11 @@ type ReleaseTasksUpdatedEvent struct {
Tasks *[]ReleaseTask `json:"tasks,omitempty"`
}

type ReleaseTriggerBase struct {
// Type of release trigger.
TriggerType *ReleaseTriggerType `json:"triggerType,omitempty"`
}

type ReleaseTriggerType string

type releaseTriggerTypeValuesType struct {
Expand Down Expand Up @@ -2683,6 +2746,16 @@ type RetentionSettings struct {
}

type RunOnServerDeployPhase struct {
// Gets and sets the name of deploy phase.
Name *string `json:"name,omitempty"`
// Indicates the deploy phase type.
PhaseType *DeployPhaseTypes `json:"phaseType,omitempty"`
// Gets and sets the rank of deploy phase.
Rank *int `json:"rank,omitempty"`
// Gets and sets the reference name of deploy phase.
RefName *string `json:"refName,omitempty"`
// Gets and sets the workflow tasks for the deploy phase.
WorkflowTasks *[]WorkflowTask `json:"workflowTasks,omitempty"`
// Gets and sets the agentless job input.
DeploymentInput *ServerDeploymentInput `json:"deploymentInput,omitempty"`
}
Expand Down Expand Up @@ -2723,6 +2796,8 @@ var ScheduleDaysValues = scheduleDaysValuesType{
}

type ScheduledReleaseTrigger struct {
// Type of release trigger.
TriggerType *ReleaseTriggerType `json:"triggerType,omitempty"`
// Release schedule for Scheduled Release trigger type.
Schedule *ReleaseSchedule `json:"schedule,omitempty"`
}
Expand Down Expand Up @@ -2790,6 +2865,8 @@ type SourcePullRequestVersion struct {
}

type SourceRepoTrigger struct {
// Type of release trigger.
TriggerType *ReleaseTriggerType `json:"triggerType,omitempty"`
// Alias of the source repo trigger.
Alias *string `json:"alias,omitempty"`
BranchFilters *[]string `json:"branchFilters,omitempty"`
Expand Down
11 changes: 11 additions & 0 deletions azuredevops/taskagent/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,24 @@ type DataSourceDetails struct {
ResultSelector *string `json:"resultSelector,omitempty"`
}

type Demand struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}

type DemandEquals struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}

type DemandExists struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}

type DemandMinimumVersion struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}

type DependencyBinding struct {
Expand Down
Loading