'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 subscription.
Args:
resp: dict, The response from a watch() method.'

def update(self, resp):

    for (json_name, param_name) in six.iteritems(CHANNEL_PARAMS):
        value = resp.get(json_name)
        if (value is not None):
            setattr(self, param_name, value)
