def lock(self):
r = fapi.lock_workspace(self.namespace, self.name, self.api_url)<EOL>fapi._check_response_code(r, <NUM_LIT>)<EOL>self.data['<STR_LIT>']['<STR_LIT>'] = True<EOL>return self<EOL>
Lock this Workspace.

        This causes the workspace to behave in a read-only way,
        regardless of access permissions.