R/is.R

Defines functions is_msgraph_object is_aad_object is_directory_role is_group is_user is_service_principal is_app

Documented in is_aad_object is_app is_directory_role is_group is_msgraph_object is_service_principal is_user

#' Informational functions
#'
#' These functions return whether the object is of the corresponding class.
#'
#' @param object An R object.
#'
#' @return
#' A boolean.
#' @rdname info
#' @export
is_app <- function(object)
{
    R6::is.R6(object) && inherits(object, "az_app")
}


#' @rdname info
#' @export
is_service_principal <- function(object)
{
    R6::is.R6(object) && inherits(object, "az_service_principal")
}


#' @rdname info
#' @export
is_user <- function(object)
{
    R6::is.R6(object) && inherits(object, "az_user")
}


#' @rdname info
#' @export
is_group <- function(object)
{
    R6::is.R6(object) && inherits(object, "az_group")
}


#' @rdname info
#' @export
is_directory_role <- function(object)
{
    R6::is.R6(object) && inherits(object, "az_directory_role")
}


#' @rdname info
#' @export
is_aad_object <- function(object)
{
    R6::is.R6(object) && inherits(object, "az_object")
}


#' @rdname info
#' @export
is_msgraph_object <- function(object)
{
    R6::is.R6(object) && inherits(object, "ms_object")
}

Try the AzureGraph package in your browser

Any scripts or data that you put into this service are public.

AzureGraph documentation built on Sept. 8, 2023, 5:53 p.m.