def Args(parser): parser.display_info.AddFormat(MESSAGE_FORMAT) resource_args.AddSubscriptionResourceArg(parser, 'to pull messages from.') flags.AddPullFlags(parser) base.LIMIT_FLAG.SetDefault(parser, 1)
def Args(parser): parser.display_info.AddFormat(""" table[box]( message.data.decode(base64), message.messageId, message.attributes.list(separator='\n'), ackId.if(NOT auto_ack) ) """) flags.AddSubscriptionResourceArg(parser, 'to pull messages from.') flags.AddPullFlags(parser)
def Args(parser): parser.display_info.AddFormat(MESSAGE_FORMAT) resource_args.AddSubscriptionResourceArg(parser, 'to pull messages from.') flags.AddPullFlags(parser, add_deprecated=True, add_wait=True)