src/sasctl/_services/workflow.py
def list_definitions(self,
                         include_enabled=True,
                         include_disabled=False):
        """List workflow definitions.

        Parameters
        ----------
        include_enabled : bool, optional
            Include enabled definitions in the results.  Defaults to True.
        include_disabled : bool, optional
            Include disabled definitions in the results.  Defaults to False.

        Returns
        -------
        list
            The list of definitions.

        """
        if include_enabled and include_disabled:
            url = '/definitions'
        elif include_enabled:
            url = '/enabledDefinitions'
        elif include_disabled:
            url = '/disabledDefinitions'
        else:
            return []

        # Header required to prevent 400 ERROR Bad Request
        return self.get(url, headers={"Accept-Language": "en-US"})
List workflow definitions.

        Parameters
        ----------
        include_enabled : bool, optional
            Include enabled definitions in the results.  Defaults to True.
        include_disabled : bool, optional
            Include disabled definitions in the results.  Defaults to False.

        Returns
        -------
        list
            The list of definitions.

        
List workflow definitions.
Parameters

include_enabled : bool, optional
Include enabled definitions in the results.  Defaults to True.
include_disabled : bool, optional
Include disabled definitions in the results.  Defaults to False.

Returns

list
The list of definitions.
List workflow definitions . Parameters include_enabled : bool optional Include enabled definitions in the results . Defaults to True . include_disabled : bool optional Include disabled definitions in the results . Defaults to False . Returns list The list of definitions .
def list_definitions(self,
                         include_enabled=True,
                         include_disabled=False):
        if include_enabled and include_disabled:
            url = '/definitions'
        elif include_enabled:
            url = '/enabledDefinitions'
        elif include_disabled:
            url = '/disabledDefinitions'
        else:
            return []
        return self.get(url, headers={"Accept-Language": "en-US"})
def list_definitions ( self , include_enabled = True , include_disabled = False ) : if include_enabled and include_disabled : url = '/definitions' elif include_enabled : url = '/enabledDefinitions' elif include_disabled : url = '/disabledDefinitions' else : return [ ] return self . get ( url , headers = { "Accept-Language" : "en-US" } )
List workflow definitions.
List workflow definitions .
"""List workflow definitions.

        Parameters
        ----------
        include_enabled : bool, optional
            Include enabled definitions in the results.  Defaults to True.
        include_disabled : bool, optional
            Include disabled definitions in the results.  Defaults to False.

        Returns
        -------
        list
            The list of definitions.

        """ # Header required to prevent 400 ERROR Bad Request
self
include_enabled
include_disabled