| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -290,7 +290,7 @@ def _assign_entity_to_pb(entity_pb, entity): | |||
| 290 | 290 | ||
| 291 | 291 | Helper method for ``Batch.put``. | |
| 292 | 292 | ||
| 293 | - :type entity_pb: :class:`.datastore._generated.entity_pb2.Entity` | ||
| 293 | + :type entity_pb: :class:`._generated.entity_pb2.Entity` | ||
| 294 | 294 | :param entity_pb: The entity owned by a mutation. | |
| 295 | 295 | ||
| 296 | 296 | :type entity: :class:`google.cloud.datastore.entity.Entity` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,7 +78,7 @@ def _extended_lookup(connection, project, key_pbs, | |||
| 78 | 78 | :type project: string | |
| 79 | 79 | :param project: The project to make the request for. | |
| 80 | 80 | ||
| 81 | - :type key_pbs: list of :class:`.datastore._generated.entity_pb2.Key` | ||
| 81 | + :type key_pbs: list of :class:`._generated.entity_pb2.Key` | ||
| 82 | 82 | :param key_pbs: The keys to retrieve from the datastore. | |
| 83 | 83 | ||
| 84 | 84 | :type missing: list | |
@@ -100,7 +100,7 @@ def _extended_lookup(connection, project, key_pbs, | |||
| 100 | 100 | the given transaction. Incompatible with | |
| 101 | 101 | ``eventual==True``. | |
| 102 | 102 | ||
| 103 | - :rtype: list of :class:`.datastore._generated.entity_pb2.Entity` | ||
| 103 | + :rtype: list of :class:`._generated.entity_pb2.Entity` | ||
| 104 | 104 | :returns: The requested entities. | |
| 105 | 105 | :raises: :class:`ValueError` if missing / deferred are not null or | |
| 106 | 106 | empty list. | |
@@ -245,7 +245,7 @@ def get(self, key, missing=None, deferred=None, transaction=None): | |||
| 245 | 245 | :param deferred: (Optional) If a list is passed, the keys returned | |
| 246 | 246 | by the backend as "deferred" will be copied into it. | |
| 247 | 247 | ||
| 248 | - :type transaction: :class:`~.datastore.transaction.Transaction` | ||
| 248 | + :type transaction: :class:`~.transaction.Transaction` | ||
| 249 | 249 | :param transaction: (Optional) Transaction to use for read consistency. | |
| 250 | 250 | If not passed, uses current transaction, if set. | |
| 251 | 251 | ||
@@ -273,7 +273,7 @@ def get_multi(self, keys, missing=None, deferred=None, transaction=None): | |||
| 273 | 273 | by the backend as "deferred" will be copied into it. | |
| 274 | 274 | If the list is not empty, an error will occur. | |
| 275 | 275 | ||
| 276 | - :type transaction: :class:`~.datastore.transaction.Transaction` | ||
| 276 | + :type transaction: :class:`~.transaction.Transaction` | ||
| 277 | 277 | :param transaction: (Optional) Transaction to use for read consistency. | |
| 278 | 278 | If not passed, uses current transaction, if set. | |
| 279 | 279 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ def status_code(self): | |||
| 59 | 59 | def from_response(cls, http_response): | |
| 60 | 60 | """Factory: construct an exception from a response. | |
| 61 | 61 | ||
| 62 | - :type http_response: :class:`~.streaming.http_wrapper.Response` | ||
| 62 | + :type http_response: :class:`~.http_wrapper.Response` | ||
| 63 | 63 | :param http_response: the response which returned the error | |
| 64 | 64 | ||
| 65 | 65 | :rtype: :class:`HttpError` | |
@@ -108,7 +108,7 @@ def __init__(self, response, content, url, retry_after): | |||
| 108 | 108 | def from_response(cls, http_response): | |
| 109 | 109 | """Factory: construct an exception from a response. | |
| 110 | 110 | ||
| 111 | - :type http_response: :class:`~.streaming.http_wrapper.Response` | ||
| 111 | + :type http_response: :class:`~.http_wrapper.Response` | ||
| 112 | 112 | :param http_response: the response which returned the error. | |
| 113 | 113 | ||
| 114 | 114 | :rtype: :class:`RetryAfterError` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -273,10 +273,9 @@ def _check_response(response): | |||
| 273 | 273 | :param response: the response to validate | |
| 274 | 274 | ||
| 275 | 275 | :raises: :exc:`google.cloud.streaming.exceptions.RequestError` if response | |
| 276 | - is None, :exc:`~.streaming.exceptions.BadStatusCodeError` if | ||
| 277 | - response status code indicates an error, or | ||
| 278 | - :exc:`~.streaming.exceptions.RetryAfterError` if response | ||
| 279 | - indicates a retry interval. | ||
| 276 | + is None, :exc:`~.exceptions.BadStatusCodeError` if response status | ||
| 277 | + code indicates an error, or :exc:`~.exceptions.RetryAfterError` | ||
| 278 | + if response indicates a retry interval. | ||
| 280 | 279 | """ | |
| 281 | 280 | if response is None: | |
| 282 | 281 | # Caller shouldn't call us if the response is None, but handle anyway. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments