Debian Codegraph @

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

raw
1 from globus_sdk.testing.models import RegisteredResponse, ResponseSet
2
3 from .._common import ENDPOINT_ID, FUNCTION_ID, FUNCTION_ID_2
4
5 DEFAULT_RESPONSE_DOC = {
6 "endpoint_id": ENDPOINT_ID,
7 "restricted": True,
8 "functions": [FUNCTION_ID, FUNCTION_ID_2],
9 }
10
11 RESPONSES = ResponseSet(
12 metadata={"endpoint_id": ENDPOINT_ID},
13 default=RegisteredResponse(
14 service="compute",
15 path=f"/v3/endpoints/{ENDPOINT_ID}/allowed_functions",
16 method="GET",
17 json=DEFAULT_RESPONSE_DOC,
18 ),
19 )