Skip to content

Commit 1fbbd8f

Browse files
committed
fix: updated schema
1 parent 1aa1fcf commit 1fbbd8f

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

lib/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,7 +3907,7 @@ export interface PrivateSpacesVpn {
39073907
/**
39083908
* Status of the tunnel
39093909
*/
3910-
status?: string
3910+
status?: 'UP' | 'DOWN'
39113911
/**
39123912
* Details of the status
39133913
*/
@@ -3921,7 +3921,7 @@ export interface PrivateSpacesVpn {
39213921
/**
39223922
* Status of the VPN
39233923
*/
3924-
status?: string
3924+
status?: 'pending' | 'provisioning' | 'active' | 'deprovisioning' | 'complete' | 'failed'
39253925
/**
39263926
* Details of the status
39273927
*/

schema.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14980,6 +14980,16 @@
1498014980
"string"
1498114981
]
1498214982
},
14983+
"identity": {
14984+
"anyOf": [
14985+
{
14986+
"$ref": "#/definitions/vpn-connection/definitions/id"
14987+
},
14988+
{
14989+
"$ref": "#/definitions/vpn-connection/definitions/name"
14990+
}
14991+
]
14992+
},
1498314993
"space_cidr_block": {
1498414994
"description": "CIDR Block of the Private Space",
1498514995
"example": "10.0.0.0/16",
@@ -15033,6 +15043,10 @@
1503315043
},
1503415044
"status": {
1503515045
"description": "Status of the tunnel",
15046+
"enum": [
15047+
"UP",
15048+
"DOWN"
15049+
],
1503615050
"example": "UP",
1503715051
"type": [
1503815052
"string"
@@ -15049,6 +15063,14 @@
1504915063
},
1505015064
"status": {
1505115065
"description": "Status of the VPN",
15066+
"enum": [
15067+
"pending",
15068+
"provisioning",
15069+
"active",
15070+
"deprovisioning",
15071+
"complete",
15072+
"failed"
15073+
],
1505215074
"example": "active",
1505315075
"readOnly": true,
1505415076
"type": [
@@ -15108,6 +15130,28 @@
1510815130
},
1510915131
"method": "POST",
1511015132
"title": "Create"
15133+
},
15134+
{
15135+
"description": "Destroy existing VPN Connection",
15136+
"href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/vpn-connections/{(%23%2Fdefinitions%2Fvpn-connection%2Fdefinitions%2Fidentity)}",
15137+
"rel": "empty",
15138+
"method": "DELETE",
15139+
"title": "Destroy"
15140+
},
15141+
{
15142+
"description": "List VPN connections for a space.",
15143+
"href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/vpn-connections",
15144+
"method": "GET",
15145+
"rel": "instances",
15146+
"targetSchema": {
15147+
"items": {
15148+
"$ref": "#/definitions/vpn-connection"
15149+
},
15150+
"type": [
15151+
"array"
15152+
]
15153+
},
15154+
"title": "List"
1511115155
}
1511215156
]
1511315157
},

0 commit comments

Comments
 (0)