def _PrintNotificationDetails(self, bucket, notification):
    print('projects/_/buckets/{bucket}/notificationConfigs/{notification}\n\tCloud Pub/Sub topic: {topic}'.format(bucket=bucket, notification=notification.id, topic=notification.topic[len('//pubsub.googleapis.com/'):]))
    if notification.custom_attributes:
        print('\tCustom attributes:')
        for attr in notification.custom_attributes.additionalProperties:
            print(('\t\t%s: %s' % (attr.key, attr.value)))
    filters = []
    if notification.event_types:
        filters.append(('\t\tEvent Types: %s' % ', '.join(notification.event_types)))
    if notification.object_name_prefix:
        filters.append(("\t\tObject name prefix: '%s'" % notification.object_name_prefix))
    if filters:
        print('\tFilters:')
        for line in filters:
            print(line)
    self.logger.info('')
def _PrintNotificationDetails(self, bucket, notification):
    print('projects/_/buckets/{bucket}/notificationConfigs/{notification}\n\tCloud Pub/Sub topic: {topic}'.format(bucket=bucket, notification=notification.id, topic=notification.topic[len('//pubsub.googleapis.com/'):]))
    if notification.custom_attributes:
        print('\tCustom attributes:')
        for attr in notification.custom_attributes.additionalProperties:
            print(('\t\t%s: %s' % (attr.key, attr.value)))
    filters = []
    if notification.event_types:
        filters.append(('\t\tEvent Types: %s' % ', '.join(notification.event_types)))
    if notification.object_name_prefix:
        filters.append(("\t\tObject name prefix: '%s'" % notification.object_name_prefix))
    if filters:
        print('\tFilters:')
        for line in filters:
            print(line)
    self.logger.info()