Skip to content

Commit

Permalink
CDI-915: add proxy_ssl_enabled, proxy_ssl_ca, proxy_ssl_data, primary…
Browse files Browse the repository at this point in the history
…_resource to CDN Resource
  • Loading branch information
andrei-lukyanchyk committed Dec 30, 2024
1 parent 90dd936 commit dd84fe7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand All @@ -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"`
}

Expand All @@ -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"`
}

0 comments on commit dd84fe7

Please sign in to comment.