11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- """Module for Cloud Functions that listen to HTTPS endpoints.
14
+ """Module for functions that listen to HTTPS endpoints.
15
15
These can be raw web requests and Callable RPCs.
16
16
"""
17
17
# pylint: disable=protected-access
32
32
33
33
class FunctionsErrorCode (str , _enum .Enum ):
34
34
"""
35
- The set of Firebase Functions status codes. The codes are the same at the
35
+ The set of Cloud Functions status codes. The codes are the same as the
36
36
ones exposed by gRPC here:
37
37
https://github.com/grpc/grpc/blob/master/doc/statuscodes.md
38
38
"""
@@ -54,7 +54,7 @@ class FunctionsErrorCode(str, _enum.Enum):
54
54
Client specified an invalid argument. Note that this
55
55
differs from `failed-precondition`. `invalid-argument` indicates
56
56
arguments that are problematic regardless of the state of the system
57
- (e.g. an invalid field name).
57
+ (such as an invalid field name).
58
58
"""
59
59
60
60
DEADLINE_EXCEEDED = "deadline-exceeded"
@@ -120,7 +120,7 @@ class FunctionsErrorCode(str, _enum.Enum):
120
120
INTERNAL = "internal"
121
121
"""
122
122
Internal errors. Means some invariants expected by
123
- underlying system has been broken. If you see one of these errors,
123
+ underlying system have been broken. If you see one of these errors,
124
124
something is very broken.
125
125
"""
126
126
@@ -208,7 +208,7 @@ class _HttpErrorCode:
208
208
"""
209
209
Standard error codes and HTTP statuses for different ways a request can fail,
210
210
as defined by:
211
- https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
211
+ https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto.
212
212
This map is used primarily to convert from a client error code string to
213
213
to the HTTP format error code string and status, and make sure it's in the
214
214
supported set.
@@ -282,12 +282,12 @@ class AuthData:
282
282
283
283
uid : str
284
284
"""
285
- User ID of the Id token.
285
+ User ID of the ID token.
286
286
"""
287
287
288
288
token : dict [str , _typing .Any ]
289
289
"""
290
- The Id token's decoded claims.
290
+ The ID token's decoded claims.
291
291
"""
292
292
293
293
@@ -409,7 +409,7 @@ def _on_call_handler(func: _C2, request: Request,
409
409
def on_request (** kwargs ) -> _typing .Callable [[_C1 ], _C1 ]:
410
410
"""
411
411
Handler which handles HTTPS requests.
412
- Requires a function that takes a Request and Response object, same signature as an Flask app.
412
+ Requires a function that takes a `` Request`` and `` Response`` object, the same signature as a Flask app.
413
413
414
414
Example:
415
415
@@ -450,7 +450,7 @@ def on_request_wrapped(request: Request) -> Response:
450
450
def on_call (** kwargs ) -> _typing .Callable [[_C2 ], _C2 ]:
451
451
"""
452
452
Declares a callable method for clients to call using a Firebase SDK.
453
- Requires a function that takes a CallableRequest.
453
+ Requires a function that takes a `` CallableRequest`` .
454
454
455
455
Example:
456
456
@@ -465,7 +465,7 @@ def example(request: CallableRequest) -> Any:
465
465
:rtype: :exc:`typing.Callable`
466
466
\\ [ \\ [ :exc:`firebase_functions.https.CallableRequest` \\ [
467
467
:exc:`object` \\ ] \\ ], :exc:`object` \\ ]
468
- A function that takes a CallableRequest and returns an :exc:`object`.
468
+ A function that takes a `` CallableRequest`` and returns an :exc:`object`.
469
469
"""
470
470
options = HttpsOptions (** kwargs )
471
471
0 commit comments