diff --git a/rest_model_zrok/share_request.go b/rest_model_zrok/share_request.go index c2c1d012..8fddf367 100644 --- a/rest_model_zrok/share_request.go +++ b/rest_model_zrok/share_request.go @@ -28,7 +28,7 @@ type ShareRequest struct { AuthUsers []*AuthUser `json:"authUsers"` // backend mode - // Enum: [proxy web tcpTunnel udpTunnel caddy] + // Enum: [proxy web tcpTunnel udpTunnel caddy drive] BackendMode string `json:"backendMode,omitempty"` // backend proxy endpoint @@ -114,7 +114,7 @@ var shareRequestTypeBackendModePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["proxy","web","tcpTunnel","udpTunnel","caddy"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["proxy","web","tcpTunnel","udpTunnel","caddy","drive"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -138,6 +138,9 @@ const ( // ShareRequestBackendModeCaddy captures enum value "caddy" ShareRequestBackendModeCaddy string = "caddy" + + // ShareRequestBackendModeDrive captures enum value "drive" + ShareRequestBackendModeDrive string = "drive" ) // prop value enum diff --git a/rest_server_zrok/embedded_spec.go b/rest_server_zrok/embedded_spec.go index ee155ad8..67e51899 100644 --- a/rest_server_zrok/embedded_spec.go +++ b/rest_server_zrok/embedded_spec.go @@ -1472,7 +1472,8 @@ func init() { "web", "tcpTunnel", "udpTunnel", - "caddy" + "caddy", + "drive" ] }, "backendProxyEndpoint": { @@ -3088,7 +3089,8 @@ func init() { "web", "tcpTunnel", "udpTunnel", - "caddy" + "caddy", + "drive" ] }, "backendProxyEndpoint": { diff --git a/specs/zrok.yml b/specs/zrok.yml index 88539ac1..1f5ebeb8 100644 --- a/specs/zrok.yml +++ b/specs/zrok.yml @@ -971,7 +971,7 @@ definitions: type: string backendMode: type: string - enum: ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy"] + enum: ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy", "drive"] backendProxyEndpoint: type: string authScheme: