Set max seats and seats owed
Add the following function to the console training wheels library.
accounts_seats
Parameters
Name | Required | Details |
---|---|---|
:namespace | Yes | The namespace to update |
:max_seats_used | No | Max numbers of seats to use |
Usege
- With no extra parameters it will only display current seats information
account_seats(namespace: 'sample_namespace')
[+] Seats in use for sample_namespace
max_seats_used: 10
seats_owed: 21
- The use of either/both parameter(s) will update it and show the result
account_seats(namespace: 'sample_namespace',5)
[+] Seats in use for sample_namespace
max_seats_used: 5
Since the attributes we are looking to update reside in DotCom, we can use the client object and send them as part of the body parameter.
Edited by Cynthia "Arty" Ng