Skip to content

Commit a578018

Browse files
OAS Update
1 parent b35eee7 commit a578018

File tree

1 file changed

+57
-2
lines changed

1 file changed

+57
-2
lines changed

services/vpn/v1alpha1/vpn.json

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@
445445
"bgpGatewayConfig": {
446446
"$ref": "#/components/schemas/BGPGatewayConfig"
447447
},
448+
"labels": {
449+
"$ref": "#/components/schemas/Label"
450+
},
448451
"name": {
449452
"description": "The name of the VPN gateway. \nMaximum 20 characters (only alphanumeric and hyphens allowed). Not changeable after creation.\n",
450453
"example": "my-vpn",
@@ -525,6 +528,9 @@
525528
"bgpGatewayConfig": {
526529
"$ref": "#/components/schemas/BGPGatewayConfig"
527530
},
531+
"labels": {
532+
"$ref": "#/components/schemas/Label"
533+
},
528534
"name": {
529535
"description": "The name of the VPN gateway. \nMaximum 20 characters (only alphanumeric and hyphens allowed). Not changeable after creation.\n",
530536
"example": "my-vpn",
@@ -614,6 +620,44 @@
614620
"pattern": "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
615621
"type": "string"
616622
},
623+
"Label": {
624+
"additionalProperties": {
625+
"$ref": "#/components/schemas/LabelValue"
626+
},
627+
"description": "Map of custom labels. Key and values must be max 63 chars, start/end with alphanumeric.\n",
628+
"example": {
629+
"cost-center": "123",
630+
"is-debug-mode": "",
631+
"tier": "backend-service",
632+
"version": "v1.0.2"
633+
},
634+
"maxProperties": 64,
635+
"type": "object"
636+
},
637+
"LabelKey": {
638+
"description": "Alphanumeric start/end; may contain the characters \".\", \"-\", \"_\" in between.",
639+
"maxLength": 63,
640+
"minLength": 1,
641+
"pattern": "^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$",
642+
"type": "string"
643+
},
644+
"LabelSelector": {
645+
"additionalProperties": {
646+
"type": "string"
647+
},
648+
"description": "label selector object with no nested json objects.\n",
649+
"example": {
650+
"key1": "value1",
651+
"key2": "value2"
652+
},
653+
"type": "object"
654+
},
655+
"LabelValue": {
656+
"description": "Can be empty. If not empty, must start/end alphanumeric; may contain the characters \".\", \"-\", \"_\" in between.",
657+
"maxLength": 63,
658+
"pattern": "^([a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?)?$",
659+
"type": "string"
660+
},
617661
"Phase": {
618662
"properties": {
619663
"dhGroups": {
@@ -1045,6 +1089,9 @@
10451089
"bgpGatewayConfig": {
10461090
"$ref": "#/components/schemas/BGPGatewayConfig"
10471091
},
1092+
"labels": {
1093+
"$ref": "#/components/schemas/Label"
1094+
},
10481095
"name": {
10491096
"description": "The name of the VPN gateway. \nMaximum 20 characters (only alphanumeric and hyphens allowed). Not changeable after creation.\n",
10501097
"example": "my-vpn",
@@ -1119,7 +1166,7 @@
11191166
"paths": {
11201167
"/v1alpha1/projects/{projectId}/regions/{region}/gateways": {
11211168
"get": {
1122-
"description": "List VPN gateways in a project.",
1169+
"description": "Retrieve VPN gateways in a project filtered by a custom label selector format.",
11231170
"operationId": "ListVPNGateways",
11241171
"parameters": [
11251172
{
@@ -1137,6 +1184,14 @@
11371184
"schema": {
11381185
"$ref": "#/components/schemas/Region"
11391186
}
1187+
},
1188+
{
1189+
"in": "query",
1190+
"name": "label_selector",
1191+
"schema": {
1192+
"$ref": "#/components/schemas/LabelSelector"
1193+
},
1194+
"style": "deepObject"
11401195
}
11411196
],
11421197
"responses": {
@@ -1163,7 +1218,7 @@
11631218
"$ref": "#/components/responses/InternalServerError"
11641219
}
11651220
},
1166-
"summary": "List VPN gateways in a project.",
1221+
"summary": "List VPN gateways in a project with label filtering",
11671222
"x-stackit-authorization": {
11681223
"actions": [
11691224
"vpn.gateway.list"

0 commit comments

Comments
 (0)