/// <summary> /// Initializes a new instance of the CustomRegistryCredentials class. /// </summary> /// <param name="userName">The username for logging into the custom /// registry.</param> /// <param name="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.</param> /// <param name="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.</param> public CustomRegistryCredentials(SecretObject userName = default(SecretObject), SecretObject password = default(SecretObject), string identity = default(string)) { UserName = userName; Password = password; Identity = identity; CustomInit(); }
/// <summary> /// Initializes a new instance of the CustomRegistryCredentials class. /// </summary> /// <param name="userName">The username for logging into the custom /// registry.</param> /// <param name="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.</param> public CustomRegistryCredentials(SecretObject userName = default(SecretObject), SecretObject password = default(SecretObject)) { UserName = userName; Password = password; CustomInit(); }