'Initializer.
Args:
name: Name of this queue. If not supplied, defaults to the default queue.
Raises:
InvalidQueueNameError if the queue name is invalid.'

def __init__(self, name=_DEFAULT_QUEUE):

    if (not _QUEUE_NAME_RE.match(name)):
        raise InvalidQueueNameError(('Queue    name    does    not    match    pattern    "%s";    found    %s' % (_QUEUE_NAME_PATTERN, name)))
    self.__name = name
    self.__url = ('%s/%s' % (_DEFAULT_QUEUE_PATH, self.__name))
    self._app = None
