def get_secret_value(client, secret_resource_name,
    secret_value_resource_name, show_value=False):
    """Retrieve the value of a specified version of a secret resource"""
    secret_value = None
    if show_value:
        secret_value = client.show(secret_resource_name,
            secret_value_resource_name)
    secret_data = client.get(secret_resource_name, secret_value_resource_name)
    if secret_value:
        secret_data.value = secret_value.value
    return secret_data
