Share via


ArmSecurityCenterModelFactory.SecuritySubAssessmentData Method

Definition

Initializes a new instance of SecuritySubAssessmentData.

public static Azure.ResourceManager.SecurityCenter.SecuritySubAssessmentData SecuritySubAssessmentData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string vulnerabilityId = default, string displayName = default, Azure.ResourceManager.SecurityCenter.Models.SubAssessmentStatus status = default, string remediation = default, string impact = default, string category = default, string description = default, DateTimeOffset? generatedOn = default, Azure.ResourceManager.SecurityCenter.Models.SecurityCenterResourceDetails resourceDetails = default, Azure.ResourceManager.SecurityCenter.Models.SecuritySubAssessmentAdditionalInfo additionalData = default);
static member SecuritySubAssessmentData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * Azure.ResourceManager.SecurityCenter.Models.SubAssessmentStatus * string * string * string * string * Nullable<DateTimeOffset> * Azure.ResourceManager.SecurityCenter.Models.SecurityCenterResourceDetails * Azure.ResourceManager.SecurityCenter.Models.SecuritySubAssessmentAdditionalInfo -> Azure.ResourceManager.SecurityCenter.SecuritySubAssessmentData
Public Shared Function SecuritySubAssessmentData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional vulnerabilityId As String = Nothing, Optional displayName As String = Nothing, Optional status As SubAssessmentStatus = Nothing, Optional remediation As String = Nothing, Optional impact As String = Nothing, Optional category As String = Nothing, Optional description As String = Nothing, Optional generatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional resourceDetails As SecurityCenterResourceDetails = Nothing, Optional additionalData As SecuritySubAssessmentAdditionalInfo = Nothing) As SecuritySubAssessmentData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

vulnerabilityId
String

Vulnerability ID.

displayName
String

User friendly display name of the sub-assessment.

status
SubAssessmentStatus

Status of the sub-assessment.

remediation
String

Information on how to remediate this sub-assessment.

impact
String

Description of the impact of this sub-assessment.

category
String

Category of the sub-assessment.

description
String

Human readable description of the assessment status.

generatedOn
Nullable<DateTimeOffset>

The date and time the sub-assessment was generated.

resourceDetails
SecurityCenterResourceDetails

Details of the resource that was assessed Please note SecurityCenterResourceDetails 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 AzureResourceDetails, OnPremiseResourceDetails and OnPremiseSqlResourceDetails.

additionalData
SecuritySubAssessmentAdditionalInfo

Details of the sub-assessment Please note SecuritySubAssessmentAdditionalInfo 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 ContainerRegistryVulnerabilityProperties, ServerVulnerabilityProperties and SqlServerVulnerabilityProperties.

Returns

A new SecuritySubAssessmentData instance for mocking.

Applies to