-
Notifications
You must be signed in to change notification settings - Fork 0
/
blobstores.toml
64 lines (56 loc) · 955 Bytes
/
blobstores.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[fragments]
[operations]
GQL_CREATE_UPLOAD = """
mutation sdk_url_createupload($name: String!, $size: BigInt!, $parts: Int!) {
createUpload(
blob: {
name: $name,
size: $size
},
parts: $parts
) {
uploadId
parts {
partNumber
url
}
blob {
id
}
}
}
"""
GQL_COMPLETEUPLOAD_SINGLE = """
mutation completeUpload($blobId: ID!, $uploadId: ID!, $eTag: String) {
completeUpload (
blobId: $blobId,
completedUpload: {
uploadId: $uploadId,
parts: [
{
partNumber: 1,
eTag: $eTag
}
]
}
)
}
"""
GQL_LIST_BLOBS_NAME_CONTAINS = """
query($name: String!) {
blobs(where: { name_CONTAINS: $name }) {
id
name
size
createdTimestamp
}
}
"""
MUTATION_CREATEDOWNLOAD = """
mutation MUTATION_CREATEDOWNLOAD($userLabel: String!, $blobId: ID!) {
createDownload(
userId: $userLabel
blobId: $blobId
)
}
"""