def new(self, **kwargs):
        '''

        .. note:: It is highly recommended that `dx build --create-global-workflow
           <https://wiki.dnanexus.com/Command-Line-Client/Index-of-dx-Commands#build>`_
           be used instead for global workflow creation.

        Creates a workflow in the global space with the given parameters by using
        the specified workflow(s) in regionalOptions as a base.

        The workflow is available only to its developers until
        :meth:`publish()` is called, and is not run until :meth:`run()`
        is called.

        '''
        dx_hash = {}

        for field in ['version', 'name', 'regionalOptions']:
            if field not in kwargs:
                raise DXError("%s: Keyword argument %s is required" % (self.__class__.__name__, field))
            dx_hash[field] = kwargs[field]
            del kwargs[field]

        if "bill_to" in kwargs:
            dx_hash['billTo'] = kwargs['bill_to']
            del kwargs["bill_to"]

        resp = dxpy.api.global_workflow_new(dx_hash, **kwargs)
        self.set_id(dxid=resp["id"])
def new ( self , ** kwargs ) : dx_hash = { } for field in [ 'version' , 'name' , 'regionalOptions' ] : if field not in kwargs : raise DXError ( "%s: Keyword argument %s is required" % ( self . __class__ . __name__ , field ) ) dx_hash [ field ] = kwargs [ field ] del kwargs [ field ] if "bill_to" in kwargs : dx_hash [ 'billTo' ] = kwargs [ 'bill_to' ] del kwargs [ "bill_to" ] resp = dxpy . api . global_workflow_new ( dx_hash , ** kwargs ) self . set_id ( dxid = resp [ "id" ] )
.. note:: It is highly recommended that `dx build --create-global-workflow
           <https://wiki.dnanexus.com/Command-Line-Client/Index-of-dx-Commands#build>`_
           be used instead for global workflow creation.

        Creates a workflow in the global space with the given parameters by using
        the specified workflow(s) in regionalOptions as a base.

        The workflow is available only to its developers until
        :meth:`publish()` is called, and is not run until :meth:`run()`
        is called.