Debian Codegraph @

src/globus_sdk/testing/data/transfer/v2/update_bookmark.py

raw
1 import uuid
2
3 from globus_sdk.testing.models import RegisteredResponse, ResponseSet
4
5 BOOKMARK_ID = str(uuid.uuid4())
6
7 _collection_id = str(uuid.uuid4())
8 _name = "private datasets"
9 _path = "/data_repository/private"
10 _pinned = True
11
12
13 RESPONSES = ResponseSet(
14 default=RegisteredResponse(
15 service="transfer",
16 method="PATCH",
17 path=f"/v2/bookmarks/{BOOKMARK_ID}",
18 status=200,
19 json={
20 "meta": {"request_id": "dDaKboC8I"},
21 "data": {
22 "type": "Bookmark",
23 "id": BOOKMARK_ID,
24 "attributes": {
25 "name": _name,
26 "path": _path,
27 "pinned": _pinned,
28 },
29 "relationships": {
30 "collection": {
31 "data": {
32 "type": "Collection",
33 "id": _collection_id,
34 }
35 }
36 },
37 },
38 },
39 metadata={
40 "bookmark_id": BOOKMARK_ID,
41 "collection": _collection_id,
42 "name": _name,
43 "path": _path,
44 "pinned": _pinned,
45 },
46 )
47 )