From c2944a94c3786828bcb03b89ec48a1e57f967367 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sun, 17 May 2020 12:28:47 -0400 Subject: [PATCH] regen after fixing generator to pull in fields from base classes treated as interfaces. --- azuredevops/build/models.go | 44 ++++++++++++++++-- azuredevops/git/models.go | 51 ++++++++++++++++++++ azuredevops/release/models.go | 77 +++++++++++++++++++++++++++++++ azuredevops/taskagent/models.go | 11 +++++ azuredevops/testservice/models.go | 8 ++++ azuredevops/webapi/models.go | 4 ++ 6 files changed, 192 insertions(+), 3 deletions(-) diff --git a/azuredevops/build/models.go b/azuredevops/build/models.go index 41e3eb33..05f6d955 100644 --- a/azuredevops/build/models.go +++ b/azuredevops/build/models.go @@ -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"` @@ -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"` @@ -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"` @@ -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"` @@ -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. @@ -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"` @@ -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"` } @@ -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. @@ -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. @@ -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"` @@ -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. @@ -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"` diff --git a/azuredevops/git/models.go b/azuredevops/git/models.go index 5b47bf2e..3ba3b552 100644 --- a/azuredevops/git/models.go +++ b/azuredevops/git/models.go @@ -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"` @@ -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"` } @@ -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 @@ -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) diff --git a/azuredevops/release/models.go b/azuredevops/release/models.go index 950782e3..a10416ad 100644 --- a/azuredevops/release/models.go +++ b/azuredevops/release/models.go @@ -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"` } @@ -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"` @@ -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. @@ -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"` @@ -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 @@ -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"` } @@ -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"` } @@ -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"` } @@ -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. @@ -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 { @@ -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"` } @@ -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"` } @@ -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"` diff --git a/azuredevops/taskagent/models.go b/azuredevops/taskagent/models.go index 08ecaf45..defe9b39 100644 --- a/azuredevops/taskagent/models.go +++ b/azuredevops/taskagent/models.go @@ -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 { diff --git a/azuredevops/testservice/models.go b/azuredevops/testservice/models.go index 66bece3f..5d14dba2 100644 --- a/azuredevops/testservice/models.go +++ b/azuredevops/testservice/models.go @@ -703,6 +703,14 @@ type TransactionSummary struct { TransactionName *string `json:"transactionName,omitempty"` } +type Type struct { + Count *int `json:"count,omitempty"` + Occurrences *int `json:"occurrences,omitempty"` + SubTypes *[]SubType `json:"subTypes,omitempty"` + TypeName *string `json:"typeName,omitempty"` + Url *string `json:"url,omitempty"` +} + type WebApiLoadTestMachineInput struct { MachineGroupId *string `json:"machineGroupId,omitempty"` MachineType *LoadTestMachineType `json:"machineType,omitempty"` diff --git a/azuredevops/webapi/models.go b/azuredevops/webapi/models.go index ccf78618..b653f7d9 100644 --- a/azuredevops/webapi/models.go +++ b/azuredevops/webapi/models.go @@ -159,6 +159,10 @@ type JsonPatchOperation struct { } type JsonWebToken struct { + // Gets a value indicating whether or not this token has been successfully authenticated with the remote server. + IsAuthenticated *bool `json:"isAuthenticated,omitempty"` + // Metadata about the token in a collection of properties. + Properties *map[string]string `json:"properties,omitempty"` } type JWTAlgorithm string