Debian Codegraph @

src/globus_sdk/testing/data/compute/v3/register_function.py

raw
1 from globus_sdk.testing.models import RegisteredResponse, ResponseSet
2
3 from .._common import FUNCTION_CODE, FUNCTION_ID, FUNCTION_NAME
4
5 DEFAULT_RESPONSE_DOC = {
6 "function_uuid": FUNCTION_ID,
7 }
8
9 RESPONSES = ResponseSet(
10 metadata={
11 "function_id": FUNCTION_ID,
12 "function_name": FUNCTION_NAME,
13 "function_code": FUNCTION_CODE,
14 },
15 default=RegisteredResponse(
16 service="compute",
17 path="/v3/functions",
18 method="POST",
19 json=DEFAULT_RESPONSE_DOC,
20 ),
21 )