python - Google Admin Directory SDK中的用户观看功能,突然抛出错误参数投影异常
问题描述
我在 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, projection=projection, event=eventType, maxResults=1, customer=gSuiteCutomerId, 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"
我不知道是什么导致了这个问题。我已经检查了文档,它清楚地说明了这个projection
论点存在。
还有其他人遇到这个问题吗?有什么建议么?
解决方案
推荐阅读
- python - 字典列表 - 改进?
- emacs - Emacs,将“将缓冲区转换为 dos 格式”绑定到 f11 键
- javascript - Wordpress Bootstrap 汉堡菜单打不开
- php - 将数据合并到一个数组中
- eclipse - Jubula 功能测试工具包?
- java - Spring Tool Suite 4 (JAVA) 上的“Web Service Client (CXF 2.)”问题
- python - 我想打印深度神经网络的结果,但是“TypeError: 'DataFrame' object is not callable”发生
- python - 正确使用 Flask 的 sqlalchemy 会话
- html - Firefox 开发者版下拉菜单
- angularjs - 如何为基于 Typescript 的 AngularJS 项目配置 SonarQube?