From f1eb7143439c706e1925427731ff49a66887d261 Mon Sep 17 00:00:00 2001 From: Bec Callow Date: Thu, 9 Jan 2025 13:15:25 +1000 Subject: [PATCH] Add deployment freeze override fields to the command --- pkg/deployments/deploy_release_v1.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkg/deployments/deploy_release_v1.go b/pkg/deployments/deploy_release_v1.go index ec14ad2d..d68b3c07 100644 --- a/pkg/deployments/deploy_release_v1.go +++ b/pkg/deployments/deploy_release_v1.go @@ -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 {