public SecretBundle updateSecret(String vaultBaseUrl, String secretName, String secretVersion, String contentType, SecretAttributes secretAttributes, Map<String, String> tags) {
        return updateSecretWithServiceResponseAsync(vaultBaseUrl, secretName, secretVersion, contentType, secretAttributes, tags).toBlocking().single().body();
    }
public SecretBundle updateSecret ( String vaultBaseUrl , String secretName , String secretVersion , String contentType , SecretAttributes secretAttributes , Map < String , String > tags ) { return updateSecretWithServiceResponseAsync ( vaultBaseUrl , secretName , secretVersion , contentType , secretAttributes , tags ) . toBlocking ( ) . single ( ) . body ( ) ; }
Updates the attributes associated with a specified secret in a given key vault.
The UPDATE operation changes specified attributes of an existing stored secret. Attributes that are not specified in the request are left unchanged. The value of a secret itself cannot be changed. This operation requires the secrets/set permission.

@param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
@param secretName The name of the secret.
@param secretVersion The version of the secret.
@param contentType Type of the secret value such as a password.
@param secretAttributes The secret management attributes.
@param tags Application specific metadata in the form of key-value pairs.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws KeyVaultErrorException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the SecretBundle object if successful.