问题描述
我在GCP上运行了18个月以上的云功能。一周前突然,它停止了工作。
import googleapiclient.discovery
adminDirectoryService = googleapiclient.discovery.build('admin','directory_v1',credentials = gsuiteCredentials,cache_discovery=False)
result = adminDirectoryService.users().watch(body=watchBody,projection=projection,event=eventType,maxResults=1,customer=gSuiteCutomerId,viewType=viewType).execute()
例外:
result = adminDirectoryService.users().watch(body=watchBody,viewType=viewType).execute()
File "/env/lib/python3.7/site-packages/google_api_python_client-1.7.8-py3.7.egg/googleapiclient/discovery.py",line 723,in method
raise TypeError('Got an unexpected keyword argument "%s"' % name)
TypeError: Got an unexpected keyword argument "projection"
我不知道是什么原因引起的。我检查了documentation,并明确指出了projection
参数存在。
还有其他人遇到此问题吗?有什么建议吗?