Skip to content

Commit f593802

Browse files
OAS Update
1 parent 766f6f5 commit f593802

1 file changed

Lines changed: 55 additions & 1 deletion

File tree

‎services/cdn/v1/cdn.json‎

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@
143143
"description": "Enabling this allows the 'Host' header to be passed through to the origin.\n",
144144
"type": "boolean"
145145
},
146+
"labels": {
147+
"additionalProperties": {
148+
"type": "string"
149+
},
150+
"description": "Labels are key-value string pairs that can be attached to a distribution.",
151+
"type": "object"
152+
},
146153
"logSink": {
147154
"discriminator": {
148155
"mapping": {
@@ -246,6 +253,14 @@
246253
"description": "Enabling this allows the 'Host' header to be passed through to the origin.\n",
247254
"type": "boolean"
248255
},
256+
"labels": {
257+
"additionalProperties": {
258+
"nullable": true,
259+
"type": "string"
260+
},
261+
"description": "Labels are key-value string pairs that can be attached to a distribution.\nJSON Merge Patch is supported, meaning setting a key to null will remove it.\n",
262+
"type": "object"
263+
},
249264
"logSink": {
250265
"discriminator": {
251266
"mapping": {
@@ -344,6 +359,13 @@
344359
"description": "While optional, it is greatly encouraged to provide an `intentId`.\nThis is used to deduplicate requests.\nIf multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped.\n",
345360
"type": "string"
346361
},
362+
"labels": {
363+
"additionalProperties": {
364+
"type": "string"
365+
},
366+
"description": "Labels are key-value string pairs that can be attached to a distribution.",
367+
"type": "object"
368+
},
347369
"logSink": {
348370
"discriminator": {
349371
"mapping": {
@@ -2224,6 +2246,7 @@
22242246
},
22252247
"blockedCountries": [],
22262248
"blockedIps": [],
2249+
"labels": {},
22272250
"regions": [
22282251
"EU",
22292252
"ASIA"
@@ -2254,6 +2277,7 @@
22542277
},
22552278
"blockedCountries": [],
22562279
"blockedIps": [],
2280+
"labels": {},
22572281
"regions": [
22582282
"EU",
22592283
"ASIA"
@@ -2299,6 +2323,7 @@
22992323
},
23002324
"blockedCountries": [],
23012325
"blockedIps": [],
2326+
"labels": {},
23022327
"regions": [
23032328
"EU",
23042329
"ASIA"
@@ -2329,6 +2354,7 @@
23292354
},
23302355
"blockedCountries": [],
23312356
"blockedIps": [],
2357+
"labels": {},
23322358
"regions": [
23332359
"EU",
23342360
"ASIA"
@@ -2443,7 +2469,7 @@
24432469
"application/json": {
24442470
"examples": {
24452471
"full HTTP distribution": {
2446-
"description": "Creates a minimal distribution which is served in `EU` and `ASIA`.\nThe upstream host for this example is `httpbin.org`.\nThis enables some features in the initial request like\n- waf\n- geofencing\n- geoblocking\n- originRequestHeaders\n- traffic limiting\n",
2472+
"description": "Creates a minimal distribution which is served in `EU` and `ASIA`.\nThe upstream host for this example is `httpbin.org`.\nThis enables some features in the initial request like\n- waf\n- geofencing\n- geoblocking\n- originRequestHeaders\n- labels\n- traffic limiting\n",
24472473
"value": {
24482474
"backend": {
24492475
"geofencing": {
@@ -2462,6 +2488,10 @@
24622488
"1.2.3.4"
24632489
],
24642490
"intentId": "someRandomValue",
2491+
"labels": {
2492+
"environment": "production",
2493+
"team": "web-development"
2494+
},
24652495
"monthlyLimitBytes": 123000000,
24662496
"regions": [
24672497
"EU",
@@ -2531,6 +2561,10 @@
25312561
},
25322562
"blockedCountries": [],
25332563
"blockedIps": [],
2564+
"labels": {
2565+
"environment": "production",
2566+
"team": "web-development"
2567+
},
25342568
"regions": [
25352569
"EU",
25362570
"ASIA"
@@ -2674,6 +2708,7 @@
26742708
},
26752709
"blockedCountries": [],
26762710
"blockedIps": [],
2711+
"labels": {},
26772712
"regions": [
26782713
"EU",
26792714
"ASIA"
@@ -2802,6 +2837,7 @@
28022837
},
28032838
"blockedCountries": [],
28042839
"blockedIps": [],
2840+
"labels": {},
28052841
"regions": [
28062842
"EU",
28072843
"ASIA"
@@ -2840,6 +2876,7 @@
28402876
},
28412877
"blockedCountries": [],
28422878
"blockedIps": [],
2879+
"labels": {},
28432880
"regions": [
28442881
"EU",
28452882
"ASIA"
@@ -2872,6 +2909,7 @@
28722909
},
28732910
"blockedCountries": [],
28742911
"blockedIps": [],
2912+
"labels": {},
28752913
"regions": [
28762914
"EU",
28772915
"ASIA"
@@ -2904,6 +2942,7 @@
29042942
},
29052943
"blockedCountries": [],
29062944
"blockedIps": [],
2945+
"labels": {},
29072946
"regions": [
29082947
"EU",
29092948
"ASIA"
@@ -3032,6 +3071,18 @@
30323071
}
30333072
}
30343073
},
3074+
"labels only": {
3075+
"description": "Labels are updated using JSON Merge Patch. Setting a label to null removes it.",
3076+
"value": {
3077+
"config": {
3078+
"labels": {
3079+
"environment": "development",
3080+
"team": null
3081+
}
3082+
},
3083+
"intentId": "someIntent"
3084+
}
3085+
},
30353086
"originUrl and regions": {
30363087
"description": "Both regions and originUrl are modified in the same Patch Request",
30373088
"value": {
@@ -3097,6 +3148,9 @@
30973148
},
30983149
"blockedCountries": [],
30993150
"blockedIps": [],
3151+
"labels": {
3152+
"environment": "development"
3153+
},
31003154
"regions": [
31013155
"EU",
31023156
"ASIA"

0 commit comments

Comments
 (0)