public InitializeAutoscaleProfile ( List |
||
rules | List |
|
Résultat | void |
private AutoscaleProfile CreateAutoscaleProfile(List <ScaleRule> autoscaleRules = null, bool fixedDate = true) { var autoscaleProfileCmd = new NewAzureRmAutoscaleProfileTests(); autoscaleProfileCmd.InitializeAutoscaleProfile(autoscaleRules); if (fixedDate) { autoscaleProfileCmd.InitializeForFixedDate(); } else { autoscaleProfileCmd.InitializeForRecurrentSchedule(); } return(autoscaleProfileCmd.Cmdlet.CreateSettingProfile()); }
private AutoscaleProfile CreateAutoscaleProfile(List<ScaleRule> autoscaleRules = null, bool fixedDate = true) { var autoscaleProfileCmd = new NewAzureRmAutoscaleProfileTests(); autoscaleProfileCmd.InitializeAutoscaleProfile(autoscaleRules); if (fixedDate) { autoscaleProfileCmd.InitializeForFixedDate(); } else { autoscaleProfileCmd.InitializeForRecurrentSchedule(); } return autoscaleProfileCmd.Cmdlet.CreateSettingProfile(); }