public PSDataBoxEdgeTrigger(Trigger trigger, string kind) { this.Trigger = trigger ?? throw new ArgumentNullException("trigger"); this.Id = trigger.Id; var resourceIdentifier = new DataBoxEdgeResourceIdentifier(trigger.Id); this.ResourceGroupName = resourceIdentifier.ResourceGroupName; this.DeviceName = resourceIdentifier.DeviceName; this.Name = resourceIdentifier.ResourceName; this.Kind = kind; }
public static PSDataBoxEdgeTrigger PSDataBoxEdgeTriggerObject(Trigger trigger) { switch (trigger) { case FileEventTrigger fileEventTrigger: return(new PSDataBoxEdgeTrigger(fileEventTrigger, "FileEventTrigger")); case PeriodicTimerEventTrigger periodicTimerEventTrigger: return(new PSDataBoxEdgeTrigger(periodicTimerEventTrigger, "PeriodicTimerEventTrigger")); } return(null); }
public PSDataBoxEdgeTrigger() { Trigger = new Trigger(); }