'Get available artifact information for rendering.'

def Handle(self, args, token=None):

    artifacts = sorted(artifact_registry.REGISTRY.GetArtifacts(reload_datastore_artifacts=True), key=(lambda art: art.name))
    total_count = len(artifacts)
    if args.count:
        artifacts = artifacts[args.offset:(args.offset + args.count)]
    else:
        artifacts = artifacts[args.offset:]
    descriptors = self.BuildArtifactDescriptors(artifacts)
    return ApiListArtifactsResult(items=descriptors, total_count=total_count)
