ArmSecurityCenterModelFactory.TopologySingleResource Method

Definition

Initializes a new instance of TopologySingleResource.

public static Azure.ResourceManager.SecurityCenter.Models.TopologySingleResource TopologySingleResource (Azure.Core.ResourceIdentifier resourceId = default, string severity = default, bool? recommendationsExist = default, string networkZones = default, int? topologyScore = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.TopologySingleResourceParent> parents = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.TopologySingleResourceChild> children = default);
static member TopologySingleResource : Azure.Core.ResourceIdentifier * string * Nullable<bool> * string * Nullable<int> * Nullable<Azure.Core.AzureLocation> * seq<Azure.ResourceManager.SecurityCenter.Models.TopologySingleResourceParent> * seq<Azure.ResourceManager.SecurityCenter.Models.TopologySingleResourceChild> -> Azure.ResourceManager.SecurityCenter.Models.TopologySingleResource
Public Shared Function TopologySingleResource (Optional resourceId As ResourceIdentifier = Nothing, Optional severity As String = Nothing, Optional recommendationsExist As Nullable(Of Boolean) = Nothing, Optional networkZones As String = Nothing, Optional topologyScore As Nullable(Of Integer) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional parents As IEnumerable(Of TopologySingleResourceParent) = Nothing, Optional children As IEnumerable(Of TopologySingleResourceChild) = Nothing) As TopologySingleResource

Parameters

resourceId
ResourceIdentifier

Azure resource id.

severity
String

The security severity of the resource.

recommendationsExist
Nullable<Boolean>

Indicates if the resource has security recommendations.

networkZones
String

Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.).

topologyScore
Nullable<Int32>

Score of the resource based on its security severity.

location
Nullable<AzureLocation>

The location of this resource.

parents
IEnumerable<TopologySingleResourceParent>

Azure resources connected to this resource which are in higher level in the topology view.

children
IEnumerable<TopologySingleResourceChild>

Azure resources connected to this resource which are in lower level in the topology view.

Returns

A new TopologySingleResource instance for mocking.

Applies to