Partilhar via


ArmSecurityInsightsModelFactory.SourceControlServicePrincipal Method

Definition

Initializes a new instance of SourceControlServicePrincipal.

public static Azure.ResourceManager.SecurityInsights.Models.SourceControlServicePrincipal SourceControlServicePrincipal (string id = default, Guid? tenantId = default, string appId = default, DateTimeOffset? credentialsExpireOn = default);
static member SourceControlServicePrincipal : string * Nullable<Guid> * string * Nullable<DateTimeOffset> -> Azure.ResourceManager.SecurityInsights.Models.SourceControlServicePrincipal
Public Shared Function SourceControlServicePrincipal (Optional id As String = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional appId As String = Nothing, Optional credentialsExpireOn As Nullable(Of DateTimeOffset) = Nothing) As SourceControlServicePrincipal

Parameters

id
String

Id of service principal.

tenantId
Nullable<Guid>

Tenant id of service principal.

appId
String

App id of service principal.

credentialsExpireOn
Nullable<DateTimeOffset>

Expiration time of service principal credentials.

Returns

A new SourceControlServicePrincipal instance for mocking.

Applies to