find_class_generator: Find the R6 class for a Graph object

View source: R/zzz_class_directory.R

find_class_generatorR Documentation

Find the R6 class for a Graph object

Description

Find the R6 class for a Graph object

Usage

find_class_generator(props, type_filter = NULL, default_generator = ms_object)

Arguments

props

A list of object properties, generally the result of a Graph API call.

type_filter

An optional vector of types by which to filter the result.

default_generator

The default class generator to use, if a match couldn't be found.

Details

This function maps Graph objects to AzureGraph classes.

Value

An R6 class generator for the appropriate AzureGraph class. If no matching R6 class could be found, the default generator is returned. If type_filter is provided, but the matching R6 class isn't in the filter, NULL is returned.


AzureGraph documentation built on March 18, 2022, 8:04 p.m.