Поделиться через


SourceRegistryCredentials Class

Definition

Describes the credential parameters for accessing the source registry.

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

Constructors

SourceRegistryCredentials()

Initializes a new instance of SourceRegistryCredentials.

Properties

Identity

The Entra identity used for source registry login. The value is [system] for system-assigned managed identity, [caller] for caller identity, and client ID for user-assigned managed identity.

LoginMode

The authentication mode which determines the source registry login scope. The credentials for the source registry will be generated using the given scope. These credentials will be used to login to the source registry during the run.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<SourceRegistryCredentials>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SourceRegistryCredentials>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SourceRegistryCredentials>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SourceRegistryCredentials>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SourceRegistryCredentials>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to