uw_gws/__init__.py
def create_group(self, group):
        """
        Creates a group from the passed restclients.Group object.
        """
        self._valid_group_id(group.id)

        body = {"data": group.json_data()}
        url = "{}/group/{}".format(self.API, group.name)

        data = self._put_resource(url, headers={}, body=body)

        return self._group_from_json(data.get("data"))
def create_group(self, group):
        self._valid_group_id(group.id)

        body = {"data": group.json_data()}
        url = "{}/group/{}".format(self.API, group.name)

        data = self._put_resource(url, headers={}, body=body)

        return self._group_from_json(data.get("data"))
def create_group ( self , group ) : self . _valid_group_id ( group . id ) body = { "data" : group . json_data ( ) } url = "{}/group/{}" . format ( self . API , group . name ) data = self . _put_resource ( url , headers = { } , body = body ) return self . _group_from_json ( data . get ( "data" ) )
Creates a group from the passed restclients.Group object.
Creates a group from the passed restclients . Group object .