Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the LogSettings class.
 /// </summary>
 /// <param name="enabled">a value indicating whether this log is
 /// enabled.</param>
 /// <param name="category">Name of a Diagnostic Log category for a
 /// resource type this setting is applied to. To obtain the list of
 /// Diagnostic Log categories for a resource, first perform a GET
 /// diagnostic settings operation.</param>
 /// <param name="retentionPolicy">the retention policy for this
 /// log.</param>
 public LogSettings(bool enabled, string category = default(string), RetentionPolicy retentionPolicy = default(RetentionPolicy))
 {
     Category        = category;
     Enabled         = enabled;
     RetentionPolicy = retentionPolicy;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the MetricSettings class.
 /// </summary>
 /// <param name="enabled">a value indicating whether this category is
 /// enabled.</param>
 /// <param name="timeGrain">the timegrain of the metric in ISO8601
 /// format.</param>
 /// <param name="category">Name of a Diagnostic Metric category for a
 /// resource type this setting is applied to. To obtain the list of
 /// Diagnostic metric categories for a resource, first perform a GET
 /// diagnostic settings operation.</param>
 /// <param name="retentionPolicy">the retention policy for this
 /// category.</param>
 public MetricSettings(bool enabled, System.TimeSpan?timeGrain = default(System.TimeSpan?), string category = default(string), RetentionPolicy retentionPolicy = default(RetentionPolicy))
 {
     TimeGrain       = timeGrain;
     Category        = category;
     Enabled         = enabled;
     RetentionPolicy = retentionPolicy;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the LogProfileResourcePatch class.
 /// </summary>
 /// <param name="locations">List of regions for which Activity Log
 /// events should be stored or streamed. It is a comma separated list
 /// of valid ARM locations including the 'global' location.</param>
 /// <param name="categories">the categories of the logs. These
 /// categories are created as is convenient to the user. Some values
 /// are: 'Write', 'Delete', and/or 'Action.'</param>
 /// <param name="retentionPolicy">the retention policy for the events
 /// in the log.</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="storageAccountId">the resource id of the storage
 /// account to which you would like to send the Activity Log.</param>
 /// <param name="serviceBusRuleId">The service bus rule ID of the
 /// service bus namespace in which you would like to have Event Hubs
 /// created for streaming the Activity Log. The rule ID is of the
 /// format: '{service bus resource ID}/authorizationrules/{key
 /// name}'.</param>
 public LogProfileResourcePatch(IList <string> locations, IList <string> categories, RetentionPolicy retentionPolicy, IDictionary <string, string> tags = default(IDictionary <string, string>), string storageAccountId = default(string), string serviceBusRuleId = default(string))
 {
     Tags             = tags;
     StorageAccountId = storageAccountId;
     ServiceBusRuleId = serviceBusRuleId;
     Locations        = locations;
     Categories       = categories;
     RetentionPolicy  = retentionPolicy;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the LogProfileResource class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="locations">List of regions for which Activity Log
 /// events should be stored or streamed. It is a comma separated list
 /// of valid ARM locations including the 'global' location.</param>
 /// <param name="categories">the categories of the logs. These
 /// categories are created as is convenient to the user. Some values
 /// are: 'Write', 'Delete', and/or 'Action.'</param>
 /// <param name="retentionPolicy">the retention policy for the events
 /// in the log.</param>
 /// <param name="id">Azure resource Id</param>
 /// <param name="name">Azure resource name</param>
 /// <param name="type">Azure resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="storageAccountId">the resource id of the storage
 /// account to which you would like to send the Activity Log.</param>
 /// <param name="serviceBusRuleId">The service bus rule ID of the
 /// service bus namespace in which you would like to have Event Hubs
 /// created for streaming the Activity Log. The rule ID is of the
 /// format: '{service bus resource ID}/authorizationrules/{key
 /// name}'.</param>
 public LogProfileResource(string location, IList <string> locations, IList <string> categories, RetentionPolicy retentionPolicy, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string storageAccountId = default(string), string serviceBusRuleId = default(string))
     : base(location, id, name, type, tags)
 {
     StorageAccountId = storageAccountId;
     ServiceBusRuleId = serviceBusRuleId;
     Locations        = locations;
     Categories       = categories;
     RetentionPolicy  = retentionPolicy;
     CustomInit();
 }