Workspaces

Workspaces

Create Manager

from terrene.apps import WorkspaceManager

manager = WorkspaceManager(credentials=credentials)

Create

model = manager.create(
    name='my workspace', description='a short description about my workspace')

Get

model = mananger.get('uuid')

Query

models = manger.query()

Update

model.name = 'new name'
model.save()

Add Owner

model.add_owner('<email>')

Remove Owner

model.remove_owner('<email>')

Add Contributor

model.add_contributor('<email>')

Remove Contributor

model.remove_contributor('<email>')

Set Payment Method

model.set_payment_method('<billing.charge object_id>')

Notify

model.notify('notification title', 'notification body - can contain <strong>html</strong>')