Class ContainerServiceServicePrincipalProfile
java.lang.Object
com.microsoft.azure.management.containerservice.ContainerServiceServicePrincipalProfile
Information about a service principal identity for the cluster to use for
manipulating Azure APIs. Either secret or keyVaultSecretRef must be
specified.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the ID for the service principal.Get reference to a secret stored in Azure Key Vault.secret()Get the secret password associated with the service principal in plain text.withClientId(String clientId) Set the ID for the service principal.withKeyVaultSecretRef(KeyVaultSecretRef keyVaultSecretRef) Set reference to a secret stored in Azure Key Vault.withSecret(String secret) Set the secret password associated with the service principal in plain text.
-
Constructor Details
-
ContainerServiceServicePrincipalProfile
public ContainerServiceServicePrincipalProfile()
-
-
Method Details
-
clientId
Get the ID for the service principal.- Returns:
- the clientId value
-
withClientId
Set the ID for the service principal.- Parameters:
clientId- the clientId value to set- Returns:
- the ContainerServiceServicePrincipalProfile object itself.
-
secret
Get the secret password associated with the service principal in plain text.- Returns:
- the secret value
-
withSecret
Set the secret password associated with the service principal in plain text.- Parameters:
secret- the secret value to set- Returns:
- the ContainerServiceServicePrincipalProfile object itself.
-
keyVaultSecretRef
Get reference to a secret stored in Azure Key Vault.- Returns:
- the keyVaultSecretRef value
-
withKeyVaultSecretRef
public ContainerServiceServicePrincipalProfile withKeyVaultSecretRef(KeyVaultSecretRef keyVaultSecretRef) Set reference to a secret stored in Azure Key Vault.- Parameters:
keyVaultSecretRef- the keyVaultSecretRef value to set- Returns:
- the ContainerServiceServicePrincipalProfile object itself.
-