def METHOD_NAME():
    parser = argparse.ArgumentParser()
    parser.add_argument('rest_openapi_yaml')
    parser.add_argument('--package', default="com.linbit.linstor.api.rest.v1.serializer")
    parser.add_argument('--class-name', default="JsonGenTypes")
    args = parser.parse_args()
    with open(args.rest_openapi_yaml, 'r') as openapi_file:
        openapi_yaml = yaml.load(openapi_file)
        rest_version = openapi_yaml['info']['version']
        schemas = openapi_yaml['components']['schemas']
        print_header(sys.stdout, args.class_name, args.package, rest_version)
        class_list = []
        for schema in schemas:
            class_list.append(generate_class(schema, schemas[schema], schemas))
        print("\n".join(class_list))
        print_footer(sys.stdout, args.class_name)