def _List(self):
    self.CheckArguments()
    if self.sub_opts:
        if ('-o' in dict(self.sub_opts)):
            for bucket_name in self.args:
                self._ListChannels(bucket_name)
    else:
        for (bucket_name, notification) in self._EnumerateNotificationsFromArgs(accept_notification_configs=False):
            self._PrintNotificationDetails(bucket_name, notification)
    return 0
def _List(self):
    self.CheckArguments()
    if self.sub_opts:
        if ('-o' in dict(self.sub_opts)):
            for bucket_name in self.args:
                self._ListChannels(bucket_name)
    else:
        for (bucket_name, notification) in self._EnumerateNotificationsFromArgs(accept_notification_configs=False):
            self._PrintNotificationDetails(bucket_name, notification)
    return 0