Partilhar via


AnalyticsDefenderEasmModelFactory.HostAsset Method

Definition

Initializes a new instance of HostAsset.

public static Azure.Analytics.Defender.Easm.HostAsset HostAsset (string host = default, string domain = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedString> ipAddresses = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.WebComponent> webComponents = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedHeader> headers = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.AttributeDetails> attributes = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.CookieDetails> cookies = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.SslCertAsset> sslCerts = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedString> parentHosts = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedString> childHosts = default, Azure.Analytics.Defender.Easm.HostCore hostCore = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.AssetService> services = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedString> cnames = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.SourceDetails> sources = default, DateTimeOffset? firstSeen = default, DateTimeOffset? lastSeen = default, long? count = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ResourceUri> resourceUrls = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ScanMetadata> scanMetadata = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedLong> asns = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.IpBlock> ipBlocks = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedString> responseBodies = default, Azure.Analytics.Defender.Easm.DomainAsset domainAsset = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedBoolean> nsRecord = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedBoolean> mxRecord = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedBoolean> webserver = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedLocation> location = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedBoolean> nxdomain = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.SslServerConfig> sslServerConfig = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedBoolean> isWildcard = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.BannerDetails> banners = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedBoolean> ipv4 = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.ObservedBoolean> ipv6 = default);
static member HostAsset : string * string * seq<Azure.Analytics.Defender.Easm.ObservedString> * seq<Azure.Analytics.Defender.Easm.WebComponent> * seq<Azure.Analytics.Defender.Easm.ObservedHeader> * seq<Azure.Analytics.Defender.Easm.AttributeDetails> * seq<Azure.Analytics.Defender.Easm.CookieDetails> * seq<Azure.Analytics.Defender.Easm.SslCertAsset> * seq<Azure.Analytics.Defender.Easm.ObservedString> * seq<Azure.Analytics.Defender.Easm.ObservedString> * Azure.Analytics.Defender.Easm.HostCore * seq<Azure.Analytics.Defender.Easm.AssetService> * seq<Azure.Analytics.Defender.Easm.ObservedString> * seq<Azure.Analytics.Defender.Easm.SourceDetails> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int64> * seq<Azure.Analytics.Defender.Easm.ResourceUri> * seq<Azure.Analytics.Defender.Easm.ScanMetadata> * seq<Azure.Analytics.Defender.Easm.ObservedLong> * seq<Azure.Analytics.Defender.Easm.IpBlock> * seq<Azure.Analytics.Defender.Easm.ObservedString> * Azure.Analytics.Defender.Easm.DomainAsset * seq<Azure.Analytics.Defender.Easm.ObservedBoolean> * seq<Azure.Analytics.Defender.Easm.ObservedBoolean> * seq<Azure.Analytics.Defender.Easm.ObservedBoolean> * seq<Azure.Analytics.Defender.Easm.ObservedLocation> * seq<Azure.Analytics.Defender.Easm.ObservedBoolean> * seq<Azure.Analytics.Defender.Easm.SslServerConfig> * seq<Azure.Analytics.Defender.Easm.ObservedBoolean> * seq<Azure.Analytics.Defender.Easm.BannerDetails> * seq<Azure.Analytics.Defender.Easm.ObservedBoolean> * seq<Azure.Analytics.Defender.Easm.ObservedBoolean> -> Azure.Analytics.Defender.Easm.HostAsset
Public Shared Function HostAsset (Optional host As String = Nothing, Optional domain As String = Nothing, Optional ipAddresses As IEnumerable(Of ObservedString) = Nothing, Optional webComponents As IEnumerable(Of WebComponent) = Nothing, Optional headers As IEnumerable(Of ObservedHeader) = Nothing, Optional attributes As IEnumerable(Of AttributeDetails) = Nothing, Optional cookies As IEnumerable(Of CookieDetails) = Nothing, Optional sslCerts As IEnumerable(Of SslCertAsset) = Nothing, Optional parentHosts As IEnumerable(Of ObservedString) = Nothing, Optional childHosts As IEnumerable(Of ObservedString) = Nothing, Optional hostCore As HostCore = Nothing, Optional services As IEnumerable(Of AssetService) = Nothing, Optional cnames As IEnumerable(Of ObservedString) = Nothing, Optional sources As IEnumerable(Of SourceDetails) = Nothing, Optional firstSeen As Nullable(Of DateTimeOffset) = Nothing, Optional lastSeen As Nullable(Of DateTimeOffset) = Nothing, Optional count As Nullable(Of Long) = Nothing, Optional resourceUrls As IEnumerable(Of ResourceUri) = Nothing, Optional scanMetadata As IEnumerable(Of ScanMetadata) = Nothing, Optional asns As IEnumerable(Of ObservedLong) = Nothing, Optional ipBlocks As IEnumerable(Of IpBlock) = Nothing, Optional responseBodies As IEnumerable(Of ObservedString) = Nothing, Optional domainAsset As DomainAsset = Nothing, Optional nsRecord As IEnumerable(Of ObservedBoolean) = Nothing, Optional mxRecord As IEnumerable(Of ObservedBoolean) = Nothing, Optional webserver As IEnumerable(Of ObservedBoolean) = Nothing, Optional location As IEnumerable(Of ObservedLocation) = Nothing, Optional nxdomain As IEnumerable(Of ObservedBoolean) = Nothing, Optional sslServerConfig As IEnumerable(Of SslServerConfig) = Nothing, Optional isWildcard As IEnumerable(Of ObservedBoolean) = Nothing, Optional banners As IEnumerable(Of BannerDetails) = Nothing, Optional ipv4 As IEnumerable(Of ObservedBoolean) = Nothing, Optional ipv6 As IEnumerable(Of ObservedBoolean) = Nothing) As HostAsset

Parameters

host
String
domain
String
webComponents
IEnumerable<WebComponent>
hostCore
HostCore
count
Nullable<Int64>
resourceUrls
IEnumerable<ResourceUri>
scanMetadata
IEnumerable<ScanMetadata>
ipBlocks
IEnumerable<IpBlock>
responseBodies
IEnumerable<ObservedString>
domainAsset
DomainAsset
sslServerConfig
IEnumerable<SslServerConfig>

Returns

A new HostAsset instance for mocking.

Applies to