Handle Google-Apps-For-Government (#362)

This commit is contained in:
Ross Scroggs
2016-12-21 11:05:59 -08:00
committed by Jay Lee
parent d3091d3dd8
commit 73bcadbbfe

View File

@ -4845,6 +4845,8 @@ def getImap(users):
def getProductAndSKU(sku):
if sku.lower() in [u'apps', u'gafb', u'gafw', u'gsbasic']:
sku = u'Google-Apps-For-Business'
elif sku.lower() in [u'gafg',]:
sku = u'Google-Apps-For-Government'
elif sku.lower() in [u'gams',]:
sku = u'Google-Apps-For-Postini'
elif sku.lower() in [u'gau', u'unlimited', u'd4w', u'dfw', u'gsbusiness']:
@ -7682,7 +7684,7 @@ def doGetUserInfo(user_email=None):
getSchemas = getAliases = getGroups = getLicenses = True
projection = u'full'
customFieldMask = viewType = None
skus = [u'Google-Apps-For-Business', u'Google-Apps-Unlimited', u'Google-Apps-For-Postini',
skus = [u'Google-Apps-For-Business', u'Google-Apps-Unlimited', u'Google-Apps-For-Government', u'Google-Apps-For-Postini',
u'Google-Apps-Lite', u'Google-Vault', u'Google-Vault-Former-Employee']
while i < len(sys.argv):
myarg = sys.argv[i].lower()