Skip to content

Commit

Permalink
Merge pull request #70 from G-Core/feature/CDI-915-add-missing-attrib…
Browse files Browse the repository at this point in the history
…utes-to-cdn-resource-in-terraform

CDI-915: add proxy_ssl_enabled, proxy_ssl_ca, proxy_ssl_data, primary_resource to CDN Resource
  • Loading branch information
andrei-lukyanchyk authored Dec 30, 2024
2 parents 90dd936 + dd84fe7 commit ca153b1
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 ca153b1

Please sign in to comment.