mds_plugin/core.py
def oci_object(oci_object, return_type=RETURN_DICT, format_function=None,
               current=None):
    """Returns the given OCI object in various formats

    Args:
        oci_object (obj): The oci_object to return
        return_formatted (bool): If true a human readable string is returned
        return_python_object (bool): The OCI object itself is returned
        format_function (func): The function to format the OCI object

    Returns:
       Either the object data formated as a string or the object itself
    """

    import oci.util

    if oci_object == None:
        return None

    if return_type == RETURN_OBJ:
        return oci_object

    if return_type == RETURN_DICT:
        return oci.util.to_dict(oci_object)

    if return_type == RETURN_STR and format_function:
        if current:
            return format_function(oci_object, current)
        else:
            return format_function(oci_object)
    else:
        return str(oci_object)
Returns the given OCI object in various formats

    Args:
        oci_object (obj): The oci_object to return
        return_formatted (bool): If true a human readable string is returned
        return_python_object (bool): The OCI object itself is returned
        format_function (func): The function to format the OCI object

    Returns:
       Either the object data formated as a string or the object itself
    
Returns the given OCI object in various formats
Returns the given OCI object in various formats
def oci_object(oci_object, return_type=RETURN_DICT, format_function=None,
               current=None):
    import oci.util
    if oci_object == None:
        return None
    if return_type == RETURN_OBJ:
        return oci_object
    if return_type == RETURN_DICT:
        return oci.util.to_dict(oci_object)
    if return_type == RETURN_STR and format_function:
        if current:
            return format_function(oci_object, current)
        else:
            return format_function(oci_object)
    else:
        return str(oci_object)
def oci_object ( oci_object , return_type = RETURN_DICT , format_function = None , current = None ) : import oci . util if oci_object == None : return None if return_type == RETURN_OBJ : return oci_object if return_type == RETURN_DICT : return oci . util . to_dict ( oci_object ) if return_type == RETURN_STR and format_function : if current : return format_function ( oci_object , current ) else : return format_function ( oci_object ) else : return str ( oci_object )
Returns the given OCI object in various formats
Returns the given OCI object in various formats
"""Returns the given OCI object in various formats

    Args:
        oci_object (obj): The oci_object to return
        return_formatted (bool): If true a human readable string is returned
        return_python_object (bool): The OCI object itself is returned
        format_function (func): The function to format the OCI object

    Returns:
       Either the object data formated as a string or the object itself
    """
Either the object data formated as a string or the object itself
Either the object data formated as a string or the object itself
oci_object
The oci_object to return
The oci_object to return
return_type
format_function
The function to format the OCI object
The function to format the OCI object
current
return_formatted
If true a human readable string is returned
If true a human readable string is returned
return_python_object
The OCI object itself is returned
The OCI object itself is returned