Skip to content

Commit d8d1db3

Browse files
Improve documentation for google_compute_backend_bucket.cdn_policy (#13765) (#22498)
[upstream:5f017350aa52a7d3502957a36766254cb5e00953] Signed-off-by: Modular Magician <[email protected]>
1 parent 935d820 commit d8d1db3

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

google/services/compute/resource_compute_backend_bucket.go

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,26 @@ be percent encoded and not treated as delimiters.`,
138138
The possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL and CACHE_ALL_STATIC Possible values: ["USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", "CACHE_ALL_STATIC"]`,
139139
},
140140
"client_ttl": {
141-
Type: schema.TypeInt,
142-
Computed: true,
143-
Optional: true,
144-
Description: `Specifies the maximum allowed TTL for cached content served by this origin.`,
141+
Type: schema.TypeInt,
142+
Computed: true,
143+
Optional: true,
144+
Description: `Specifies the maximum allowed TTL for cached content served by this origin. When the
145+
'cache_mode' is set to "USE_ORIGIN_HEADERS", you must omit this field.`,
145146
},
146147
"default_ttl": {
147148
Type: schema.TypeInt,
148149
Computed: true,
149150
Optional: true,
150151
Description: `Specifies the default TTL for cached content served by this origin for responses
151-
that do not have an existing valid TTL (max-age or s-max-age).`,
152+
that do not have an existing valid TTL (max-age or s-max-age). When the 'cache_mode'
153+
is set to "USE_ORIGIN_HEADERS", you must omit this field.`,
152154
},
153155
"max_ttl": {
154-
Type: schema.TypeInt,
155-
Computed: true,
156-
Optional: true,
157-
Description: `Specifies the maximum allowed TTL for cached content served by this origin.`,
156+
Type: schema.TypeInt,
157+
Computed: true,
158+
Optional: true,
159+
Description: `Specifies the maximum allowed TTL for cached content served by this origin. When the
160+
'cache_mode' is set to "USE_ORIGIN_HEADERS", you must omit this field.`,
158161
},
159162
"negative_caching": {
160163
Type: schema.TypeBool,

website/docs/r/compute_backend_bucket.html.markdown

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,18 @@ The following arguments are supported:
214214
* `default_ttl` -
215215
(Optional)
216216
Specifies the default TTL for cached content served by this origin for responses
217-
that do not have an existing valid TTL (max-age or s-max-age).
217+
that do not have an existing valid TTL (max-age or s-max-age). When the `cache_mode`
218+
is set to "USE_ORIGIN_HEADERS", you must omit this field.
218219

219220
* `max_ttl` -
220221
(Optional)
221-
Specifies the maximum allowed TTL for cached content served by this origin.
222+
Specifies the maximum allowed TTL for cached content served by this origin. When the
223+
`cache_mode` is set to "USE_ORIGIN_HEADERS", you must omit this field.
222224

223225
* `client_ttl` -
224226
(Optional)
225-
Specifies the maximum allowed TTL for cached content served by this origin.
227+
Specifies the maximum allowed TTL for cached content served by this origin. When the
228+
`cache_mode` is set to "USE_ORIGIN_HEADERS", you must omit this field.
226229

227230
* `negative_caching` -
228231
(Optional)

0 commit comments

Comments
 (0)