Exemple #1
0
 public ProjectTriggerProperties ToModel()
 {
     return(new ProjectTriggerProperties(
                Events.EnsureNotNull(),
                RoleRefs.EnsureNotNull().Select(r => new ElementReference(r)),
                EnvironmentRefs.EnsureNotNull().Select(r => new ElementReference(r))));
 }
 public ProjectTriggerMachineFilter ToModel()
 {
     return(new ProjectTriggerMachineFilter(
                EnvironmentRefs.EnsureNotNull().Select(r => new ElementReference(r)),
                RoleRefs.EnsureNotNull().Select(r => new ElementReference(r)),
                EventGroupRefs.EnsureNotNull().Select(r => new ElementReference(r)),
                EventCategoryRefs.EnsureNotNull().Select(r => new ElementReference(r))));
 }
 public DeploymentAction ToModel()
 {
     return(new DeploymentAction(
                Name,
                ActionType,
                YamlPropertyValue.ToModel(Properties),
                EnvironmentRefs.EnsureNotNull().Select(name => new ElementReference(name)),
                ChannelRefs.EnsureNotNull().Select(name => new ElementReference(name))
                ));
 }