Class DataSourceServicePrincipalInKeyVault
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataSourceCredentialEntity
com.azure.ai.metricsadvisor.administration.models.DataSourceServicePrincipalInKeyVault
The service principal stored in a key vault representing the credential entity for a data source.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the credential description.getId()
Gets the credential id.Gets the client id to access the KeyVault storing service principal.Gets the endpoint to the KeyVault storing service principal.getName()
Gets the credential name.Gets the name of the KeyVault secret holding client secret.Gets the name of the KeyVault secret holding client secret.Gets the tenant id of the service principal.setDescription
(String description) Sets the description.setKeyVaultForDataSourceSecrets
(String keyVaultEndpoint, String keyVaultClientId, String keyVaultClientSecret) Sets the keyVault containing the data source secrets.Sets the name.setSecretNameForDataSourceClientId
(String clientIdSecretName) Sets the name of the keyvault secret holding client id.setSecretNameForDataSourceClientSecret
(String clientSecretName) Sets the name of the keyvault secret holding client secret.setTenantId
(String tenantId) Sets the tenant id.
-
Constructor Details
-
DataSourceServicePrincipalInKeyVault
public DataSourceServicePrincipalInKeyVault()
-
-
Method Details
-
getId
Description copied from class:DataSourceCredentialEntity
Gets the credential id.- Specified by:
getId
in classDataSourceCredentialEntity
- Returns:
- The credential id.
-
getName
Description copied from class:DataSourceCredentialEntity
Gets the credential name.- Specified by:
getName
in classDataSourceCredentialEntity
- Returns:
- The credential name.
-
getDescription
Description copied from class:DataSourceCredentialEntity
Gets the credential description.- Specified by:
getDescription
in classDataSourceCredentialEntity
- Returns:
- The credential description.
-
getKeyVaultEndpoint
Gets the endpoint to the KeyVault storing service principal.- Returns:
- The KeyVault endpoint.
-
getKeyVaultClientId
Gets the client id to access the KeyVault storing service principal.- Returns:
- The client id to access the KeyVault.
-
getTenantId
Gets the tenant id of the service principal.- Returns:
- The tenant id.
-
getSecretNameForDataSourceClientId
Gets the name of the KeyVault secret holding client secret.- Returns:
- The name of the KeyVault secret holding client secret
-
getSecretNameForDataSourceClientSecret
Gets the name of the KeyVault secret holding client secret.- Returns:
- The name of the KeyVault secret holding client secret
-
setName
Sets the name.- Parameters:
name
- The name- Returns:
- an updated object with name set
-
setKeyVaultForDataSourceSecrets
public DataSourceServicePrincipalInKeyVault setKeyVaultForDataSourceSecrets(String keyVaultEndpoint, String keyVaultClientId, String keyVaultClientSecret) Sets the keyVault containing the data source secrets.- Parameters:
keyVaultEndpoint
- The keyVault endpointkeyVaultClientId
- The client id to access the keyVaultkeyVaultClientSecret
- The client secret to access the keyVault- Returns:
- an updated object
-
setSecretNameForDataSourceClientId
public DataSourceServicePrincipalInKeyVault setSecretNameForDataSourceClientId(String clientIdSecretName) Sets the name of the keyvault secret holding client id.- Parameters:
clientIdSecretName
- The secret name- Returns:
- an updated object with client id secret name set
-
setSecretNameForDataSourceClientSecret
public DataSourceServicePrincipalInKeyVault setSecretNameForDataSourceClientSecret(String clientSecretName) Sets the name of the keyvault secret holding client secret.- Parameters:
clientSecretName
- The secret name- Returns:
- an updated object with client secret name set
-
setTenantId
Sets the tenant id.- Parameters:
tenantId
- The tenant id- Returns:
- an updated object with client tenant id set
-
setDescription
Sets the description.- Parameters:
description
- The description- Returns:
- an updated object with description set
-