Skip to content

Commit 6d0b9f5

Browse files
OAS Update
1 parent 1235df8 commit 6d0b9f5

File tree

1 file changed

+188
-1
lines changed

1 file changed

+188
-1
lines changed

services/cdn/v1beta/cdn.json

Lines changed: 188 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@
3838
"type": "string",
3939
"x-go-type": "string"
4040
},
41+
"logSink": {
42+
"discriminator": {
43+
"mapping": {
44+
"loki": "#/components/schemas/LokiLogSink"
45+
},
46+
"propertyName": "type"
47+
},
48+
"oneOf": [
49+
{
50+
"$ref": "#/components/schemas/LokiLogSink"
51+
}
52+
]
53+
},
4154
"monthlyLimitBytes": {
4255
"description": "Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use.\n",
4356
"format": "int64",
@@ -152,6 +165,19 @@
152165
"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",
153166
"type": "string"
154167
},
168+
"logSink": {
169+
"discriminator": {
170+
"mapping": {
171+
"loki": "#/components/schemas/PatchLokiLogSink"
172+
},
173+
"propertyName": "type"
174+
},
175+
"oneOf": [
176+
{
177+
"$ref": "#/components/schemas/PatchLokiLogSink"
178+
}
179+
]
180+
},
155181
"monthlyLimitBytes": {
156182
"description": "Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use.\n",
157183
"format": "int64",
@@ -629,8 +655,56 @@
629655
],
630656
"type": "object"
631657
},
658+
"GetCustomDomainCustomCertificate": {
659+
"description": "Returned if a custom certificate is used. Response does not contain the certificate or key.",
660+
"properties": {
661+
"type": {
662+
"type": "string"
663+
},
664+
"version": {
665+
"description": "Whenever a new custom certificate is added the version is increased by 1.",
666+
"format": "int32",
667+
"minimum": 1,
668+
"type": "integer"
669+
}
670+
},
671+
"required": [
672+
"type",
673+
"version"
674+
],
675+
"type": "object"
676+
},
677+
"GetCustomDomainManagedCertificate": {
678+
"description": "This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you",
679+
"properties": {
680+
"type": {
681+
"type": "string"
682+
}
683+
},
684+
"required": [
685+
"type"
686+
],
687+
"type": "object"
688+
},
632689
"GetCustomDomainResponse": {
633690
"properties": {
691+
"certificate": {
692+
"discriminator": {
693+
"mapping": {
694+
"custom": "#/components/schemas/GetCustomDomainCustomCertificate",
695+
"managed": "#/components/schemas/GetCustomDomainManagedCertificate"
696+
},
697+
"propertyName": "type"
698+
},
699+
"oneOf": [
700+
{
701+
"$ref": "#/components/schemas/GetCustomDomainManagedCertificate"
702+
},
703+
{
704+
"$ref": "#/components/schemas/GetCustomDomainCustomCertificate"
705+
}
706+
]
707+
},
634708
"customDomain": {
635709
"$ref": "#/components/schemas/CustomDomain"
636710
},
@@ -643,7 +717,8 @@
643717
},
644718
"required": [
645719
"domain",
646-
"customDomain"
720+
"customDomain",
721+
"certificate"
647722
],
648723
"type": "object"
649724
},
@@ -751,6 +826,21 @@
751826
],
752827
"type": "object"
753828
},
829+
"LokiLogSink": {
830+
"properties": {
831+
"pushUrl": {
832+
"type": "string"
833+
},
834+
"type": {
835+
"type": "string"
836+
}
837+
},
838+
"required": [
839+
"type",
840+
"pushUrl"
841+
],
842+
"type": "object"
843+
},
754844
"Optimizer": {
755845
"description": "Optimizer is paid feature, a real-time on the fly image manipulation and optimization service that automatically optimizes your images for faster image delivery.\n",
756846
"properties": {
@@ -796,6 +886,31 @@
796886
],
797887
"type": "object"
798888
},
889+
"PatchLokiLogSink": {
890+
"properties": {
891+
"password": {
892+
"type": "string",
893+
"x-go-type": "secret.Secret"
894+
},
895+
"pushUrl": {
896+
"type": "string"
897+
},
898+
"type": {
899+
"type": "string"
900+
},
901+
"username": {
902+
"type": "string",
903+
"x-go-type": "secret.Secret"
904+
}
905+
},
906+
"required": [
907+
"type",
908+
"pushUrl",
909+
"username",
910+
"password"
911+
],
912+
"type": "object"
913+
},
799914
"PurgeCachePayload": {
800915
"properties": {
801916
"path": {
@@ -808,8 +923,61 @@
808923
"PurgeCacheResponse": {
809924
"type": "object"
810925
},
926+
"PutCustomDomainCustomCertificate": {
927+
"description": "Returned if a custom certificate is used. Response does not contain the certificate or key.",
928+
"properties": {
929+
"certificate": {
930+
"description": "base64-encoded certificate",
931+
"type": "string"
932+
},
933+
"key": {
934+
"description": "base64-encoded key",
935+
"type": "string"
936+
},
937+
"type": {
938+
"type": "string"
939+
}
940+
},
941+
"required": [
942+
"type",
943+
"certificate",
944+
"key"
945+
],
946+
"type": "object"
947+
},
948+
"PutCustomDomainManagedCertificate": {
949+
"description": "This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you",
950+
"properties": {
951+
"type": {
952+
"type": "string"
953+
}
954+
},
955+
"required": [
956+
"type"
957+
],
958+
"type": "object"
959+
},
811960
"PutCustomDomainPayload": {
812961
"properties": {
962+
"certificate": {
963+
"description": "Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted",
964+
"discriminator": {
965+
"mapping": {
966+
"custom": "#/components/schemas/PutCustomDomainCustomCertificate",
967+
"managed": "#/components/schemas/PutCustomDomainManagedCertificate"
968+
},
969+
"propertyName": "type"
970+
},
971+
"oneOf": [
972+
{
973+
"$ref": "#/components/schemas/PutCustomDomainManagedCertificate"
974+
},
975+
{
976+
"$ref": "#/components/schemas/PutCustomDomainCustomCertificate"
977+
}
978+
],
979+
"type": "object"
980+
},
813981
"intentId": {
814982
"description": "While optional, it is greatly encouraged to provide an `intentId`. \nThis is used to deduplicate requests. \nIf multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped.\n",
815983
"type": "string"
@@ -819,6 +987,25 @@
819987
},
820988
"PutCustomDomainResponse": {
821989
"properties": {
990+
"certificate": {
991+
"description": "Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted",
992+
"discriminator": {
993+
"mapping": {
994+
"custom": "#/components/schemas/GetCustomDomainCustomCertificate",
995+
"managed": "#/components/schemas/GetCustomDomainManagedCertificate"
996+
},
997+
"propertyName": "type"
998+
},
999+
"oneOf": [
1000+
{
1001+
"$ref": "#/components/schemas/GetCustomDomainManagedCertificate"
1002+
},
1003+
{
1004+
"$ref": "#/components/schemas/GetCustomDomainCustomCertificate"
1005+
}
1006+
],
1007+
"type": "object"
1008+
},
8221009
"customDomain": {
8231010
"$ref": "#/components/schemas/CustomDomain"
8241011
},

0 commit comments

Comments
 (0)