Share via


RepositoryAccessProperties Class

Definition

Credentials to access repository.

public class RepositoryAccessProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.SecurityInsights.Models.RepositoryAccessProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.SecurityInsights.Models.RepositoryAccessProperties>
type RepositoryAccessProperties = class
    interface IJsonModel<RepositoryAccessProperties>
    interface IPersistableModel<RepositoryAccessProperties>
Public Class RepositoryAccessProperties
Implements IJsonModel(Of RepositoryAccessProperties), IPersistableModel(Of RepositoryAccessProperties)
Inheritance
RepositoryAccessProperties
Implements

Constructors

RepositoryAccessProperties(RepositoryAccessKind)

Initializes a new instance of RepositoryAccessProperties.

Properties

ClientId

OAuth ClientId. Required when kind is OAuth.

Code

OAuth Code. Required when kind is OAuth.

InstallationId

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

Kind

The kind of repository access credentials.

State

OAuth State. Required when kind is OAuth.

Token

Personal Access Token. Required when kind is PAT.

Explicit Interface Implementations

IJsonModel<RepositoryAccessProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RepositoryAccessProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RepositoryAccessProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RepositoryAccessProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RepositoryAccessProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to