def pre_shared_key_id_getter(self):
    """Return the ID field / endpoint_name field

    :param self: Instance of the entity for which this is a custom method.
    :type self: mbed_cloud.foundation.PreSharedKey

    :return: Entity ID (which shadows the endpoint name)
    :rtype: str
    """
    # The underlying value of endpoint name will set by the REST API, so use this in preference to the id
    return self._endpoint_name.value