mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 22:23:35 +00:00
forgot the delete
This commit is contained in:
@ -11210,6 +11210,8 @@ def ProcessGAMCommand(args):
|
||||
doDeleteServiceAccountKeys()
|
||||
elif argument in ['adminrole']:
|
||||
gapi_directory_roles.delete()
|
||||
elif argument in ['browser', 'browsers']:
|
||||
gapi_cbcm.delete()
|
||||
else:
|
||||
controlflow.invalid_argument_exit(argument, 'gam delete')
|
||||
sys.exit(0)
|
||||
|
@ -18,6 +18,14 @@ def build():
|
||||
return gam.buildGAPIObject('cbcm')
|
||||
|
||||
|
||||
def delete():
|
||||
cbcm = build()
|
||||
device_id = sys.argv[3]
|
||||
gapi.call(cbcm.chromebrowsers(), 'delete', deviceId=device_id,
|
||||
customer=GC_Values[GC_CUSTOMER_ID])
|
||||
print(f'Deleted browser {device_id}')
|
||||
|
||||
|
||||
def info():
|
||||
cbcm = build()
|
||||
device_id = sys.argv[3]
|
||||
|
Reference in New Issue
Block a user