From 951e2a0d3e6501554d0235f04551074acad1b871 Mon Sep 17 00:00:00 2001 From: vladhanzha Date: Wed, 24 Jul 2024 13:45:24 +0300 Subject: [PATCH] Add missing `allowEmbeddedIp` field to route --- cloudconnexa/applications.go | 5 +++-- cloudconnexa/routes.go | 15 ++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/cloudconnexa/applications.go b/cloudconnexa/applications.go index 4ed2f79..2b898a0 100644 --- a/cloudconnexa/applications.go +++ b/cloudconnexa/applications.go @@ -8,8 +8,9 @@ import ( ) type ApplicationRoute struct { - Description string `json:"description"` - Value string `json:"value"` + Description string `json:"description"` + Value string `json:"value"` + AllowEmbeddedIp bool `json:"allowEmbeddedIp"` } type CustomApplicationType struct { diff --git a/cloudconnexa/routes.go b/cloudconnexa/routes.go index 3bec578..0cb16f6 100644 --- a/cloudconnexa/routes.go +++ b/cloudconnexa/routes.go @@ -8,13 +8,14 @@ import ( ) type Route struct { - Id string `json:"id,omitempty"` - Type string `json:"type,omitempty"` - Subnet string `json:"subnet,omitempty"` - Domain string `json:"domain,omitempty"` - Description string `json:"description,omitempty"` - ParentRouteId string `json:"parentRouteId,omitempty"` - NetworkItemId string `json:"networkItemId,omitempty"` + Id string `json:"id,omitempty"` + Type string `json:"type,omitempty"` + Subnet string `json:"subnet,omitempty"` + Domain string `json:"domain,omitempty"` + Description string `json:"description,omitempty"` + ParentRouteId string `json:"parentRouteId,omitempty"` + NetworkItemId string `json:"networkItemId,omitempty"` + AllowEmbeddedIp bool `json:"allowEmbeddedIp,omitempty"` } type RoutePageResponse struct {