CustomRegistryCredentials Class

Definition

Describes the credentials that will be used to access a custom registry during a run.

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

Constructors

CustomRegistryCredentials()

Initializes a new instance of CustomRegistryCredentials.

Properties

Identity

Indicates the managed identity assigned to the custom credential. If a user-assigned identity this value is the Client ID. If a system-assigned identity, the value will be system. In the case of a system-assigned identity, the Client ID will be determined by the runner. This identity may be used to authenticate to key vault to retrieve credentials or it may be the only source of authentication used for accessing the registry.

Password

The password for logging into the custom registry. The password is a secret object that allows multiple ways of providing the value for it.

UserName

The username for logging into the custom registry.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CustomRegistryCredentials>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CustomRegistryCredentials>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CustomRegistryCredentials>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CustomRegistryCredentials>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CustomRegistryCredentials>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to