Add passthrough for query parameters that the stack uses but that don't appear in discovery.
diff --git a/apiclient/discovery.py b/apiclient/discovery.py
index 7ae6a8a..db4dd47 100644
--- a/apiclient/discovery.py
+++ b/apiclient/discovery.py
@@ -44,6 +44,7 @@
DISCOVERY_URI = ('https://www.googleapis.com/discovery/v0.3/describe/'
'{api}/{apiVersion}')
DEFAULT_METHOD_DOC = 'A description of how to use this function'
+STACK_QUERY_PARAMETERS = ['trace']
def key2param(key):
@@ -259,7 +260,7 @@
def method(self, **kwargs):
for name in kwargs.iterkeys():
- if name not in argmap:
+ if name not in argmap and name not in STACK_QUERY_PARAMETERS:
raise TypeError('Got an unexpected keyword argument "%s"' % name)
for name in required_params: