Share via


CustomRegistryCredentials Class

Definition

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

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.CustomRegistryCredentialsTypeConverter))]
public class CustomRegistryCredentials : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.ICustomRegistryCredentials
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.CustomRegistryCredentialsTypeConverter))>]
type CustomRegistryCredentials = class
    interface ICustomRegistryCredentials
    interface IJsonSerializable
Public Class CustomRegistryCredentials
Implements ICustomRegistryCredentials
Inheritance
CustomRegistryCredentials
Attributes
Implements

Constructors

CustomRegistryCredentials()

Creates an new CustomRegistryCredentials instance.

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.

PasswordType

The type of the secret object which determines how the value of the secret object has to be interpreted.

PasswordValue

The value of the secret. The format of this value will be determined based on the type of the secret object. If the type is Opaque, the value will be used as is without any modification.

UserNameType

The type of the secret object which determines how the value of the secret object has to be interpreted.

UserNameValue

The value of the secret. The format of this value will be determined based on the type of the secret object. If the type is Opaque, the value will be used as is without any modification.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of CustomRegistryCredentials.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of CustomRegistryCredentials.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api20190601Preview.ICustomRegistryCredentials.

FromJsonString(String)

Creates a new instance of CustomRegistryCredentials, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of CustomRegistryCredentials into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to