MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / update

Method update

googleapiclient/channel.py:235–248  ·  view source on GitHub ↗

Update a channel with information from the response of watch(). When a request is sent to watch() a resource, the response returned from the watch() request is a dictionary with updated channel information, such as the resource_id, which is needed when stopping a subscriptio

(self, resp)

Source from the content-addressed store, hash-verified

233 return result
234
235 def update(self, resp):
236 """Update a channel with information from the response of watch().
237
238 When a request is sent to watch() a resource, the response returned
239 from the watch() request is a dictionary with updated channel information,
240 such as the resource_id, which is needed when stopping a subscription.
241
242 Args:
243 resp: dict, The response from a watch() method.
244 """
245 for json_name, param_name in CHANNEL_PARAMS.items():
246 value = resp.get(json_name)
247 if value is not None:
248 setattr(self, param_name, value)
249
250
251def notification_from_headers(channel, headers):

Callers 10

test_basicMethod · 0.95
scan_readme_filesFunction · 0.80
mainFunction · 0.80
access_settingsFunction · 0.80
noxfile.pyFile · 0.80
get_pytest_env_varsFunction · 0.80
update_query_paramsFunction · 0.80
_fix_up_parametersFunction · 0.80
__setstate__Method · 0.80
_build_queryMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1

test_basicMethod · 0.76