ArmSecurityCenterModelFactory.DeviceSecurityGroupData Method

Definition

Initializes a new instance of DeviceSecurityGroupData.

public static Azure.ResourceManager.SecurityCenter.DeviceSecurityGroupData DeviceSecurityGroupData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.ThresholdCustomAlertRule> thresholdRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.TimeWindowCustomAlertRule> timeWindowRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.AllowlistCustomAlertRule> allowlistRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.DenylistCustomAlertRule> denylistRules = default);
static member DeviceSecurityGroupData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * seq<Azure.ResourceManager.SecurityCenter.Models.ThresholdCustomAlertRule> * seq<Azure.ResourceManager.SecurityCenter.Models.TimeWindowCustomAlertRule> * seq<Azure.ResourceManager.SecurityCenter.Models.AllowlistCustomAlertRule> * seq<Azure.ResourceManager.SecurityCenter.Models.DenylistCustomAlertRule> -> Azure.ResourceManager.SecurityCenter.DeviceSecurityGroupData
Public Shared Function DeviceSecurityGroupData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional thresholdRules As IEnumerable(Of ThresholdCustomAlertRule) = Nothing, Optional timeWindowRules As IEnumerable(Of TimeWindowCustomAlertRule) = Nothing, Optional allowlistRules As IEnumerable(Of AllowlistCustomAlertRule) = Nothing, Optional denylistRules As IEnumerable(Of DenylistCustomAlertRule) = Nothing) As DeviceSecurityGroupData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

allowlistRules
IEnumerable<AllowlistCustomAlertRule>

The allow-list custom alert rules. Please note AllowlistCustomAlertRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ConnectionFromIPNotAllowed, ConnectionToIPNotAllowed, LocalUserNotAllowed and ProcessNotAllowed.

denylistRules
IEnumerable<DenylistCustomAlertRule>

The deny-list custom alert rules.

Returns

A new DeviceSecurityGroupData instance for mocking.

Applies to