You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) ",
Copy file name to clipboardExpand all lines: services/cdn/src/stackit/cdn/models/create_distribution_payload.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,10 @@ class CreateDistributionPayload(BaseModel):
45
45
description="Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) ",
description="An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You can not have a country be assigned to multiple alternative origins. ",
51
+
)
48
52
intent_id: Optional[StrictStr] =Field(
49
53
default=None,
50
54
description="While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. ",
@@ -73,6 +77,7 @@ class CreateDistributionPayload(BaseModel):
Copy file name to clipboardExpand all lines: services/cdn/src/stackit/cdn/models/http_backend.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,13 +26,16 @@ class HttpBackend(BaseModel):
26
26
HttpBackend
27
27
"""# noqa: E501
28
28
29
+
geofencing: Dict[str, List[StrictStr]] =Field(
30
+
description="An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. "
description="Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. ",
0 commit comments