Пример #1
0
    def Run(self, args):
        """This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Yields:
      Subscription paths that match the regular expression in args.name_filter.
    """
        client = subscriptions.SubscriptionsClient()
        for sub in client.List(util.ParseProject(), page_size=args.page_size):
            yield util.ListSubscriptionDisplayDict(sub)
Пример #2
0
def _Run(args, legacy_output=False):
    client = subscriptions.SubscriptionsClient()
    for sub in client.List(util.ParseProject(), page_size=args.page_size):
        if legacy_output:
            sub = util.ListSubscriptionDisplayDict(sub)
        yield sub