Partilhar via


ArmSecurityInsightsModelFactory.RepositoryAccessProperties Method

Definition

Initializes a new instance of RepositoryAccessProperties.

public static Azure.ResourceManager.SecurityInsights.Models.RepositoryAccessProperties RepositoryAccessProperties (Azure.ResourceManager.SecurityInsights.Models.RepositoryAccessKind kind = default, string code = default, string state = default, string clientId = default, string token = default, string installationId = default);
static member RepositoryAccessProperties : Azure.ResourceManager.SecurityInsights.Models.RepositoryAccessKind * string * string * string * string * string -> Azure.ResourceManager.SecurityInsights.Models.RepositoryAccessProperties
Public Shared Function RepositoryAccessProperties (Optional kind As RepositoryAccessKind = Nothing, Optional code As String = Nothing, Optional state As String = Nothing, Optional clientId As String = Nothing, Optional token As String = Nothing, Optional installationId As String = Nothing) As RepositoryAccessProperties

Parameters

kind
RepositoryAccessKind

The kind of repository access credentials.

code
String

OAuth Code. Required when kind is OAuth.

state
String

OAuth State. Required when kind is OAuth.

clientId
String

OAuth ClientId. Required when kind is OAuth.

token
String

Personal Access Token. Required when kind is PAT.

installationId
String

Application installation ID. Required when kind is App. Supported by GitHub only.

Returns

A new RepositoryAccessProperties instance for mocking.

Applies to