Skip to content

Commit

Permalink
Merge pull request #529 from OctopusDeploy/enh-add-runbook-environmen…
Browse files Browse the repository at this point in the history
…t-scope

Adds Environments and Scope to RunbookResource
  • Loading branch information
andrewabest authored Jun 11, 2020
2 parents 1303eaf + 07ce450 commit 3b8e237
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4260,6 +4260,12 @@ Octopus.Client.Model
Boolean IsEarlyAccessProgram { get; set; }
String Version { get; set; }
}
RunbookEnvironmentScope
{
All = 0
Specified = 1
FromProjectLifecycles = 2
}
class RunbookProcessResource
Octopus.Client.Extensibility.IResource
Octopus.Client.Model.IAuditedResource
Expand Down Expand Up @@ -4289,6 +4295,8 @@ Octopus.Client.Model
.ctor()
Octopus.Client.Model.ProjectConnectivityPolicy ConnectivityPolicy { get; set; }
String Description { get; set; }
Octopus.Client.Model.ReferenceCollection Environments { get; }
Octopus.Client.Model.RunbookEnvironmentScope EnvironmentScope { get; set; }
Octopus.Client.Model.TenantedDeploymentMode MultiTenancyMode { get; set; }
String Name { get; set; }
String ProjectId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4279,6 +4279,12 @@ Octopus.Client.Model
Boolean IsEarlyAccessProgram { get; set; }
String Version { get; set; }
}
RunbookEnvironmentScope
{
All = 0
Specified = 1
FromProjectLifecycles = 2
}
class RunbookProcessResource
Octopus.Client.Extensibility.IResource
Octopus.Client.Model.IAuditedResource
Expand Down Expand Up @@ -4308,6 +4314,8 @@ Octopus.Client.Model
.ctor()
Octopus.Client.Model.ProjectConnectivityPolicy ConnectivityPolicy { get; set; }
String Description { get; set; }
Octopus.Client.Model.ReferenceCollection Environments { get; }
Octopus.Client.Model.RunbookEnvironmentScope EnvironmentScope { get; set; }
Octopus.Client.Model.TenantedDeploymentMode MultiTenancyMode { get; set; }
String Name { get; set; }
String ProjectId { get; set; }
Expand Down
9 changes: 9 additions & 0 deletions source/Octopus.Client/Model/RunbookEnvironmentScope.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Octopus.Client.Model
{
public enum RunbookEnvironmentScope
{
All = 0,
Specified,
FromProjectLifecycles,
}
}
6 changes: 6 additions & 0 deletions source/Octopus.Client/Model/RunbookResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,11 @@ public class RunbookResource : Resource, INamedResource, IHaveSpaceResource
[Writeable]
[JsonProperty(ObjectCreationHandling = ObjectCreationHandling.Replace)]
public ProjectConnectivityPolicy ConnectivityPolicy { get; set; } = new ProjectConnectivityPolicy() { AllowDeploymentsToNoTargets = true};

[Writeable]
public RunbookEnvironmentScope EnvironmentScope { get; set; }

[JsonProperty(ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public ReferenceCollection Environments { get; } = new ReferenceCollection();
}
}

0 comments on commit 3b8e237

Please sign in to comment.