From dd84fe729918c37e528072e2c7f282f51b41be11 Mon Sep 17 00:00:00 2001 From: Andrei Lukyanchyk Date: Mon, 30 Dec 2024 15:13:09 +0100 Subject: [PATCH] CDI-915: add proxy_ssl_enabled, proxy_ssl_ca, proxy_ssl_data, primary_resource to CDN Resource --- resources/resources.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/resources.go b/resources/resources.go index 7761794..d25668a 100644 --- a/resources/resources.go +++ b/resources/resources.go @@ -40,6 +40,10 @@ type CreateRequest struct { SecondaryHostnames []string `json:"secondaryHostnames,omitempty"` SSlEnabled bool `json:"sslEnabled"` SSLData int `json:"sslData,omitempty"` + ProxySSLEnabled bool `json:"proxy_ssl_enabled"` + ProxySSLCA int `json:"proxy_ssl_ca,omitempty"` + ProxySSLData int `json:"proxy_ssl_data,omitempty"` + PrimaryResource int `json:"primary_resource,omitempty"` Options *gcore.Options `json:"options,omitempty"` } @@ -51,6 +55,9 @@ type UpdateRequest struct { SecondaryHostnames []string `json:"secondaryHostnames"` SSlEnabled bool `json:"sslEnabled"` SSLData int `json:"sslData,omitempty"` + ProxySSLEnabled bool `json:"proxy_ssl_enabled"` + ProxySSLCA *int `json:"proxy_ssl_ca"` + ProxySSLData *int `json:"proxy_ssl_data"` Options *gcore.Options `json:"options,omitempty"` } @@ -74,5 +81,9 @@ type Resource struct { SSlEnabled bool `json:"sslEnabled"` SSLData int `json:"sslData"` OriginProtocol Protocol `json:"originProtocol"` + ProxySSLEnabled bool `json:"proxy_ssl_enabled"` + ProxySSLCA int `json:"proxy_ssl_ca"` + ProxySSLData int `json:"proxy_ssl_data"` + PrimaryResource int `json:"primary_resource"` Options *gcore.Options `json:"options"` }