Example #1
0
 /// <summary>
 /// Initializes a new instance of the AutomationRule class.
 /// </summary>
 /// <param name="displayName">The display name of the automation
 /// rule</param>
 /// <param name="order">The order of execution of the automation
 /// rule</param>
 /// <param name="triggeringLogic">The triggering logic of the
 /// automation rule</param>
 /// <param name="actions">The actions to execute when the automation
 /// rule is triggered</param>
 /// <param name="id">Fully qualified resource ID for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. E.g.
 /// "Microsoft.Compute/virtualMachines" or
 /// "Microsoft.Storage/storageAccounts"</param>
 /// <param name="systemData">Azure Resource Manager metadata containing
 /// createdBy and modifiedBy information.</param>
 /// <param name="etag">Etag of the azure resource</param>
 /// <param name="createdTimeUtc">The time the automation rule was
 /// created</param>
 /// <param name="lastModifiedTimeUtc">The last time the automation rule
 /// was updated</param>
 /// <param name="createdBy">Describes the client that created the
 /// automation rule</param>
 /// <param name="lastModifiedBy">Describes the client that last updated
 /// the automation rule</param>
 public AutomationRule(string displayName, int order, AutomationRuleTriggeringLogic triggeringLogic, IList <AutomationRuleAction> actions, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string etag = default(string), System.DateTime?createdTimeUtc = default(System.DateTime?), System.DateTime?lastModifiedTimeUtc = default(System.DateTime?), ClientInfo createdBy = default(ClientInfo), ClientInfo lastModifiedBy = default(ClientInfo))
     : base(id, name, type, systemData, etag)
 {
     DisplayName         = displayName;
     Order               = order;
     TriggeringLogic     = triggeringLogic;
     Actions             = actions;
     CreatedTimeUtc      = createdTimeUtc;
     LastModifiedTimeUtc = lastModifiedTimeUtc;
     CreatedBy           = createdBy;
     LastModifiedBy      = lastModifiedBy;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the AutomationRule class.
 /// </summary>
 public AutomationRule()
 {
     TriggeringLogic = new AutomationRuleTriggeringLogic();
     CustomInit();
 }