-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProject.cs
More file actions
54 lines (50 loc) · 2.56 KB
/
Copy pathProject.cs
File metadata and controls
54 lines (50 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.Linq;
namespace OctopusProjectBuilder.Model
{
public class Project : IVariableSet
{
public Project(ElementIdentifier identifier, string description, bool isDisabled, bool autoCreateRelease, bool defaultToSkipIfAlreadyInstalled, DeploymentProcess deploymentProcess, IEnumerable<Variable> variables, IEnumerable<ElementReference> libraryVariableSetRefs, ElementReference lifecycleRef, ElementReference projectGroupRef, VersioningStrategy versioningStrategy, IEnumerable<ProjectTrigger> triggers, TenantedDeploymentMode tenantedDeploymentMode)
{
if (identifier == null)
throw new ArgumentNullException(nameof(identifier));
if (deploymentProcess == null)
throw new ArgumentNullException(nameof(deploymentProcess));
if (libraryVariableSetRefs == null)
throw new ArgumentNullException(nameof(libraryVariableSetRefs));
if (triggers == null)
throw new ArgumentNullException(nameof(triggers));
Identifier = identifier;
Description = description;
IsDisabled = isDisabled;
AutoCreateRelease = autoCreateRelease;
DefaultToSkipIfAlreadyInstalled = defaultToSkipIfAlreadyInstalled;
DeploymentProcess = deploymentProcess;
IncludedLibraryVariableSetRefs = libraryVariableSetRefs.ToArray();
Variables = variables.ToArray();
LifecycleRef = lifecycleRef;
ProjectGroupRef = projectGroupRef;
VersioningStrategy = versioningStrategy;
Triggers = triggers.ToArray();
TenantedDeploymentMode = tenantedDeploymentMode;
}
public ElementIdentifier Identifier { get; }
public string Description { get; }
public bool IsDisabled { get; }
public bool AutoCreateRelease { get; }
public bool DefaultToSkipIfAlreadyInstalled { get; }
public DeploymentProcess DeploymentProcess { get; }
public IEnumerable<ElementReference> IncludedLibraryVariableSetRefs { get; }
public ElementReference LifecycleRef { get; }
public ElementReference ProjectGroupRef { get; }
public IEnumerable<Variable> Variables { get; }
public VersioningStrategy VersioningStrategy { get; }
public IEnumerable<ProjectTrigger> Triggers { get; }
public TenantedDeploymentMode TenantedDeploymentMode { get; }
public override string ToString()
{
return Identifier.ToString();
}
}
}