def Run(self, args):
    'Run the list command.'
    client = registries.RegistriesClient()
    registry_ref = args.CONCEPTS.registry.Parse()
    registry = client.Get(registry_ref)
    for (idx, credential) in enumerate(registry.credentials):
        serializable = resource_projector.MakeSerializable(credential)
        serializable['index'] = idx
        (yield serializable)
Run the list command.
def Run(self, args):
    
    client = registries.RegistriesClient()
    registry_ref = args.CONCEPTS.registry.Parse()
    registry = client.Get(registry_ref)
    for (idx, credential) in enumerate(registry.credentials):
        serializable = resource_projector.MakeSerializable(credential)
        serializable['index'] = idx
        (yield serializable)