Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 6c9e37d

Browse files
[Partner] Ilya Vishnevsky0ndi
authored andcommitted
fixed cdn resources descriptions and examples
1 parent e769f29 commit 6c9e37d

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

examples/resources/gcore_cdn_origingroup/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "gcore_cdn_origingroup" "origin_group_1" {
1010
use_next = true
1111
origin {
1212
source = "example.com"
13-
enabled = false
13+
enabled = true
1414
}
1515
origin {
1616
source = "mirror.example.com"

examples/resources/gcore_cdn_rule/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "gcore_cdn_origingroup" "origin_group_1" {
1010
use_next = true
1111
origin {
1212
source = "example.com"
13-
enabled = false
13+
enabled = true
1414
}
1515
origin {
1616
source = "mirror.example.com"

gcore/resource_gcore_cdn_resource.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ func resourceCDNResource() *schema.Resource {
5454
Description: "List of additional CNAMEs.",
5555
},
5656
"ssl_enabled": {
57-
Type: schema.TypeBool,
58-
Optional: true,
57+
Type: schema.TypeBool,
58+
Optional: true,
59+
Description: "Use HTTPS protocol for content delivery.",
5960
},
6061
"ssl_data": {
6162
Type: schema.TypeInt,
6263
Optional: true,
6364
RequiredWith: []string{"ssl_enabled"},
65+
Description: "Specify the SSL Certificate ID which should be used for the CDN Resource.",
6466
},
6567
"options": {
6668
Type: schema.TypeList,
@@ -133,10 +135,6 @@ func resourceCDNResource() *schema.Resource {
133135
Computed: true,
134136
Description: "Status of a CDN resource content availability. Possible values are: Active, Suspended, Processed.",
135137
},
136-
"last_updated": {
137-
Type: schema.TypeString,
138-
Computed: true,
139-
},
140138
},
141139
CreateContext: resourceCDNResourceCreate,
142140
ReadContext: resourceCDNResourceRead,

0 commit comments

Comments
 (0)