-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #900 from OctopusDeploy/dylan/runbook-clients
Add Config as Code Runbooks support
- Loading branch information
Showing
10 changed files
with
515 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Octopus.Client.Model | ||
{ | ||
public class ModifyRunbookCommand : RunbookResource, ICommitCommand | ||
{ | ||
public string ChangeDescription { get; set; } | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
source/Octopus.Server.Client/Model/ModifyRunbookProcessCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Octopus.Client.Model | ||
{ | ||
public class ModifyRunbookProcessCommand : RunbookProcessResource, ICommitCommand | ||
{ | ||
public string ChangeDescription { get; set; } | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
source/Octopus.Server.Client/Model/RunbookRunGitParameters.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace Octopus.Client.Model | ||
{ | ||
public class RunGitRunbookParameters(GitRunbookRunParameters[] runs) | ||
{ | ||
public GitRunbookRunParameters[] Runs { get; set; } = runs; | ||
public string Notes { get; set; } | ||
public List<SelectedPackage> SelectedPackages { get; set; } = new(); | ||
public List<SelectedGitResource> SelectedGitResources { get; set; } = new(); | ||
} | ||
|
||
public class GitRunbookRunParameters(string environmentId) | ||
{ | ||
public string EnvironmentId { get; set; } = environmentId; | ||
|
||
public string TenantId { get; set; } | ||
|
||
public bool ForcePackageDownload { get; set; } = false; | ||
|
||
public string[] SkipActions { get; set; } = []; | ||
|
||
public string[] SpecificMachineIds { get; set; } = []; | ||
|
||
public string[] ExcludedMachineIds { get; set; } = []; | ||
|
||
public bool UseGuidedFailure { get; set; } = false; | ||
|
||
public Dictionary<string, string> FormValues { get; set; } = new(); | ||
|
||
public DateTimeOffset? QueueTime { get; set; } | ||
|
||
public DateTimeOffset? QueueTimeExpiry { get; set; } | ||
|
||
public string Comments { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
source/Octopus.Server.Client/Model/RunbookRunGitResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace Octopus.Client.Model; | ||
|
||
public class RunbookRunGitResource(RunbookRunResource[] resources) | ||
{ | ||
public RunbookRunResource[] Resources { get; set; } = resources; | ||
} |
15 changes: 15 additions & 0 deletions
15
source/Octopus.Server.Client/Model/RunbookRunPreviewParameters.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Octopus.Client.Model; | ||
|
||
public class RunbookRunPreviewParameters(RunbookRunPreviewTarget[] deploymentPreviews) | ||
{ | ||
public RunbookRunPreviewTarget[] DeploymentPreviews { get; set; } = deploymentPreviews; | ||
public bool IncludeDisabledSteps { get; set; } | ||
} | ||
|
||
public class RunbookRunPreviewTarget(string environmentId) | ||
{ | ||
|
||
public string EnvironmentId { get; set; } = environmentId; | ||
|
||
public string TenantId { get; set; } | ||
} |
Oops, something went wrong.