Class PrivateRegistryCredentials
java.lang.Object
com.microsoft.azure.management.batchai.PrivateRegistryCredentials
Credentials to access a container image in a private repository.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpassword()
Get user password to login to the docker repository.Get keyVault Secret storing the password.username()
Get user name to login to the repository.withPassword
(String password) Set user password to login to the docker repository.withPasswordSecretReference
(KeyVaultSecretReference passwordSecretReference) Set keyVault Secret storing the password.withUsername
(String username) Set user name to login to the repository.
-
Constructor Details
-
PrivateRegistryCredentials
public PrivateRegistryCredentials()
-
-
Method Details
-
username
Get user name to login to the repository.- Returns:
- the username value
-
withUsername
Set user name to login to the repository.- Parameters:
username
- the username value to set- Returns:
- the PrivateRegistryCredentials object itself.
-
password
Get user password to login to the docker repository. One of password or passwordSecretReference must be specified.- Returns:
- the password value
-
withPassword
Set user password to login to the docker repository. One of password or passwordSecretReference must be specified.- Parameters:
password
- the password value to set- Returns:
- the PrivateRegistryCredentials object itself.
-
passwordSecretReference
Get keyVault Secret storing the password. Users can store their secrets in Azure KeyVault and pass it to the Batch AI service to integrate with KeyVault. One of password or passwordSecretReference must be specified.- Returns:
- the passwordSecretReference value
-
withPasswordSecretReference
public PrivateRegistryCredentials withPasswordSecretReference(KeyVaultSecretReference passwordSecretReference) Set keyVault Secret storing the password. Users can store their secrets in Azure KeyVault and pass it to the Batch AI service to integrate with KeyVault. One of password or passwordSecretReference must be specified.- Parameters:
passwordSecretReference
- the passwordSecretReference value to set- Returns:
- the PrivateRegistryCredentials object itself.
-