Freigeben über


ArmPostgreSqlFlexibleServersModelFactory.ServerThreatProtectionSettingsModelData Method

Definition

Initializes a new instance of ServerThreatProtectionSettingsModelData.

public static Azure.ResourceManager.PostgreSql.FlexibleServers.ServerThreatProtectionSettingsModelData ServerThreatProtectionSettingsModelData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ThreatProtectionState? state = default, DateTimeOffset? createdOn = default);
static member ServerThreatProtectionSettingsModelData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ThreatProtectionState> * Nullable<DateTimeOffset> -> Azure.ResourceManager.PostgreSql.FlexibleServers.ServerThreatProtectionSettingsModelData
Public Shared Function ServerThreatProtectionSettingsModelData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional state As Nullable(Of ThreatProtectionState) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing) As ServerThreatProtectionSettingsModelData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

state
Nullable<ThreatProtectionState>

Specifies the state of the Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific server.

createdOn
Nullable<DateTimeOffset>

Specifies the UTC creation time of the policy.

Returns

A new ServerThreatProtectionSettingsModelData instance for mocking.

Applies to