RegistryCredentials Class
- java.
lang. Object - com.
azure. resourcemanager. appcontainers. models. RegistryCredentials
- com.
Implements
public final class RegistryCredentials
implements JsonSerializable<RegistryCredentials>
Container App Private Registry.
Constructor Summary
Constructor | Description |
---|---|
RegistryCredentials() |
Creates an instance of Registry |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Registry |
fromJson(JsonReader jsonReader)
Reads an instance of Registry |
String |
identity()
Get the identity property: A Managed Identity to use to authenticate with Azure Container Registry. |
String |
passwordSecretRef()
Get the password |
String |
server()
Get the server property: Container Registry Server. |
Json |
toJson(JsonWriter jsonWriter) |
String |
username()
Get the username property: Container Registry Username. |
void |
validate()
Validates the instance. |
Registry |
withIdentity(String identity)
Set the identity property: A Managed Identity to use to authenticate with Azure Container Registry. |
Registry |
withPasswordSecretRef(String passwordSecretRef)
Set the password |
Registry |
withServer(String server)
Set the server property: Container Registry Server. |
Registry |
withUsername(String username)
Set the username property: Container Registry Username. |
Methods inherited from java.lang.Object
Constructor Details
RegistryCredentials
public RegistryCredentials()
Creates an instance of RegistryCredentials class.
Method Details
fromJson
public static RegistryCredentials fromJson(JsonReader jsonReader)
Reads an instance of RegistryCredentials from the JsonReader.
Parameters:
Returns:
Throws:
identity
public String identity()
Get the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'.
Returns:
passwordSecretRef
public String passwordSecretRef()
Get the passwordSecretRef property: The name of the Secret that contains the registry login password.
Returns:
server
public String server()
Get the server property: Container Registry Server.
Returns:
toJson
username
public String username()
Get the username property: Container Registry Username.
Returns:
validate
public void validate()
Validates the instance.
withIdentity
public RegistryCredentials withIdentity(String identity)
Set the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'.
Parameters:
Returns:
withPasswordSecretRef
public RegistryCredentials withPasswordSecretRef(String passwordSecretRef)
Set the passwordSecretRef property: The name of the Secret that contains the registry login password.
Parameters:
Returns:
withServer
public RegistryCredentials withServer(String server)
Set the server property: Container Registry Server.
Parameters:
Returns:
withUsername
public RegistryCredentials withUsername(String username)
Set the username property: Container Registry Username.
Parameters:
Returns:
Applies to
Azure SDK for Java