Skip to content

Commit

Permalink
Add deployment freeze override fields to the command
Browse files Browse the repository at this point in the history
  • Loading branch information
bec-callow-oct committed Jan 9, 2025
1 parent 8c18615 commit f1eb714
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions pkg/deployments/deploy_release_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ import (

type CreateExecutionAbstractCommandV1 struct {
// also has awkward SpaceIDOrName; see CreateReleaseV1 for explanation
SpaceID string `json:"spaceId"`
ProjectIDOrName string `json:"projectName"`
ForcePackageDownload bool `json:"forcePackageDownload"`
SpecificMachineNames []string `json:"specificMachineNames,omitempty"`
ExcludedMachineNames []string `json:"excludedMachineNames,omitempty"`
SkipStepNames []string `json:"skipStepNames,omitempty"`
UseGuidedFailure *bool `json:"useGuidedFailure"` // note: nil is valid, meaning 'use default'
RunAt string `json:"runAt,omitempty"` // contains a datetimeOffset-parseable value
NoRunAfter string `json:"noRunAfter,omitempty"` // contains a datetimeOffset-parseable value
Variables map[string]string `json:"variables,omitempty"`
SpaceID string `json:"spaceId"`
ProjectIDOrName string `json:"projectName"`
ForcePackageDownload bool `json:"forcePackageDownload"`
SpecificMachineNames []string `json:"specificMachineNames,omitempty"`
ExcludedMachineNames []string `json:"excludedMachineNames,omitempty"`
SkipStepNames []string `json:"skipStepNames,omitempty"`
UseGuidedFailure *bool `json:"useGuidedFailure"` // note: nil is valid, meaning 'use default'
RunAt string `json:"runAt,omitempty"` // contains a datetimeOffset-parseable value
NoRunAfter string `json:"noRunAfter,omitempty"` // contains a datetimeOffset-parseable value
Variables map[string]string `json:"variables,omitempty"`
DeploymentFreezeNames []string `json:"deploymentFreezeNames,omitempty"`
DeploymentFreezeOverrideReason string `json:"deploymentFreezeOverrideReason,omitempty"`
}

type DeploymentServerTask struct {
Expand Down

0 comments on commit f1eb714

Please sign in to comment.