-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.py
27 lines (23 loc) · 931 Bytes
/
const.py
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
"""Constants for GraphQL."""
import os
from typing import Final
MIME_TYPE_TEXT_HTML: Final = "text/html"
MUTATION_NAME: Final = "Mutation"
QUERY_NAME: Final = "Query"
CONTAINER_NAME: Final = "Container"
COSMOS_FIELD_COSTS: Final = "costs"
COSMOS_FIELD_ID: Final = "id"
COSMOS_FIELD_PARTITION_KEY: Final = "partition_key"
COSMOS_FIELD_PARTITION_KEY_FIELD: Final = "partition_key_field"
COSMOS_FIELD_RID: Final = "_rid"
COSMOS_FIELD_SELF: Final = "_self"
COSMOS_FIELD_ETAG: Final = "_etag"
COSMOS_FIELD_TS: Final = "_ts"
COSMOS_FIELD_ATTACHMENT: Final = "_attachments"
COSMOS_FIELD_TIMESTAMP: Final = "timestamp"
COSMOS_FIELD_CONTINUATION: Final = "continuation"
ENV_COSMOS_URL = os.environ.get("CosmosURL")
ENV_COSMOS_KEY = os.environ.get("CosmosKey")
ENV_COSMOS_DATABASE = os.environ.get("CosmosDatabase")
ENV_COSMOS_CONTAINER = os.environ.get("CosmosContainer")
ENV_COSMOS_PARTITION_KEY = os.environ.get("CosmosPartitionKey")