@@ -150,8 +150,8 @@ class TemporaryRedirect(Redirection):
150150class ResumeIncomplete (Redirection ):
151151 """Exception mapping a ``308 Resume Incomplete`` response.
152152
153- .. note:: :ref :`http_client.PERMANENT_REDIRECT` is ``308``, but Google APIs
154- differ in their use of this status code.
153+ .. note:: :attr :`http_client.PERMANENT_REDIRECT` is ``308``, but Google
154+ APIs differ in their use of this status code.
155155 """
156156 code = 308
157157
@@ -166,20 +166,20 @@ class BadRequest(ClientError):
166166
167167
168168class InvalidArgument (BadRequest ):
169- """Exception mapping a :prop :`grpc.StatusCode.INVALID_ARGUMENT` error."""
169+ """Exception mapping a :attr :`grpc.StatusCode.INVALID_ARGUMENT` error."""
170170 grpc_status_code = (
171171 grpc .StatusCode .INVALID_ARGUMENT if grpc is not None else None )
172172
173173
174174class FailedPrecondition (BadRequest ):
175- """Exception mapping a :prop :`grpc.StatusCode.FAILED_PRECONDITION`
175+ """Exception mapping a :attr :`grpc.StatusCode.FAILED_PRECONDITION`
176176 error."""
177177 grpc_status_code = (
178178 grpc .StatusCode .FAILED_PRECONDITION if grpc is not None else None )
179179
180180
181181class OutOfRange (BadRequest ):
182- """Exception mapping a :prop :`grpc.StatusCode.OUT_OF_RANGE` error."""
182+ """Exception mapping a :attr :`grpc.StatusCode.OUT_OF_RANGE` error."""
183183 grpc_status_code = (
184184 grpc .StatusCode .OUT_OF_RANGE if grpc is not None else None )
185185
@@ -190,7 +190,7 @@ class Unauthorized(ClientError):
190190
191191
192192class Unauthenticated (Unauthorized ):
193- """Exception mapping a :prop :`grpc.StatusCode.UNAUTHENTICATED` error."""
193+ """Exception mapping a :attr :`grpc.StatusCode.UNAUTHENTICATED` error."""
194194 grpc_status_code = (
195195 grpc .StatusCode .UNAUTHENTICATED if grpc is not None else None )
196196
@@ -201,14 +201,14 @@ class Forbidden(ClientError):
201201
202202
203203class PermissionDenied (Forbidden ):
204- """Exception mapping a :prop :`grpc.StatusCode.PERMISSION_DENIED` error."""
204+ """Exception mapping a :attr :`grpc.StatusCode.PERMISSION_DENIED` error."""
205205 grpc_status_code = (
206206 grpc .StatusCode .PERMISSION_DENIED if grpc is not None else None )
207207
208208
209209class NotFound (ClientError ):
210210 """Exception mapping a ``404 Not Found`` response or a
211- :prop :`grpc.StatusCode.NOT_FOUND` error."""
211+ :attr :`grpc.StatusCode.NOT_FOUND` error."""
212212 code = http_client .NOT_FOUND
213213 grpc_status_code = (
214214 grpc .StatusCode .NOT_FOUND if grpc is not None else None )
@@ -225,13 +225,13 @@ class Conflict(ClientError):
225225
226226
227227class AlreadyExists (Conflict ):
228- """Exception mapping a :prop :`grpc.StatusCode.ALREADY_EXISTS` error."""
228+ """Exception mapping a :attr :`grpc.StatusCode.ALREADY_EXISTS` error."""
229229 grpc_status_code = (
230230 grpc .StatusCode .ALREADY_EXISTS if grpc is not None else None )
231231
232232
233233class Aborted (Conflict ):
234- """Exception mapping a :prop :`grpc.StatusCode.ABORTED` error."""
234+ """Exception mapping a :attr :`grpc.StatusCode.ABORTED` error."""
235235 grpc_status_code = (
236236 grpc .StatusCode .ABORTED if grpc is not None else None )
237237
@@ -258,13 +258,13 @@ class TooManyRequests(ClientError):
258258
259259
260260class ResourceExhausted (TooManyRequests ):
261- """Exception mapping a :prop :`grpc.StatusCode.RESOURCE_EXHAUSTED` error."""
261+ """Exception mapping a :attr :`grpc.StatusCode.RESOURCE_EXHAUSTED` error."""
262262 grpc_status_code = (
263263 grpc .StatusCode .RESOURCE_EXHAUSTED if grpc is not None else None )
264264
265265
266266class Cancelled (ClientError ):
267- """Exception mapping a :prop :`grpc.StatusCode.CANCELLED` error."""
267+ """Exception mapping a :attr :`grpc.StatusCode.CANCELLED` error."""
268268 # This maps to HTTP status code 499. See
269269 # https://github.com/googleapis/googleapis/blob/master/google/rpc\
270270 # /code.proto
@@ -278,24 +278,24 @@ class ServerError(GoogleAPICallError):
278278
279279class InternalServerError (ServerError ):
280280 """Exception mapping a ``500 Internal Server Error`` response. or a
281- :prop :`grpc.StatusCode.INTERNAL` error."""
281+ :attr :`grpc.StatusCode.INTERNAL` error."""
282282 code = http_client .INTERNAL_SERVER_ERROR
283283 grpc_status_code = grpc .StatusCode .INTERNAL if grpc is not None else None
284284
285285
286286class Unknown (ServerError ):
287- """Exception mapping a :prop :`grpc.StatusCode.UNKNOWN` error."""
287+ """Exception mapping a :attr :`grpc.StatusCode.UNKNOWN` error."""
288288 grpc_status_code = grpc .StatusCode .UNKNOWN if grpc is not None else None
289289
290290
291291class DataLoss (ServerError ):
292- """Exception mapping a :prop :`grpc.StatusCode.DATA_LOSS` error."""
292+ """Exception mapping a :attr :`grpc.StatusCode.DATA_LOSS` error."""
293293 grpc_status_code = grpc .StatusCode .DATA_LOSS if grpc is not None else None
294294
295295
296296class MethodNotImplemented (ServerError ):
297297 """Exception mapping a ``501 Not Implemented`` response or a
298- :prop :`grpc.StatusCode.UNIMPLEMENTED` error."""
298+ :attr :`grpc.StatusCode.UNIMPLEMENTED` error."""
299299 code = http_client .NOT_IMPLEMENTED
300300 grpc_status_code = (
301301 grpc .StatusCode .UNIMPLEMENTED if grpc is not None else None )
@@ -308,7 +308,7 @@ class BadGateway(ServerError):
308308
309309class ServiceUnavailable (ServerError ):
310310 """Exception mapping a ``503 Service Unavailable`` response or a
311- :prop :`grpc.StatusCode.UNAVAILABLE` error."""
311+ :attr :`grpc.StatusCode.UNAVAILABLE` error."""
312312 code = http_client .SERVICE_UNAVAILABLE
313313 grpc_status_code = (
314314 grpc .StatusCode .UNAVAILABLE if grpc is not None else None )
@@ -320,7 +320,7 @@ class GatewayTimeout(ServerError):
320320
321321
322322class DeadlineExceeded (GatewayTimeout ):
323- """Exception mapping a :prop :`grpc.StatusCode.DEADLINE_EXCEEDED` error."""
323+ """Exception mapping a :attr :`grpc.StatusCode.DEADLINE_EXCEEDED` error."""
324324 grpc_status_code = (
325325 grpc .StatusCode .DEADLINE_EXCEEDED if grpc is not None else None )
326326
@@ -332,7 +332,7 @@ def exception_class_for_http_status(status_code):
332332 status_code (int): The HTTP status code.
333333
334334 Returns:
335- type: the appropriate subclass of :class:`GoogleAPICallError`.
335+ :func:` type` : the appropriate subclass of :class:`GoogleAPICallError`.
336336 """
337337 return _HTTP_CODE_TO_EXCEPTION .get (status_code , GoogleAPICallError )
338338
@@ -395,7 +395,7 @@ def exception_class_for_grpc_status(status_code):
395395 status_code (grpc.StatusCode): The gRPC status code.
396396
397397 Returns:
398- type: the appropriate subclass of :class:`GoogleAPICallError`.
398+ :func:` type` : the appropriate subclass of :class:`GoogleAPICallError`.
399399 """
400400 return _GRPC_CODE_TO_EXCEPTION .get (status_code , GoogleAPICallError )
401401
0 commit comments