def __getstate__(self):
    return {'token': self.token,
            'scopes': self.scopes,
            'id': self.service_account_id,
            'a_maker': None if self.make_token_async == _make_token_async
            else self.make_token_async,
            'retry_params': self.retry_params}
Store state as part of serialization/pickling.
dataset/ETHPy150Open GoogleCloudPlatform/billing-export-python/cloudstorage/rest_api.py/_RestApi.__getstate__