@classmethod<EOL><INDENT>def objects(cls, args):<DEDENT>
inspector = SDKInspector(args.version)<EOL>objects = []<EOL>if args.parent:<EOL><INDENT>name = Utils.get_singular_name(args.parent)<EOL>instance = inspector.get_instance(name)<EOL>objects = [Utils.get_entity_name_plural(name) for name in instance.children_rest_names]<EOL><DEDENT>else:<EOL><INDENT>objects = inspector.get_all_objects()<EOL><DEDENT>if args.child:<EOL><INDENT>child = Utils.get_singular_name(args.child)<EOL>parents = []<EOL>for name in objects:<EOL><INDENT>singular_name = Utils.get_singular_name(name)<EOL>instance = inspector.get_instance(singular_name)<EOL>if child in instance.children_rest_names:<EOL><INDENT>parents.append(name)<EOL><DEDENT><DEDENT>objects = parents<EOL><DEDENT>if args.filter:<EOL><INDENT>objects = [name for name in objects if args.filter in name]<EOL><DEDENT>objects.sort()<EOL>if not args.json:<EOL><INDENT>Printer.success("<STR_LIT>" % len(objects))<EOL><DEDENT>Printer.output(objects, json=args.json, headers={"<STR_LIT:Name>"})<EOL>
List all objects available